Dave, thanks for your help, really appreciate it. I've been spending too many hours (very unproductive ones at that) trying to learn this thing called picbasic, and, as I'm sure you know, after you hit that frustration level...YOU JUST CAN'T GIVE UP! And, of course its down hill from there...Sleep is good, if you can get your mind off the problem.
Anyway,
Here's my Code:
[HTML]@__config _HS_OSC & _WDT_ON & _MCLRE_ON & _CP_OFF
DEFINE OSC 20
CMCON0 = 7 ' Analog comparators off
ANSEL = 0 ' Analog select set to digital, pg 69 data
ADCON0 = 0 ' A/D turned OFF, pg 68 of data
'***************************************
'Define Variables
'***************************************
'Set Variables
low 0
start:
toggle 0
pause 1000
goto start
end[/HTML]
When I change the DEFINE OSC between 4, 8, 20 it seems to work fine now...but I get compilation errors as follows:
[HTML]Executing: "C:\PBP\PBPW.EXE" -ampasmwin -oq -z -p12F683 "Blink 12f683 simple.bas"
PICBASIC PRO(TM) Compiler 2.50b, (c) 1998, 2008 microEngineering Labs, Inc.
All Rights Reserved.
Warning[205] E:\USERS\JDROOG\DOCUMENTS\MCS\BLINK 12F683 SIMPLE.ASM 82 : Found directive in column 1. (__config)
Error[118] E:\USERS\JDROOG\DOCUMENTS\MCS\BLINK 12F683 SIMPLE.ASM 82 : Overwriting previous address contents (2007)
Error[118] E:\USERS\JDROOG\DOCUMENTS\MCS\BLINK 12F683 SIMPLE.ASM 82 : Overwriting previous address contents (2007)
Loaded E:\Users\jdroog\Documents\MCS\Blink 12f683 simple.COD.
BUILD SUCCEEDED: Mon Mar 02 19:14:43 2009[/HTML]
What exactly does this mean??
John.
Bookmarks