Hi mackrackit,
The PIC is wired independently and the USB - Serial communicator displays the numbers as per the COM port on the old pc, so no problems so far.
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. DEFINE OSC 4 X VAR WORD Y VAR WORD Z VAR WORD main: Random X Y = X * 1000 Z = DIV32 21845 SEROUT2 PORTC.3, 16780, [DEC Z, 10, 13] pause 4000 GOTO MAIN




Bookmarks