
Originally Posted by
gringo332
Thanks for the reply:
I'm not sure off the top of my head about the size of the caps I have. I'll have to check when I get home. What size should I use?
Yes, MCLR has a pullup ,I built it into the serial ICD programmer that was suggest by Microstudio. The programmer and power supply (7805) work well for the 16f876.
If The boot loader for the 20mhz 18f252 works fine for for my setup, and I get a different Pic Model # from the Microcode Loader Information tool every time I push it, it would seem to be a hardware issue. What do you think? Could the JDM/WinPic be programming it wrong. I did a verify after programing.
here's my code:
;18f252 test
; i tooks these configs from Microcode's bootloader
@ __CONFIG _CONFIG1H, _OSCS_OFF_1H & _HS_OSC_1H
@ __CONFIG _CONFIG2L, _BOR_ON_2L & _BORV_20_2L & _PWRT_ON_2L
@ __CONFIG _CONFIG2H, _WDT_OFF_2H
@ __CONFIG _CONFIG3H, _CCP2MX_ON_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
define OSC 20
trisb.0 = 0
main
high portb.0
pause 200
low portb.0
pause 200
goto main
Thanks a lot.
Bookmarks