Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

i need c source on pcf8574 of lcd.

Status
Not open for further replies.

zk543g

Member level 2
Joined
Dec 10, 2002
Messages
49
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
korea
Activity points
226
pcf8574

hello.

i need c source.
 

pcf8574 pic

PCF8574 is an I2c port expander. You need the I2c driver for whatever system (CPU or OS) you are using.

There are lot of sample I2c C codes from IC makers (P*hli*ps, A*tm*el etc).

Hope it helps
 

i2c pcf8574 c programm lcd

hello. huahua.

i need lcd_i2c_write() function c source.

help me.
 

pcf8574 c source

**broken link removed**
It's in German, but you can altavista's translator
 

pcf8574 lcd

Here is the i2c_write function using bit bang.

void i2c_write (unsigned char output_data)
{
unsigned char index;

for(index = 0; index < 8; index++) // Send 8 bits to the I2C Bus
{
// Output the data bit to the I2C Bus
SDATA = ((output_data & 0x80) ? 1 : 0);
output_data <<= 1; // Shift the byte by one bit
SCLK = 1; // Clock the data into the I2C Bus
SCLK = 0;
}

index = SDATA; // Put data pin into read mode
SCLK = 1; // Clock the ACK from the I2C Bus
SCLK = 0;
}
 

pcf8574 i2c programming

hi,What is altavista's translator and how can get it?
 

pcf8574 basic example code

greencateye,

Altavista translation is page where you can translate text or web pages from on language to others. Go there and check yourself, you will find out.

**broken link removed**


regards
meax98
 

c code for pcf8574

Well it does not become in LCD output of the pcf8574. The lcd_i2c_cmd, the possibility of repairing in the lcd_i2c_chr it is? Cumulation assist.
 

pcf8574 interrupt example

Maybee this can help you! I'm using PIC + PCF8574 + LCD + PicBasic Pro and it is working. All info I find here:

Interfacing with a Philips PCF8574 8-Bit I/O Expander
http://www.phanderson.com/PIC/16C84/8574_1.html

LCD-Module am I²C-Bus
**broken link removed**
**broken link removed**

I2C - Funktionsbeschreibung der Lib's
**broken link removed**

ePanorama.net I2C
**broken link removed**

And I send you two examples in basic for 80c535 MCU for interfacing PCF8574 and 4-bit LCD. I wrote my PIC program porting this source.

regards

meax98
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top