James Burkart wrote: > > ;-----= PROGRAM =------------------------------------------------------- > org 0x000 > ; > bcf status, rp0 > bcf status, rp1 > ; > bsf status, rp0 > movlw b'00000111' > movwf adcon1 > ; > movlw b'00000000' > movwf trisb > ; > bcf status, rp0 > ; > start nop > clrf portb > > loop incf portb, f > nop > nop > nop > nop > goto loop > > end Put this is your code instead of your setup code... clrf PORTA clrf PORTB clrf PORTC clrf PORTD clrf PORTE bsf STATUS,RP0 clrf TRISA clrf TRISB clrf TRISC clrf TRISD clrf TRISE movlw b'00000111' movwf ADCON1 bcf STATUS,RP0 All the port pins other than RB are floting inputs which can cause lots of headaches. The data books specify C values as pF not nF as you are using. Whether there is a reason for this I don't know. Try 300pF and 100K for Fosc = 28KHz. You will still need to slow your loop down to see all the LEDs change state. Try this for your fuse setting. Make sure it appears only on one line in your source code. ; ; ------------------ ; CONFIGURATION FUSE ; ------------------ ; __CONFIG _CP_OFF & _WRT_ENABLE_OFF & _RC_OSC & _WDT_OFF & _PWRTE_OFF & _BODEN_OFF & _LVP_OFF & _CPD_OFF & _DEBUG_OFF -- Best regards Tony mICros http://www.bubblesoftonline.com mailto:sales@bubblesoftonline.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu