All,
I am trying to read the input from RA7 from the PIC16F917. The problem is that I cannot do so. Does anyone know why? Thanks-N-Advance
INCLUDE "modedefs.bas"
DEFINE OSC 4 'SET OSCILLATOR SPEED TO 4 MHz
OSCCON = %01100111 'Enable internal oscillator
LCDCON=$40 'DISABLES LCD
CMCON0=$07 'DISABLES COMPARITORS
TRISA = %10101111 'Set PORTA IO Ports (0 = output, 1 = input)
MAIN:
PAUSE 1000
SEROUT PORTc.1,N9600,[13,10,"pic_mon = ",#PORTA.7,13,10]
GOTO MAIN
END
Bookmarks