1. Write the password (0x02D52) to the port mapping register.
2. Select the secondary function of each pin (PxMAPy; x = port, y = pin).
3. Write something else (0x00) to the port mapping register to lock access.
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.
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.
Subscribe to:
Comments (Atom)