thats not a complete program ,its a pointlless snippet
this is a program
Code:
;pic16f1825
DEFINE I2C_SLOW 1
#CONFIG
__config _CONFIG1, _FOSC_INTOSC & _CP_OFF & _WDTE_OFF & _PWRTE_ON & _MCLRE_ON & _CLKOUTEN_OFF
__config _CONFIG2, _PLLEN_ON & _LVP_OFF
#ENDCONFIG
define OSC 32
trisa=%11011111
trisc=%11111110
ANSELA = 0
ANSELC = 0
OSCCON = $70
OPTION_REG.7=0
wpuc= %00011000
SDA VAR PORTc.3 ; I2C Data pin
SCL VAR PORTc.4 ; I2C Clock Pin
pcf_Addr CON $78
led VAR latc.0
leds var byte
b0 var byte
Main:
for B0 = 0 to 255
I2CWRITE SDA, SCL, pcf_Addr, 0, [B0]
pause 5
led=!led
next B0
pause 1000
for B0 = 255 to 0 step -1
I2CWRITE SDA, SCL, pcf_Addr, 0, [B0]
pause 5
led=!led
next B0
led=!led
goto Main
this is how it looks on a logic analyzer![Name: Untitled.jpg
Views: 408
Size: 57.4 KB](https://www.picbasic.co.uk/forum/attachment.php?s=0dceb3c3ddfe1173ee8a04354078f45a&attachmentid=9008&d=1612497329)
and this is a trace , is shows no signs of what you claim
Bookmarks