Hi I am not enough familiar with the P89C51RD2 though as I know from other processors/OS the common way to use a HW interrupt is define the interrupt and set its address to the vector table. The connection of the interrupt table to the specific unit is a hardware dependent for example interrupt 1 is timer0 and so on. is trhis correct ? or there is a possible to define specificaly that timer0 will use for example, int 5 ? can you send a code example for timer0/1/2? and were it is written in the data sheet ? Regards Eyal
I am not enough familiar with the P89C51RD2 a very good reason to read the datasheet. were it is written in the data sheet ? If you try to find it yourself you will, in the process thereof, become familiar with where other things are in the datasheet. Erik