Professional Documents
Culture Documents
EMBEDDED
SYSTEMS
ENGINEERING
LECTURE 10 –
SERIAL
C O M M U N I C AT I O N
WITH MSP430FR5739
– I2C
Nushara Wedasingha
Mphil(AI) Candidate, Bsc.(Hons) EEE
Department of Electrical and Electronic
Engineering
Faculty of Engineering
Sri Lanka Institute of Information Technology
WHAT IS I2C?
6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
Name of the Internal No. of Bits Allocated for Operation of the Register
Register the Register
UCA10 1 0 – Own address length is 7 bits
1 – Own address length is 10 bits
UCSLA10 1 0 – Slave address length is 7 bits
1 – Slave address length is 10 bits
UCMM 1 0 – Single Master, 1– Multiple Masters
Unused 1 Unused
UCMST 1 0 – Selecting Slave, 1 – Selecting Master
UCMODEx 2 00 – 3 Pin SPI
01 – 4 Pin SPI (Master/Slave enable if STE =1)
01 – 4 Pin SPI (Master/Slave enable if STE =0)
11 – I2C
UCSYNC 1 0 – Asynchronus, 1- Synchronus
UCB0CTL1 REGISTER
Name of the Internal No. of Bits Allocated for Operation of the Register
Register the Register
UCSSELx 2 00 – UCLK1
01 – ACLK
10 – SMCLK
11 – SMCLK
Unused 1 Unused
UCTR 1 0 – Reveiver, 1– Transmitter
UCTXNACK 1 0 – Acknowledge, 1– Not Acknowledge
UCTXSTP 1 0 – Stop is disabled, 1 – Stop is enabled
UCTXSTT 1 0 – Diable Start, 1 – Enable Start
UCSWRST 1 0 – Disable Reset, 1- Enable Reset (Operation
State)
SETTING UP MASTER MODE IN MSP430