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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/15/01 13:20
Read: times


 
#15694 - RE: baud rates with 89c55
Hi Damjan,

yes, its possible.
Please look on the data sheet about using T2 as baud rate generator.

Following an example:


void init(void)
{
// init UART (using T2)

T2CON = TCLK_ + RCLK_;
RCAP2W = (uint) -(0.5 + XTAL / 32.0 / BAUD0);
T2W = -1;
SCON = SM1_0_ + REN_0_; // Mode 1 (8bit)
TR2 = 1; // start T2
}



Peter


List of 4 messages in thread
TopicAuthorDate
baud rates with 89c55            01/01/70 00:00      
RE: baud rates with 89c55            01/01/70 00:00      
RE: baud rates with 89c55            01/01/70 00:00      
RE: baud rates with 89c55            01/01/70 00:00      

Back to Subject List