Explanation:
The PULSEOUT command will set the specified pin high, wait for the specified
amount of time, and then set the pin low again. The pin is specified in the same
way as it is for the SET command, and the time is the same as for the Wait
command.
Example:
'This program flashes an LED on GPIO.0 using PULSEOUT
#chip 12F629, 4
#config INTRC_OSC_NOCLKOUT
DIR GPIO.0 OUT
Main:
PULSEOUT GPIO.0, 1 sec 'Turn LED on for 1 sec
Wait 1 sec 'Wait 1 sec with LED off
goto Main
This site hosted for free by: