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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/25/07 17:25
Read: times


 
#146215 - Few Timer2 reload values
Responding to: ???'s previous message
Few Timer2 reload values that i used with P89V51RD

#define T2RLH 0xFF;
#define T2RLL 0xF7;//Reload value for 38400 baud @ 11.0592MHz

//0xFFB2 16bit Reload value for 9600 baud @ 24MHz
//0xFFD9 16bit Reload value for 19200 baud @ 24MHz
//0xFFED 16bit Reload value for 38400 baud @ 24MHz
//0xFFF3 16bit Reload value for 57600 baud @ 24MHz
//0xFFDC 16bit Reload value for 9600 baud @11.0592MHz;
//0xFFEE 16bit Reload value for 19200 baud @11.0592MHz;
//0xFFF7 16bit Reload value for 38400 baud @ 11.0592MHz
//0xFFFA 16bit Reload value for 57600 baud @11.0592MHz;;


T2CON=0x030;// Timer 2 : auto–reload mode for both receive & transmit baud clocks
RCAP2L=T2RLL ; //Establish 16–bit reload value for 9600
RCAP2H= T2RLH;
TL2=T2RLL ;// Make first timeout correct
TH2=T2RLH;
TR2=true ; //Start Timer
SCON=0x050;
ES=true;//Enable Serial interrupt


List of 4 messages in thread
TopicAuthorDate
Timer 2 in AT89C51RB2            01/01/70 00:00      
   Check TCON2 setting            01/01/70 00:00      
   the easy way            01/01/70 00:00      
   Few Timer2 reload values            01/01/70 00:00      

Back to Subject List