I thought that was you that asked me for it. I emailed it to someone.
Here it is I had added a led to it just to make sure the chip was actually working but here it is.
Code:
'12F675
@ __CONFIG _INTRC_OSC_NOCLKOUT & _WDT_ON & _PWRTE_ON & _MCLRE_OFF & _BODEN_ON
TRISIO.0 = 0 'Set GPIO.0 to output.
ANSEL.0 = 0 'Set GPIO.0 to digital
GPIO.0 = 0
CMCON = 7 ' PortA Digital inputs
VRCON = 0 ' Voltage reference disabled
OPTION_REG.7 = 0
DEFINE OSCCAL_1K 1
INCLUDE "modedefs.bas"
led2 var GPIO.1
loop:
SerOut GPIO.0,N2400,["Hello World"]
Pause 1000
SerOut GPIO.0,N2400,["abc",13,10]
Pause 4000
high LED2
pause 500
LOW LED2
pause 500
high LED2
pause 500
LOW LED2
pause 500
GoTo loop
Bookmarks