| ??? 02/18/09 15:40 Read: times |
#162550 - That works, some issues Responding to: ???'s previous message |
Ah yes, that is the ticket.
I'm having some issues, I try to toggle pin 1.4 Ext INT1 and it keeps giving me compile errors. I followed the format of my I2C, so I'm a bit confused. INT 1 is defined in the main includes, so i'm not exactly sure why its choking entering Debug mode. Here is what I have:
// Generates an Square Wave Signal on Interrupt port pin EXT1
signal void ADC0_Square (void) {
float volts; // peak-to-peak voltage
float frequency; // output frequency in Hz
float offset; // voltage offset
float duration; // duration in Seconds
volts = 3.3;
offset = 1.65;
frequency = 2400;
duration = 0.5;
printf ("Square Wave Signal on Interrupt Port 1.4 n");
while (duration > 0.0) {
INT1 = volts + offset;
____^
*** error 34, line 65: undefined identifier
swatch (0.5 / frequency);
INT1 = offset;
____^
*** error 34, line 67: undefined identifier
swatch (0.5 / frequency);
duration -= 1.0 / frequency;
}
}
ADC0_Square()
^
*** error 34, line 73: undefined identifier
LA `P1_4
|
| Topic | Author | Date |
| Simulate External Oscillator in Keil? | 01/01/70 00:00 | |
| A Signal Function? | 01/01/70 00:00 | |
| That works, some issues | 01/01/70 00:00 | |
| Signal functions are not 'C' functions! | 01/01/70 00:00 | |
| that was my first train of thought....but | 01/01/70 00:00 | |
| It doesn't work like that | 01/01/70 00:00 | |
This works fine for what I need....hope it helps someone | 01/01/70 00:00 |



