Discussion in "ARM Development" started by    nari    Mar 6, 2009.
Fri Mar 06 2009, 04:47 pm
#1
Hay
I need Program help
I have interfaced 6 toggle switches with LPC2114 (In built I2C) using PCF8574A PORT expander by connecting SDA, SCL pins.I completed hard ware part but I am facing problem with software. I Read LPC2114 data sheet but I am unable to understand the concept of How to write the program using I2C Registers.
Please help me how to write program to communicate LPC2114 I2C with PCF8574A PORT expander
Thank you

Regards
naresh
Fri Mar 06 2009, 05:09 pm
#2
have you started yet?

get hold of a lpc21xx user manual, that will solve most of the problem.
Fri Mar 06 2009, 06:20 pm
#3
Hay
I read the user manual, but I just confuse with I2C Status Register (I2STAT). In the Register the least three bits are always 0. The remain bits give 25 status codes correspond to defined I2C states. How to write the program by using these states.

Regards
naresh

Mon Mar 09 2009, 04:40 pm
#4
according to datasheet refer to table 3 and table 6 of this document
http://www.nxp.com/acrobat_download/various/8XC552_562OVERVIEW_2.pdf

to know about all the 25 status codes of I2STAT register. Just go through it. collectively they make a state machine.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

DustinErele
Thu Apr 25 2024, 08:44 am
ztaletpzca
Wed Apr 24 2024, 11:19 pm
IrardlPex
Wed Apr 24 2024, 08:42 pm
Charlestehed
Wed Apr 24 2024, 05:20 pm
Robertgurse
Wed Apr 24 2024, 02:43 pm
Richardedils
Wed Apr 24 2024, 04:07 am
Malcolmaccek
Wed Apr 24 2024, 01:21 am
ChrisLub
Tue Apr 23 2024, 05:21 pm