Here's the latest code, doesn't work though
Is it ok to leave the PIC - pc cable unplugged? If not where should it go?
The PIC is a 16F684
DaveCode:ANSEL = %00000000 'Disable analog select so ports work as digital i/o. CMCON0 = %00000111 'Disable analog comparators. TRISA = %00000000 'Set PORTA as OUTPUT. PORTA = %00000000 'Set PORTA pins all low. TRISC = %00000000 'Set PORTC as OUTPUT. PORTC = %00000000 'Set PORTC pins all low. MYVAR VAR BYTE MAIN: PAUSE 250 SERIN2 PORTA.0, 16780, [DEC MYVAR] '2400 INVERTED IF MYVAR = 3 THEN HIGH PORTA.5 PAUSE 250 GOTO MAIN





Bookmarks