
Originally Posted by
skimask
Well, again, let's see some code, some configuration information, what kind of programmer, software, maybe some schematic information, power supply, anything, etc.
Code:
@ DEVICE pic16F628, HS_OSC
' ---- High Speed Oscilator
@ DEVICE pic16F628, WDT_OFF
' ---- Watchdog Timer=OFF
@ DEVICE pic16F628, BOD_ON
' ---- Brown-Out Detect
@ DEVICE pic16F628, LVP_OFF
' ---- Low-Voltage Programming=OFF
@ DEVICE pic16F628, MCLR_ON
' ---- Reset Pin=Internal
@ DEVICE pic16F628, PWRT_ON
' ---- Power-On Timer=Disabled
@ DEVICE pic16F628, CPD_OFF
' Data Memory Code Protect
' Set to CPD_OFF for Development Copy
@ DEVICE pic16F628, PROTECT_OFF
' Program Code Protection
'MCLR pin is pullup at 5V via 4K7
'external XTAL @20MHz and two cap (I was probe from 10pF to 27pF)
'portb.1 to led via 330 ohm and 330 ohm to GND (led is low current green)
'when I put in same socket PIC 16F628-04/P and change XTAL to 4MHz and 2x27p LED
'blinky OK and if I change in that socket 16F84A-20/P and use XTAL 20MHz and 2x27p
'it blinky 100% OK. THAT MEAN THAT PROTO PCB is OK ........
'these code is for 16F628-20/P @20MHz HS osc
'programmer is EPIC programer and work fine for me ;-)
define osc 20
CMCON = 7 ' PortA = digital I/O
VRCON = 0 ' Disable A/D Voltage reference
low portb.1
pause 250
loop:
high portb.1
pause 1000
low portb.1
pause 1000
goto loop
end
Bookmarks