Introduction - If you have any usage issues, please Google them yourself
This program USES MSP430F149 to control EEProm AT24C02 of IIC bus. The MCU general input/output (GPIO) port P1.2, P1.3 and AT24C02 SCL, SDA port connected to the I2C bus, because there is no dedicated MSP430F149 internal I2C interface circuit, so can only use the IO port to simulate I2C sequential block so as to realize the EEPROM read and write operations. From figure 3.3, we can see that the EEPROM address selection port A0~A2 is both external to low level, so when I2C communication is carried out, the EEPROM address is unique, namely, the address control bits corresponding to A0~A2 are all 0.
Because AT24C0X (X = 1,2,4,8,16) series of chip pins are compatible, so users can also be replaced by other types of chips, do not need to change any hardware structure, only need to pay attention to the device address and the change of the storage addressing modes, accordingly modify the software program.
Packet : 99273895msp430f149_at24c02.rar filelist
MSP430F149_AT24C02\BoardConfig.h
MSP430F149_AT24C02\E2.dep
MSP430F149_AT24C02\E2.ewd
MSP430F149_AT24C02\E2.ewp
MSP430F149_AT24C02\E2.eww
MSP430F149_AT24C02\EEPROM.c
MSP430F149_AT24C02\EEPROM.h
MSP430F149_AT24C02\IIC.c
MSP430F149_AT24C02\IIC.h
MSP430F149_AT24C02\main.c
MSP430F149_AT24C02\settings\E2.cspy.bat
MSP430F149_AT24C02\settings\E2.dbgdt
MSP430F149_AT24C02\settings\E2.dni
MSP430F149_AT24C02\settings\E2.wsdt
MSP430F149_AT24C02\UART0.c
MSP430F149_AT24C02\uart0.h
MSP430F149_AT24C02\Debug
MSP430F149_AT24C02\settings
MSP430F149_AT24C02