Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20688

BASCOM-AVR : new problem with I2C : NEWTOPIC

$
0
0
Hello Everybody, Since I have develop a remote with the SX8644 Semtech ship, semtech don't want to sold this ship under 3000 pcs order, for me is too big, and then I must found another ship. I have to choose to work with the Azoteq IQS156 ship, that can do about the same work. datasheet here: http://www.azoteq.com/proximity-sensors-products/proxsense-touch-sensing/48-products-proxsense-iqs156.html But my problem is too communicate with this new ship. I don't understand why, because after the help of AlbertSM, All was good with the semtech ship Now I will prob to give you all information. If anybody has a idea to help me then it should be super. I have contact the SUPER azoteq support and have work with him to solve my problem, but still not working. On the datasheet of the IQS man can see that the slave adress is &H40 (default) I have 7 bit (&H40) and want to task the IQS if there is any Touch event, then I send this: this is just too test the I2C communication: [code:1:2efe4587d2] main: I2cstart I2cwbyte &H80 I2cwbyte &H35 I2crepstart I2cwbyte &H81 I2crbyte Valeur_byte , Nack I2cstop Print "valeur= " ; Valeur_byte Goto Main [/code:1:2efe4587d2] But when i'm touching the differents antenna, the "valeur_byte" result still &H00. Then I think that I have a soo big mystake that I can't see it. can you say me if you find my code good or not ? have you a idea why the communication don't work ? thanks for help Regards Vincent [b:2efe4587d2][color=red:2efe4587d2](BASCOM-AVR version : 2.0.7.6 )[/b:2efe4587d2][/color:2efe4587d2]

Viewing all articles
Browse latest Browse all 20688

Trending Articles