??? 06/29/05 11:32 Read: times |
#96172 - Alternatively... Responding to: ???'s previous message |
You could equally well modify the macro:
#define _10msec ((uint)((65536 - ((1000 * 10) / tic12)))) But please take note of the comments elsewhere in this thread regarding the use of floating point values in this type of calculation. "In the former case Keil produces a "Bad operand >> error", whereas the second case it produced the indended code." Keil is correct to give the 'bad operand' error. Having read the rest of this thread do you now understand why? |