'------------[Hardware setup]----------------------------
Device 16F688
Config INTRC_OSC_NOCLKOUT,_ 'Internal clock no clock out
WDT_OFF,_ 'Watchdog Timer OFF
PWRTE_ON,_ 'Power-up Timer ON
MCLRE_OFF,_ 'Memory clear pin OFF
CP_OFF,_ 'Code Protection OFF
CPD_OFF,_ 'Data Code Protection OFF
BOD_OFF,_ 'Brown Out Detection OFF
IESO_OFF 'Internal External Switch Over OFF
XTAL = 8
ALL_DIGITAL = true
'HSERIAL_BAUD = 9600 ' Set baud rate to 9600
HSERIAL_BAUD = 4800 ' Set baud rate to 9600
HSERIAL_TXSTA = %00100000 ' Enable transmit and asynchronous mode
DelayMS 1000 ' Wait for the PICmicro to stabilise
'-------[MAIN PROGRAM LOOP STARTS HERE]----------------------------------
While 1 = 1 ' Create an infinite loop
HRSOut "r"
DelayMS 1000
Wend