swapan
Full Member level 4
Hi Guys,
I am not well conversant to C. Please see the code in assembly. I want to poll zero-crossing point of AC Main. Assume that positive-going zero-crossing pulse is polled by RA0 of PIC 16F676. What will be the code in C compiled by mikroC ?
swapan
I am not well conversant to C. Please see the code in assembly. I want to poll zero-crossing point of AC Main. Assume that positive-going zero-crossing pulse is polled by RA0 of PIC 16F676. What will be the code in C compiled by mikroC ?
swapan
Code:
# define zero_pulse PORTA, 0;
BTFSC zero_pulse;
Goto $-1;
BTFSS zero_pulse;
Goto $-1
;
…………. ; Rest of code
Last edited by a moderator: