Difference between revisions of "Basics of I2C with AVR"
Line 8: | Line 8: | ||
=Registers= | =Registers= | ||
− | ====TWBR==== | + | ====TWBR ( TWI Bit Rate Register )==== |
+ | |||
+ | '''Bits [7:0] – Bit Rate ''' | ||
+ | It selects the division factor for the bit rate generator. The bit rate generator is basically a frequency | ||
+ | divider. It generates the SCL clock frequency in the Master modes. | ||
+ | |||
====TWCR==== | ====TWCR==== | ||
====TWSR==== | ====TWSR==== |
Revision as of 13:05, 4 February 2015
Contents
Basics
The I²C (Inter-Integrated Circuit) protocol, referred to as I-squared-C, I-two-C, or IIC) is two wire serial communication protocol for connecting low speed peripherals to a micrcontroller or computer motherboard.
You can go through I²C /TWI Basics tutorials to understand how I²C works.
Registers
TWBR ( TWI Bit Rate Register )
Bits [7:0] – Bit Rate It selects the division factor for the bit rate generator. The bit rate generator is basically a frequency divider. It generates the SCL clock frequency in the Master modes.