So I've now got a new problem, can you tell I'm a noob yet?
I've created a program now to make sure the 16F88 is working ok.
I load the program in to the pic, compile, burn and it works. LED flashes away merrily.
My problem now is that I can no longer reprogram the chip.
If I connect my JDM programmer to the serial port I can detect the programmer with PICPgm and if i then insert the chip I can detect it. BUT when I try to burn the new hex file it immediately says No chip found, and then no programmer found.
I'm wondering if it has something to do with using the RA6 and RA7 pins that are normally OSC pins. It almost seems like the programmer is fine until the PIC gets power and starts doing it's blink code. (just guessing, I'm really new at this and grasping at straws).
Any suggestions?
the code in case that helps:
'************************************************* ***************
'* Name : 88Blinker.pbp *
'* Author : Greensasquatch *
'* Notice : Copyright (c) 2008 *
'* : All Rights Reserved *
'* Chip : PIC16F88 *
'* Date : 06/09/2008 *
'* Version : 1.0 *
'* Notes : To set up the most basic settings to flash *
'* : an LED on a PORTB pin using only the internal *
'* : oscillator and MCLR turned off. *
'* : *
'************************************************* ***************
'*
'* Connections are as follows:
'*
'* RA2 -01-|######|-18- RA1
'* RA3 -02-|######|-17- RA0
'* RA4 -03-|######|-16- RA7 to LED
'* RA5 -04-|######|-15- RA6 to LED
'* Gnd -05-|######|-14- V++
'* RB0 -06-|######|-13- RB7
'* RB1 -07-|######|-12- RB6
'* RB2 -08-|######|-11- RB5
'* RB3 -09-|######|-10- RB4
'*
'************************************************* ***************
OSCCON = $60 'set int osc to 4mhz
ANSEL = 0 'ALL DIGITAL
CMCON = 7 'COMPARATORS OFF
TRISA = %00000000 'all output
TRISB = %00000000 'all output
PORTA = 0 'all porta low
@ DEVICE MCLR_OFF, INTRC_OSC, WDT_ON, LVP_OFF, BOD_OFF, PWRT_ON, PROTECT_ON
Pause 100 'wait to start
START:
High PORTA.6 'LED's on
High PORTA.7
Pause 1000
Low PORTA.6 'LED's off
Low PORTA.7
Pause 1000
GoTo START 'repeat
Bookmarks