>What am I missing with the 10F?
You're missing the DATASHEET which tells you that GPIO.3 is an INPUT ONLY pin.
>What am I missing with the 10F?
You're missing the DATASHEET which tells you that GPIO.3 is an INPUT ONLY pin.
I have tried it with 0-2 also.
output GPIO.0
output GPIO.1
output GPIO.2
Loop:
High GPIO.0
High GPIO.1
High GPIO.2
Pause 100
Low GPIO.0
Low GPIO.1
Low GPIO.2
Pause 100
Goto Loop
The outputs stay low all the time. I am assuming that I can just power up the 10F through the back of the 10F adapter using the LabX-1 as the power supply.
And you have of course verified that your PIC is actually working, you've got volts where you should have them, and you've programmed it for the correct Oscillator and MCLR usage?
Here's an example of PBP code that works for you to compare in case you've missed anything in the PICs initialisation... btw... it's a good idea to use TRISIO to configure your PICs pin I/O before you use it.
http://www.picbasic.co.uk/forum/showthread.php?t=3510
I can program the PIC, checked voltage etc.
Thank you for the input. I tried first to copy and paste the entire 'Dice' program. I am using MicroCode Studio Plus 3.0 with PBP 2.47. I received three 'Warnings' (Illegal OpCode) and three 'Errors' (Found label after column1) when I tried to compile for a 10f206. I commented out the three @ Device pic10f206 lines and the code then compiled ok. Is there a setup option to allow these statements to compile?
I don't use Microcode studio... generally find these things more of a pain than they are help... the program will compile with the command line...
pbp -p10f206 dice -v
The @ device statements only apply if you're using the native MeLabs assembler.
Bookmarks