nicknamefrank
New Member
Hi all
I was wondering what is the purpose of this register?
This is the code that connects the PIC to the RTC timer and the loop below does not stop looping.
I was wondering what is the purpose of this register?
This is the code that connects the PIC to the RTC timer and the loop below does not stop looping.
Code:
i2c_common_stop macro
;input: none
;output: none
;desc: initiate stop condition on the bus
banksel SSPCON2
bsf SSPCON2,PEN
btfsc SSPCON2,PEN
goto $-1
endm