Think i MIGHT have that sorted now
Although I'm not certain about the TRISA as pins RA6 and RA7 have the resonator connected and not sure if I should have that configured there or not... but every little teaches me moreCode:CCP1CON = %00000000 ; Disable CCP Module SSPCON.5 = 0 ; Disable SSP Module TXSTA.5 = 0 ; Disable AUSART Tx RCSTA.7 = 0 ; Disable Serial Port CMCON = %00000111 ; Turn off comparator TRISA = %00111100 TRISB = %00000000 ANSEL = %00000000 ; Set analog ports to digital mode ADCON1 = %00000111 Port B is all outputs PortA is where I MAY be going wrong, RA0 in, RA1, in, RA2 out, RA3out, RA4 out RA5 out RA6 and RA7 clock/resonator not sure what they should be?![]()





Bookmarks