??? 09/30/09 06:13 Read: times |
#169290 - Yes I am Responding to: ???'s previous message |
I tried the following code to test it:
main() { init_ir_int(); TR2 = 1; while (1) { if (TF2 == 1) { P1_4 = !P1_4; /* LED 1 */ TF2 = 0; } if(EXF2 == 1) { P1_5 = !P1_5; /* LED 2 */ EXF2 = 0; } } } I get LED 1 toggling indefinitely(due to overflow) and LED 2 toggling on an external H to L pulse occurrence. But the same code in ISR is not executed. |
Topic | Author | Date |
Timer 2 Interrupt Enable? | 01/01/70 00:00 | |
do you actually clock the T2EX? | 01/01/70 00:00 | |
Yes I am | 01/01/70 00:00 | |
prototype visible to main | 01/01/70 00:00 | |
Some Differences Found in Documentation | 01/01/70 00:00 | |
who know the most about NXP chips ? | 01/01/70 00:00 | |
Can't Get Your Point | 01/01/70 00:00 | |
YES | 01/01/70 00:00 | |
One Problem Fixed | 01/01/70 00:00 | |
wrong include | 01/01/70 00:00 | |
This was the Exact Problem | 01/01/70 00:00 | |
re include files![]() | 01/01/70 00:00 | |
Please check .RST file | 01/01/70 00:00 |