??? 04/11/07 03:08 Read: times |
#136952 - Where is the Interupt Handler? Responding to: ???'s previous message |
TI_0 and TI_1 should be set to 0.
Then the Interupt handler must take care of TI. Look at the Keil Serial Sample Code. (What Complier are you using?) Plus "Not A PC" You have an 8 bit CPU with no sign handling. 16 bit signed ints make it do un-needed work. (Yes 16 not 32 or 64) Use unsigned where you can. Use unsigned char where you can. You get smaller faster code. ( you could save 2 or 3 dozen bytes with just your present code) For Extra credit you can use "bit" for true false flags. This is bad: int response2Array[5]={0x04, 0x6C, 0xF1, 0x10, 0x60}; first you are using 10 bytes to store 5. Second you have constant data in RAM so it is 10 bytes in RAM and 10 more in ROM. Try: code unsigned char response2Array[5]={0x04, 0x6C, 0xF1, 0x10, 0x60}; 5 bytes ROM, 0 bytes in RAM Keil has a chapter on this. |
Topic | Author | Date |
"Newbie's" etc with indents | 01/01/70 00:00 | |
a recommendation and a question | 01/01/70 00:00 | |
am I missing something? | 01/01/70 00:00 | |
Re: missing something? | 01/01/70 00:00 | |
re: recc's and question | 01/01/70 00:00 | |
glossary | 01/01/70 00:00 | |
"bible" time | 01/01/70 00:00 | |
Where is the Interupt Handler? | 01/01/70 00:00 | |
re: handler location | 01/01/70 00:00 | |
re: actual handler location | 01/01/70 00:00 | |
Status update | 01/01/70 00:00 | |
that is problematic | 01/01/70 00:00 | |
re: Problematic. | 01/01/70 00:00 | |
just spotted this | 01/01/70 00:00 | |
re: Interrupt number | 01/01/70 00:00 | |
if you do like this (http://....) | 01/01/70 00:00 | |
re: interrupt *solution*![]() | 01/01/70 00:00 |