I am using a very slighly modified version of the blink sample program:
@ DEVICE PIC16F88, HS_OSC
define OSC 20
pinLED var portb.7
loop:
high pinLED ' Turn on LED connected to PORTB.0
Pause 500 ' Delay for .5 seconds
low pinLED
pause 500
Goto loop ' Go back to loop and blink LED forever
End
I am using the following software:
~~~~~~~~~~~~~~~~~~~~~~
- MicroCode Studio version 2.3.0.0
- melabs Programmer Version 4.01
- PicBasic Pro version version 2.46 (with the lastest patch installed even though
it does not show the version on the command line.
For hardware, I am using:
~~~~~~~~~~~~~~~~~
- PIC16F88
- 20 Mhz Resonator
- PICPROTO18L board
- melabs USB Programmer
The Problem:
~~~~~~~~~
When i modify the program as follows:
@ DEVICE PIC16F88, HS_OSC
define OSC 20
pinLED var portb.7
loop:
toggle pinLED
'high pinLED ' Turn on LED connected to PORTB.0
Pause 500 ' Delay for .5 seconds
'low pinLED
'pause 500
Goto loop ' Go back to loop and blink LED forever
End
the LED does not blink. The strange thing is, when I put the LED on portb.0 through portb.5 it works just fine. For all porta and portb.6, portb.7 the toggle command does not function.
What am I missing or is there a known issue?
Bookmarks