I2C Function Hang

mikroC, mikroBasic and mikroPascal PRO for Microchip’s 8-bit PIC MCUs.
Post Reply
Author
Message
levonsekoyan
Posts: 3
Joined: 16 Mar 2010 12:52

I2C Function Hang

#1 Post by levonsekoyan » 22 Oct 2018 18:24

Hello Everyone,

Attached is my project. My MCU hang on second I2C_Wr function (line 247), when I try to operation on real PCB.

Does anyone came across with MikroC native I2C library hang? Do you know what could be my problem?

Thanks in advance.
Attachments
Basic Main - Copy.zip
(35.31 KiB) Downloaded 81 times

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: I2C Function Hang

#2 Post by filip » 25 Oct 2018 08:50

Hi,

The I2C library works correctly for this MCU, I don't recall any problems.

Can you try the default I2C example from the compiler ?
Can you tell more of your hardware and post some schematics ?
Which devices do you wish to communicate with ?

Regards,
Filip.

Post Reply

Return to “PIC PRO Compilers”