I feel like I've experienced some form of memory loss and I'm having to learn how to ride a bike all over again !
I've breadboarded the circuit as follows:
Pin 20 = +5v
Pin 19 and pin 8 = GND
Pin 1 = +ve via a 10K resistor
Pin 9 & 10 - 4 Mhz xtal with 22pf between pins and GND
Pins 21 - 28 LED with 120 R resistor to GND
When power is applied RB7, RB6, RB4 and RB3 faintly light and appear to be flickering randomly (like a candle effect)
I'm getting 1.25v on the above pins, but RB5 is showing -1.1v, RB2 = -0.8 and -0.9v on RB1 and RB0
Does the 2550 PIC require the USB components connect to RC4 -7 to function correctly ?
EDIT:
Can someone confirm that I have the correct settings in the application and INC files
Program code
and INC file (in PBP folder)Code:@WDT_ON @PWRT_ON @MCLR_OFF @BOD_ON @LVP_OFF @CPD_OFF @PROTECT_OFF @ errorlevel -202
Code:INCLUDE "P18F2550.INC" ; MPASM Header __CONFIG _CONFIG1L, _PLLDIV_5_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L __CONFIG _CONFIG1H, _FOSC_HS_1H __CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_128_2H __CONFIG _CONFIG3H, _PBADEN_OFF_3H __CONFIG _CONFIG4L, _LVP_OFF_4L & _XINST_OFF_4L




Bookmarks