Dear Friends... I am Ramesh, working on project on p89c669 MC. I am facing problem in programming serial interrupts in 8051C for p89c669. it has dual UARTs. what is interrupt no.s used by 8051C for the p89c669. (Interrupt vector table ) Pls suggest some sample pgms on it...
Thanking you...
Ramesh.
what is interrupt no.s beware, some datasheets supply interrupt numbers that do not match Keil. They tend to number them sequentially and if there is gaps in the vector table you will be off.
the only safe way to get an interrupt number is: ([interrupt vector address] - 3)/8
burnt once
Erik
"([interrupt vector address] - 3)/8"
Or see the table here: http://www.keil.com/support/man/docs/c51/c51_le_interruptfuncs.htm
The address is the important thing - that's the only thing that the hardware knows.