Melanie gets her whip out and locks Paul and Joe in a room for 'retraining'.
RA6/OSC1 and RA7/OSC2 only comes alive when you use the 16F88 in it's Internal Oscillator mode... and that is a feature of the CONFIGURATION BITS of the PIC...
So (assuming you're using the default MeLabs PM Assembler)...
1. At the top of your program, along with your PIC device statements you need...
@ DEVICE INTRC_OSC_NOCLKOUT
or
@ DEVICE pic16F88, INTRC_OSC_NOCLKOUT
I refer you to...
(a) the PICs Datasheet Section 15 Special Features of the CPU, Register Table 15-1 CONFIG1 Configuration Word.
Also (b) http://www.picbasic.co.uk/forum/showthread.php?t=543
Only then you will be able to use RA6 and RA7.
2. However the game hasn't finished...
This PIC has multiple Oscillator selection (see datasheet Section 4 Oscillator Configuration)... one of the very first lines of your program must set the OSCCON Register (see Datasheet Register Table 4-2 OSCCON) for the speed you want this PIC to run... (because the Power-On default is 31.25kHz) example...
OSCCON=%01100000 ' Set PIC to 4MHz
There's other things you can do too, but I won't go into that at this time...
It's all in the Datasheet... crate of beer helps...
Oooh... and make sure your PBP is up to date... something in the back of my mind is nagging me about early versions having a problem with the 16F88... go to the MeLabs website and check in the Versions list when the fix occurred...
Bookmarks