Hi and welcome here.
There's a few things you have to change and delete. Let's see
you don't need them, PBP do it for you, just delete those lines aboveCode:@ INCLUDE "P18F2220.INC" ;processor specific variable definitions @ LIST P=18F2220 ;directive to define processor and file format
must be written likeCode:DEFINE OSC = 20
However, with this changed, you'll also need to change your OSC mode in your config fuses... and then you'll probably have a list of Error[118]... read the following thread (at least post 1 and 5)Code:DEFINE OSC 20
http://www.picbasic.co.uk/forum/showthread.php?t=543
kinda hard to fit a 12bit result in a 8bit registerCode:RCSTA = $FAB TXSTA = $FAC SPBRG = $FAFYour program don't use the USART as it use a bit-banged solution (SERIN2/SEROUT2). If you want to use the USART, have a look in your manual for HSEROUT/HSERIN
HTH


Your program don't use the USART as it use a bit-banged solution (SERIN2/SEROUT2). If you want to use the USART, have a look in your manual for HSEROUT/HSERIN


Bookmarks