Im trying to get a PIC12F629 to send a simple "hello world" to my pc using windows Hyperterm, and I have the Pic conected as showed in the manual (1k resistor to pin 2 on the db9 connector)
All I get is garbage on the screen !
Can anyone HELP? here is my code that I trying to get working
INCLUDE "modedefs.bas"
DEFINE CHAR_PACING 1000
DEFINE OSC 4
Pause 200 ' Allow pic to Stabilize
TRISIO = %00000000
'ADCON0 = 0 ' no adc
OPTION_REG.7 = 0 ' gpio 0 - 2 digital
WPU = 255 ' week pull ups on all pins
CMCON = 7 ' turn week pull ups on
'ANSEL = 0
loop:
SerOut GPIO.0,N300,["Hello World"]
Pause 1000
SerOut GPIO.0,N300,["abc",13,10]
Pause 4000
GoTo loop
Bookmarks