I2C and light sensor

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
User avatar
cubitus54
Flowcode v5 User
Posts: 110
Joined: Wed Jun 19, 2013 7:18 am
Has thanked: 7 times
Been thanked: 32 times
Contact:

I2C and light sensor

Post by cubitus54 »

Hello,

I do not communicate properly with I2C TSL2561 sensor.
When I read a register, the PIC had to do an ACK, but it does not ...
I can read one register at a time, and I have 10ms "time out" before you can make another attempt.

Do you have an idea of the problem?

thank you
Image

Image

Image
TSL2560 lumiere.fcf
(23.51 KiB) Downloaded 426 times
Flowcode V6.1.2.0(11 05 2015)

User avatar
cubitus54
Flowcode v5 User
Posts: 110
Joined: Wed Jun 19, 2013 7:18 am
Has thanked: 7 times
Been thanked: 32 times
Contact:

Re: I2C and light sensor

Post by cubitus54 »

I2C_Master(0)
LumL=MI2C_Receive_Byte(0x0c)

I2C_Master(0)
LumL=MI2C_Receive_Byte(0)

For the last

I2C_Master(0)
LumL=MI2C_Receive_Byte(1)
Flowcode V6.1.2.0(11 05 2015)

Post Reply