Maker Pro
Maker Pro

Need PIC18F code to see if I have a viable chip.

S

SD

Jan 1, 1970
0
I've read the data sheet 98.64 million times, but I can't get my PIC18F2320
to do ANYTHING at all. I can't get a clock signal, I can't toggle any
outputs- nothing. Does anybody have a simple section of code (and config
settings)that I could load up to see if I have a viable uC?
 
B

Ben Jackson

Jan 1, 1970
0
I've read the data sheet 98.64 million times, but I can't get my PIC18F2320
to do ANYTHING at all. I can't get a clock signal, I can't toggle any
outputs- nothing. Does anybody have a simple section of code (and config
settings)that I could load up to see if I have a viable uC?

Here's a valid set of fuse settings:


include "p18f2320.inc"
__CONFIG _CONFIG1H, _IESO_OFF_1H & _INTIO2_OSC_1H
;__CONFIG _CONFIG1H, _IESO_OFF_1H & _XT_OSC_1H & _FSCM_OFF_1H
__CONFIG _CONFIG2L, _BOR_OFF_2L & _BORV_45_2L & _PWRT_ON_2L
__CONFIG _CONFIG2H, _WDT_OFF_2H & _WDTPS_128_2H
__CONFIG _CONFIG3H, _CCP2MX_ON_3H & _MCLRE_OFF_3H
__CONFIG _CONFIG4L, _STVR_ON_4L & _LVP_OFF_4L & _DEBUG_OFF_4L
__CONFIG _CONFIG5L, _CP0_OFF_5L & _CP1_OFF_5L & _CP2_OFF_5L & _CP3_OFF_5L
__CONFIG _CONFIG5H, _CPB_OFF_5H & _CPD_OFF_5H
__CONFIG _CONFIG6L, _WRT0_OFF_6L & _WRT1_OFF_6L & _WRT2_OFF_6L & _WRT3_OFF_6L
__CONFIG _CONFIG6H, _WRTC_OFF_6H & _WRTB_OFF_6H & _WRTD_OFF_6H
__CONFIG _CONFIG7L, _EBTR0_OFF_7L & _EBTR1_OFF_7L & _EBTR2_OFF_7L & _EBTR3_OFF_7L
__CONFIG _CONFIG7H, _EBTRB_OFF_7H

I commented out the XT OSC line and uncommented the INT OSC line.

I don't have a simple bit-wiggling test for you, but if you stay away
from the fancy features (maybe on portb?) you should avoid A/D and
comparitor startup problems.
 
S

SD

Jan 1, 1970
0
It looks like my PIC18F2320 is dead. Thanks for the help...
 
S

SD

Jan 1, 1970
0
UPDATE-

I found out from Microchip tech support that the PIC18F2320 is not supported
by the PICStart Plus programmer.




SD said:
It looks like my PIC18F2320 is dead. Thanks for the help...
 
Top