User Tools

Site Tools


microcontrollers:common_communication_types

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
microcontrollers:common_communication_types [2024/10/30 19:12] – [I2C (Inter-Integrated Circuit)] ibchadminmicrocontrollers:common_communication_types [2024/10/30 19:21] (current) ibchadmin
Line 74: Line 74:
  
 ===== I2C (Inter-Integrated Circuit) ===== ===== I2C (Inter-Integrated Circuit) =====
 +
 +The I2C lives on **UCBO** on a MSP430 board.
  
 {{ :microcontrollers:i2c.png?direct&400 |}} {{ :microcontrollers:i2c.png?direct&400 |}}
  
-  * SDA: Data +  * SDA: Data (default pin 1.6) 
-  * SCL: Clock+  * SCL: Clock (default pin 1.7)
  
 Pull Low to send information. Pull Low to send information.
Line 96: Line 98:
  
 Using clock stretching, the bus can be easily arbitrated: this stalls the bus by holding SCL low.  This can be used to allow multiple nodes to be aware of when the bus is in use, or allow a device to stall the bus if more time is needed to handle data. Using clock stretching, the bus can be easily arbitrated: this stalls the bus by holding SCL low.  This can be used to allow multiple nodes to be aware of when the bus is in use, or allow a device to stall the bus if more time is needed to handle data.
 +
 +==== Setup ====
 +
 +{{ :microcontrollers:i2c3.png?direct&400 |}}
 +
 +  * UCSWRST: Put USCI_B in reset state
 +  * UCMODE_3: I2C Mode
 +  * UCMST: Master Mode
 +  * UCSYNC: Syncronous mode
 +  * UCB0BRW: Baud rate SMCLK / 0x<UCB0BRW>
 +
 +==== Sending data ====
 +
 +{{ :microcontrollers:i2c4.png?direct&400 |}}
 +
 +==== Reading data ====
 +
 +{{ :microcontrollers:i2c5.png?direct&400 |}}
 +
 +{{ :microcontrollers:i2c6.png?direct&400 |}}
 +
 +===== References and Further Reading =====
 +
 +  * http://www.argenox.com/library/msp430/
 +  * http://www.simplyembedded.org/tutorials/
 +  * Msp430FR5994 User’s guide http://www.ti.com/lit/ug/slau367o/slau367o.pdf
 +  * Evaluation of Power Efficiency for Digital Serial Interfaces of Microcontrollers  https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=6208716
 +
 +
 +
microcontrollers/common_communication_types.1730315532.txt.gz · Last modified: 2024/10/30 19:12 by ibchadmin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki