Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

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.
 

huahua

Member level 2
Joined
Sep 21, 2002
Messages
42
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
263
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
 

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
i2c pcf8574 c programm lcd

hello. huahua.

i need lcd_i2c_write() function c source.

help me.
 

huahua

Member level 2
Joined
Sep 21, 2002
Messages
42
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
263
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;
}
 

greencateye

Newbie level 6
Joined
Jun 1, 2002
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
26
pcf8574 i2c programming

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

meax98

Full Member level 3
Joined
Nov 25, 2001
Messages
180
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Activity points
1,793
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.

http://babel.altavista.com/tr


regards
meax98
 

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
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.
 

meax98

Full Member level 3
Joined
Nov 25, 2001
Messages
180
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Activity points
1,793
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
http://members.surfeu.de/matthias.prinke/electronics/i2c-lcd.html
http://members.surfeu.de/matthias.prinke/electronics/lcdtext.html

I2C - Funktionsbeschreibung der Lib's
http://home.welfen-netz.de/IngoGerlach/i2c_ser/i2c_funcs.html

ePanorama.net I2C
http://links.epanorama.net/links/serialbus.html

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.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top