How can I move the two sfr's, TH2:TL2, into an unsigned int variable? TIA John
The timer has already been stopped at the point I'm reading the variables. Actually I just saw where "sfr16" type could be specified. Think that would equivalently be the same as using a union. Thanks Dan John
Yep, that'll work fine if the timer is stopped. In fact, the sfr16 example in the manual is for T2 :-) Regards, -- Dan Henry
Be careful using sfr16. This was designed for the Intel 8051's 16-bit sfrs. However, most 16-bit sfrs do not follow the conventions used by sfr16. Take a look at the following knowledgebase article for more information: http://www.keil.com/support/docs/1845.htm Jon