Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Lpc2114

Status
Not open for further replies.

chandu13

New Member
Hay
I need 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
Chandu
 
one question: why?

the LPC2114 has plenty of pins that you could just bring the toggle switches into, with proper protection of course.

Dan
 
Pcf8574

Hay

I interfaced LPC2114 with PCF8574.
From the data sheet The I/Os should be HIGH before being used as inputs.
How to make PCF8574 as the Input port to read the external inputs.
LPC2114 other pins I used for other applications,

Regards
Chandu
 
Hay

I interfaced LPC2114 with PCF8574.
From the data sheet The I/Os should be HIGH before being used as inputs.
How to make PCF8574 as the Input port to read the external inputs.
LPC2114 other pins I used for other applications,

Regards
Chandu
then why not use a bigger part like a LPC2361FBD100 100 pinner at $7 instead of a LPC2114 64 pinner at $10 AND a PCF8574 at $1.50? (rounded off digikey single piece prices)

Dan
 
Last edited:
it should be and even if it is not it is very close to many of the LPC23xx family and not that far off of many of the others. For your purposes you should be able to compile for a different chip and still have it run fine as long as you do not want to run one of the peripherals they do not have the support for.

Pick the highest one they have support for and compare register locations, I think you will be pleasantly surprised. NXP tends to use the same location and hardware for all the ones in the same family at least and in most cases across the entire ARM line.

Dan
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top