I don't us CDLite and it's no longer supported by Melabs so may i suggest you to use MicroCode Studio instead?
Download it here
Or you can still use MPLAB and do everything in. For that you'll need to install the PicBasic plug-in
MPLAB installation page
Now you may need to upgrade your PICSTART firmware and MPLAB to the latest version
MPLAB download page
Once it's done, you should'nt have any other compilation or you still have an older PBP version wich doesn't support the 12F509 like Version 2.44 and those before. If so, you'll need an update of it too.
Once everything above is done, you should be able to do something workable.
When you want to access to an i/o, you must call the proper PIC register as stated in the PIC datasheet, in your case GPIO.
to set the internal oscillator and all config fuses.. read the following link
http://www.picbasic.co.uk/forum/showthread.php?t=543
a sample code... well let's try something using MPASM config fuses... oh no i never use the PM compiler, sorry.
Code:
'
' Pic Configuration
' =================
@ __CONFIG _MCLRE_OFF & _CP_OFF & _WDT_OFF & _IntRC_OSC ' Disable MCLR pin
' Disable code protection
' Disable Watch-Dog timer
' Use internal OSC
'
' Hardware configuration
' ======================
TRISIO=0 ' Set almost i/o to output
'
' Software/Hardware initialisation
' ================================
GPIO = 0 ' Clear almost i/o
'
' ////////////////////////////////|\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
' Program Start Here
' ////////////////////////////////|\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
'
' Nothing fancy, just do a blink on almost i/o
'
Start:
GPIO=GPIO ^ $FF
pause 500
goto start
Why i said 'almost i/o'? it's up to you to discover now
Last edited by mister_e; - 30th April 2006 at 21:52.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks