I've been working on an Arduino project.but I have to convert this code to pic microcontroller 12F683 in mplab ide.
CODE FUNCTIONALITY:
if input GP0 low (negative edge)output GP1 on for 2 sec and Off.
if input GP0 high (positive Edge)output GP1 is off .
My concerted PIC code toggle high to low for input is low .but i want only exceute once and exit loop.
CODE FUNCTIONALITY:
if input GP0 low (negative edge)output GP1 on for 2 sec and Off.
if input GP0 high (positive Edge)output GP1 is off .
My concerted PIC code toggle high to low for input is low .but i want only exceute once and exit loop.
Attachments
-
100.7 KB Views: 37