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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/16/00 23:22
Read: times


 
#7343 - please help... 16 MHz clock timer 1
I've been trying to get the 8051 to work with a 16.0 MHz clock, with no success. I load timer 1 with a value of 0xFBA9 (high nibble 0xFB, low nibble 0xA9) and even a less accurate value of 0xFB so that I can get a baud rate of 19.2 kbps, using the double baud rate control. But nothing I do seems to work, please help! My terminal is set for 8 bits no parity 1 stop bit. everything worked before with a 11.0592 MHz crystal, the only thing that was different was the timer load value of 0xFD00. below is my serial comm. initilization code..

SCON = 0x40; // mode 2
TMOD = 0x20 // timer 1 8 bit reload mode
SET_TIMER(1,0xFB, 0xA9); // load timer
PCON = 0x80 // double baud rate
TI = 1; // ready to send;
TR1 = 1; // start timer 1.

Thank you.

List of 15 messages in thread
TopicAuthorDate
please help... 16 MHz clock timer 1            01/01/70 00:00      
RE: please help... 16 MHz clock timer 1            01/01/70 00:00      
RE: please help... 16 MHz clock timer 1            01/01/70 00:00      
RE: please help... 16 MHz clock timer 1            01/01/70 00:00      
RE: please help... 16 MHz clock timer 1            01/01/70 00:00      
RE: please help... 16 MHz clock timer 1            01/01/70 00:00      
RE: please help... 16 MHz clock timer 1            01/01/70 00:00      
RE: please help... 16 MHz clock timer 1            01/01/70 00:00      
RE: please help... 16 MHz clock timer 1            01/01/70 00:00      
RE: please help... 16 MHz clock timer 1            01/01/70 00:00      
clarification            01/01/70 00:00      
RE: please help... 16 MHz clock timer 1            01/01/70 00:00      
RE: clarification            01/01/70 00:00      
RE: clarification            01/01/70 00:00      
RE: clarification            01/01/70 00:00      

Back to Subject List