In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: freq 4_000_000 IntPeriod = 208 ; UART1 1200 Baud for the DMM ; ; Note that the timing used here is for 2400 Baud, ; therefore, the UART1 code will be executed every ; second ISR call only, resulting in half the speed, ; i.e. 1200 Baud. ; BaudBit1 = 3 StartDelay1 = 8+4 ; = 2^BaudBit * 1.5 RxBitCount1 = 9 ; = 7 data, 2 stop ; UART2 9600 Baud for the SpeakJet ; BaudBit2 = 1 StartDelay2 = 2+1 ; = 2^BaudBit * 1.5 ;4_000_000 / 9600 = 416 = 2 * 208 ;4_000_000 / 2400 = 8 * 208 regards peter ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=76567#m76755 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)