How to use I2Cx_Remappable_Wr for k83?

General discussion on mikroBasic PRO for PIC.
Post Reply
Author
Message
Wang Chen Sheng
Posts: 50
Joined: 08 Oct 2009 03:42

How to use I2Cx_Remappable_Wr for k83?

#1 Post by Wang Chen Sheng » 10 Mar 2020 12:03

slave_address: slave address.
ptrdata: pointer to the data to be transmitted.
count: number of bytes to be transmitted.
END_mode: mode in which the I²C module will be set after the
mikrobasic pro version:7.6.0

how to use ptrdata?

const da as byte[12] = (31,28,31,30,31,30,31,31,30,31,30,31)
I2C1_Remappable_Wr(0x70, da[0], 12, _I2C_END_MODE_STOP)

Communication code sent out Different than expected
The communication code presented by the logic analyzer is completely different from the communication code I sent
But i can see ack

Maybe the ptrdata is wrong!
How should I write?

User avatar
jovana.medakovic
mikroElektronika team
Posts: 986
Joined: 18 Dec 2018 10:36

Re: How to use I2Cx_Remappable_Wr for k83?

#2 Post by jovana.medakovic » 12 Mar 2020 15:25

Hello,

Could you please zip and send me your project for review?
Maybe this forum post will help you to solve your problem:
viewtopic.php?f=88&t=74981&p=300467&hilit=k83#p300467

Kind regards,
Jovana

Post Reply

Return to “mikroBasic PRO for PIC General”