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 8051C? A compiler? In that case - why not post a link?
Have you spent any time going through the documentation for the P89C669 processor? Didn't the user manual for the processor tell you the interrupt vectors for the two UART? There is a specific chapter about interrupts...
http://www.keil.com/support/
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.