We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
The SFR address of T2MOD is NOT divisible by 8 Erik
"I am told the following two lines have an invalid base address despite it being defined previously." Just because something is defined does not mean that the definition is valid! See this Thread, which describes exactly the same problem: http://www.keil.com/forum/docs/thread4028.asp Perhaps Keil should update the description of the "invalid base address" to state that the base address must be bit-addressable.