Software I2C help for PIC12F683 Thanks!

General discussion on mikroC PRO for PIC.
Post Reply
Author
Message
roee
Posts: 51
Joined: 07 Sep 2006 07:04

Software I2C help for PIC12F683 Thanks!

#1 Post by roee » 31 Mar 2009 20:51

Hi,
I still have problem to active Software I2C and it doesn't seems to work :(
My configuration is simple:

INTCON=0;
ANSEL = 0x09;
WPU = 0x06;

Soft_I2C_Config(&GPIO,1,2);
Soft_I2C_Start();
Soft_I2C_Write(0x42);
Soft_I2C_stop();

I also tried the debugger, and I don't see any changes at GPIO1 and GPIO2, in fact the assembler is stuck at:

$0058 $0BFB DECFSZ STACK_11, F
$0059 $285B GOTO $+2
$005A $285E GOTO $+4
$005B $0BFA DECFSZ STACK_10, F
$005C $285B GOTO $-1
$005D $2858 GOTO $-5



Why is that,
Can any one check this?
Did any one succeeded to active I2c for Pic12F683?
ThankS!,
Roee.

Post Reply

Return to “mikroC PRO for PIC General”