Wednesday, April 17, 2013

Communications

Setting up UART in MSP430

1. Set PxSEL to choose secondary function. For Tx also set PxOUT.
2. Configure interface: Reset interface, choose clock source, choose baud rate and modulation pattern, start interface, enable interruptions if necessary.

Setting up I2C in MSP430

1. Set PxSEL to choose secondary function.
2. Configure interface: Choose I2C mode (master, slave), synchonous communication, choose clock source, choose baud rate, if master set slave address, start interface, enable interruptions if necessary.

No comments:

Post a Comment