??? 11/23/04 01:25 Read: times |
#81731 - A couple of things Responding to: ???'s previous message |
1) doing I/O in a interrupt is always a bad Idea. It means you can not use the I2C bus in most of the rest of the program.
2) Multiplication in a interrupt is a bad Idea. It may cuase a library call, Keil will then push eveything on the stack. 3) keep the using 1 I assume that no other interupt with a higher priority has a using 1, or Keil will push the whole register bank on the stack. 4) a fix wait is not the correct way to wait for the I2C clock. You are suppose to read it back. have you time the interrupt rate and the interupt time. you could be in the interupt most of the time. |
Topic | Author | Date |
Timer 2 interrupt with keil. | 01/01/70 00:00 | |
Additional Information. | 01/01/70 00:00 | |
what is I2CWAIT; | 01/01/70 00:00 | |
I2CWAIT is not Function. | 01/01/70 00:00 | |
Remove | 01/01/70 00:00 | |
Already tried remove using 1 | 01/01/70 00:00 | |
Timer2 interrupt | 01/01/70 00:00 | |
Tried making all ISR variables global. | 01/01/70 00:00 | |
Timer2 Interrupt | 01/01/70 00:00 | |
Why remove using? | 01/01/70 00:00 | |
removing using | 01/01/70 00:00 | |
Re: Remove Using.![]() | 01/01/70 00:00 | |
int usage | 01/01/70 00:00 | |
int operations reentrant or not? | 01/01/70 00:00 | |
varify with asm | 01/01/70 00:00 | |
A couple of things | 01/01/70 00:00 | |
Re: A couple of things - Neil | 01/01/70 00:00 | |
A couple of things | 01/01/70 00:00 |