This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Timer 2 on the 89c51RD+

I am trying to use Timer 2 to create an external clock on p1.0. However, my software wont compile. I am told the following two lines have an invalid base address despite it being defined previously.

sfr T2MOD = 0xC9;

/* T2MOD */
sbit T2OE = T2MOD^1;
sbit DCEN = T2MOD^0;

Can anyone help? If I set these bits to equil direct addresses then i do not get the correct oporation when i simulate.

Thank you,

Tim

0