Page 1 of 1

component I2C

Posted: Mon Aug 16, 2010 9:37 am
by pilou8830
hello, I have version 3 of flowcode.j 'd like to order an external EEPROM, such as a bus with 24C256N I2C.Le example program for I2C component does not display as "Hi" but yy or ASCII code 255 .
Posting in the component: s, 160,0,0,72 "(H), 105 (i), p for writing (ok).
For reading: s, 160,0,0, r, 161.255 (?), 255 (?), P. (not ok)
255 instead of 72, 255 instead of 105?
Can you help me? I have yet to assemble it. I will use a PIC16F877 to 4000000Hz.

Re: component I2C

Posted: Mon Aug 16, 2010 3:18 pm
by Benj
Hello,

With things such as I2C etc it is normally best to try on hardware using an LCD or LEDs to help diagnose if things are working correctly.

Eg if you are writing certain values using the I2C simulation and then expecting to be able to read back the values then this will probably not work correctly.

Re: component I2C

Posted: Mon Aug 16, 2010 4:15 pm
by pilou8830
Okay I spend achievement and tells you what the next week.
thank you

I2C RESOLVED

Posted: Sat Sep 11, 2010 8:18 am
by pilou8830
After changing the port (port A to port B) Port B default because Flowcode outputs are real!
And after loading the SLC and SDA pins with resistors of 4.7 k everything works!
Thank you Thank you Thank you :lol: