View Full Version : Having problem with I2C
Omidkk
- 24th February 2009, 18:56
Hi
I have a problem with pic basicpro I 'm write the this code
i2cwrite porta.0,porta.1,$c6,0,[#x] but it didn't compile:confused:
I 'm used Pic16f877A & LCD03 and I need the lcd show too me x number.
what should i do ?
Thanks a lot
mister_e
- 24th February 2009, 19:13
As I told you #x is not allowed in I2CWRITE. What you'll need is to parse each number in x variable (DIG should do the trick), then convert each of them to ASCII, then send the whole thing.
Omidkk
- 24th February 2009, 20:45
Hi
How i can do this?
can you write a exam code to me ? beacause it is vary important to me
thanks
mister_e
- 24th February 2009, 20:57
First, have a look into your manual about DIG, somewhere in the begining of your manual.
SOMRU
- 3rd March 2009, 19:39
This uses a 16f processor to drive LED segments without a current limiting resistor.
Powered by vBulletin® Version 4.1.7 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.