??? 04/15/08 02:00 Read: times |
#153313 - Ok Responding to: ???'s previous message |
Your going to have to put an ORG statement at the beginning of the program like
org 0x100h This will force the compiler to NOT write over the interrupt vector address that exist for the interrupts nterrupt Flag Interrupt Handler Address External 0 IE0 0003h Timer 0 TF0 000Bh External 1 IE1 0013h Timer 1 TF1 001Bh Serial RI/TI 0023h You'll also have to enable interrupts in the program at the beginning using the proper register. When a hardware interrupt occurs, the micro will jump to that memory location and you should have a LCALL to somewhere in a high memory (compiler determinate) so you won't have to worry about the ISR routine over writing the other interrupt locations by a large ISR routine. That should get you going..... |
Topic | Author | Date |
8051 interrupt | 01/01/70 00:00 | |
what language? | 01/01/70 00:00 | |
8051 | 01/01/70 00:00 | |
Ok | 01/01/70 00:00 | |
Re: OK | 01/01/70 00:00 | |
As mentioned | 01/01/70 00:00 | |
High, higher, highest... | 01/01/70 00:00 | |
Re: As mentioned | 01/01/70 00:00 | |
My words are not casual...... | 01/01/70 00:00 | |
It's assembler | 01/01/70 00:00 | |
this may be help | 01/01/70 00:00 | |
external trigger address | 01/01/70 00:00 | |
Read the tutorials... | 01/01/70 00:00 | |
Check the emulator manual | 01/01/70 00:00 | |
+800 | 01/01/70 00:00 | |
read andy's post above | 01/01/70 00:00 | |
RE: Does this make sense to you? | 01/01/70 00:00 | |
I am sorted![]() | 01/01/70 00:00 |