Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/20/08 00:32
Read: times


 
#149752 - Another thing
Responding to: ???'s previous message
Just another question:

Using SDCC I made something like this:

unsigned int mainoff = 5000;
mainoff = ~(--mainoff);
_asm
	mov    _TL2,_mainoff 
	mov    _TH2,(_mainoff + 1)   
_endasm;


Its suppose to set TL2 and TH2 to Two's complement mainoff so it will take mainoff ticks to overflow. Is this correct?


P.S: In the program mainoff is limited to: 1-50,000

Thanks.



List of 4 messages in thread
TopicAuthorDate
When does timer 2 get reloaded?            01/01/70 00:00      
   Another thing            01/01/70 00:00      
   read the manual            01/01/70 00:00      
   what is register bank 5 supposed to mean?            01/01/70 00:00      

Back to Subject List