Wednesday, March 15, 2006

baud rate calcuation

CXL04LP3 accelerometer running with interface card at 38400 baud. Need to setup SCI2 in order the run at that rate. Calculation (page 169) is is BAUD RATE = BUSCLK/([SBR12:SBR0] × 16)

The 32K_9S08GB60_Mon.asm file (AN2140SW1) states, ";baud38400: equ 31 ;sets rate to 38,400-0.9% baud". And we know that SCI2BDH_SBR8 is 31(MC9S08GB60.h). So, SCI2BDLH=SCI2BDH_SBR8

No comments: