Welcome to the forum.
Serial..
UART on those pins are done in hardware. Sometimes the settings are difficult to setup so we cheat and use this.
PicMultiCalc V_1.3.1
http://www.picbasic.co.uk/forum/atta...achmentid=2957
If you want to use any pin ( almost any pin) for serial then the software (SERIN, SERIN2) is the way to go. SERIN2 uses the same syntax as HSERIN .
ADC.
Take a look here
http://www.rentron.com/PICX2.htm
Uses the "old" way to read the ADC, the way I prefer
And this may also give you some insight
http://www.rentron.com/serial.htm
Your code.
Looks like it is not all there. If that is all of it the links above should help with the missing parts. If there is more, post it all.
It is a good idea to post all of your code and not snippets, sometimes the problem is not where we think..
Bookmarks