You guys are working hard over the weekend.... good for you :wink:
Well three things:
1.
What code are you using?... so we can focus on that. Are you using PICBasic ( not the PRo edition)... The Pro Editions was running around this board for a while not too ling ago. I am not sure how well is the download or you can buy it straight from
MircoEnginering Labs
2.
What type of data are you sending.? depending on the data you are expecting you can see what is trying to happen better.
3.
What chip are you using? Is it a PIC16F877.... sounds like it
:arrow: I am not so sure about the capabilities on the PICBASIC you have the PRO edition is able to address the registers by name. I am not sure about the PICBASIC..... I actually believe it can't unless you actually write to the address of the register. So I hope you are doing some type of "alias" to the name TXREG
:!: The Serout comand is giving you the error because PICBASIC can address bits like POrtB.6 as PICBasic PRo does. :evil:
:idea: I would try using the serout command and make sure the comunications are workng before trying to use the USART. The Serout command is simple enough that should work just fine. And you can use the PIN on the PortC.6 so that you can latter change it to the USART
:idea: PICBASIC PRO has the command HSerout.... where you can use the built-in USART.
:idea: Try using Serout command with the variable you want to send to a pin of the portB... that is the only port that works with this command. Once you have that working you know that your circuit is communicating and you can see if it need to be inverted or True mode.... N9600 or T9600. Then move to the USART.
:arrow: On the comments to divide your number I believe you don't need to do that. If you just want to see what you are getting then you kow if you got an A you are sending a 65. But if you really want to see the 65 then you will have to do some manipulation to your results to send a ASCII value for 6 and a ASCII value for 5. :idea: I would suggest also to get rid of Hyperterminal and make a Visual Basic program that captures the serial port and displays what you need.
Let me see your code....
Ivancho