Same thing again. So weird.
TRISx, PORTx, ANCONx and ADCONx is like below in my code
TRISA = %11100000 'porta direction 0=OUTPUT 1=INPUT
PORTA = %00000000 'porta preset
TRISB = %11010111 'portb direction 0=OUTPUT 1=INPUT
PORTB = %00000000 'portb preset
TRISC = %00000000 'portc direction 0=OUTPUT 1=INPUT
PORTC = %00000000 'portc preset
TRISD = %00111111 'portd direction 0=OUTPUT 1=INPUT
PORTD = %00110000 'portd preset
TRISE = %00001111 'porte direction 0=OUTPUT 1=INPUT
PORTE = %00000000 'porte preset
ANCON0 = %00000000
ANCON1 = %00000000
ADCON0 = %00000000
ADCON1 = %00000000
Bookmarks