Hi all, I'm having a job getting a 14K22 running properly. They are Rev3. Looking around for answers I see people not happy with the chip, even at Rev8. Below is where I'm up to so far. I can see f/4 on OSC2, so it appears the IRC is alright. b4,b5,b6 are low, so pull-ups don't seem to be active b7 seems to be an input (pulled up by the LED it's meant to be driving) No activity on c7, I should be seeing ~500Hz toggling Does someone have an example of initialisation please ? TIA Joe CONFIG FOSC =3D IRCCLKOUT CONFIG PWRTEN =3D ON CONFIG WDTEN =3D OFF CONFIG LVP =3D OFF CONFIG CP0 =3D OFF, CP1 =3D OFF CONFIG CPB =3D OFF, CPD =3D OFF CONFIG WRT0 =3D OFF, WRT1 =3D OFF CONFIG WRTC =3D OFF, WRTB =3D OFF, WRTD =3D OFF CONFIG EBTR0 =3D OFF, EBTR1 =3DOFF CONFIG EBTRB =3D OFF CONFIG MCLRE =3D ON init clrf porta clrf portb clrf portc clrf lata clrf latb clrf latc movlw b'01100000' ; - ; 110 8MHz ; - OSTS ; - freq stable ; 00 internal RC (set by Config1 FOSC) movwf osccon btfss osccon,hfiofs ;freq stable bra $-2 movlw b'00100011' ; 1 /mclr ; 1 f1 ; 1 f2 movwf trisa clrf wpua clrf ioca movlw b'01110000' ; 1 PB3 ; 1 PB2 ; 1 PB1 movwf trisb movlw b'01111111' ;pull-ups on b4,b5,b6 movwf wpub clrf iocb movlw b'00000100' ; 1 Vsense movwf trisc clrf ansel clrf anselh clrf rcon ;IPEN =3D 0, no priority clrf intcon clrf intcon2 clrf intcon3 togc btg latc,7 call msdelay bra togc ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2015.0.6172 / Virus Database: 4447/10847 - Release Date: 10/18/15 --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .