View Single Post
Old 30th Mar 2023, 1:19 pm   #39
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,119
Default Re: Anyone building a PICL? more PCBs available

Its not that G, Mike deselects all the analogues right at the very start:
Code:
        org     0x0000
v_reset
        clrf    INTCON          ; global & peripheral IRQs off
        banksel ANSELA       ; bank
        clrf    ANSELA          ; PORTA analog functions off
        clrf    ANSELB          ; PORTB analog off
        clrf    ANSELC          ; PORTC analog off
        clrf    ANSELD          ; PORTD analog off
        clrf    ANSELE          ; PORTE analog off
Phil__G is offline