in the code example MSP430FR57xx_uscib0_i2c_10.c the UCBxBRW register is set in this line: UCB0BRW = 0x0008; // baudrate = SMCLK / 8 In the family datasheet slau272c-1.pdf (Page 527) The description for UCBxBRW is: fBitClock = fBRCLK/(UCBRx+1) Wich one is right? According to the family datasheet the line should be UCB0BRW = 0x0007; // baudrate = SMCLK / 8 or if just the comment is wrong: UCB0BRW = 0x0008; // baudrate = SMCLK / 9
↧