Re: hserout issues on the 18F26K83
You might want to double check that you are setting the hardware communication correctly. I have used the code below to set the HSEROUT/HSERIN for the 18F4550. You might want to check the correct settings for the 18F26K83. I have never used that chip before. The Mr. E calculator was helpful to me.
Code:
'####### MR. E CALCULATOR SETTINGS #########
DEFINE HSER_RCSTA 90h 'ENABLES SERIAL PORT
DEFINE HSER_TXSTA 20h 'ENABLES TRANSMIT
DEFINE HSER_CLROERR 1 'Hser clear overflow automatically
SPBRG = 25
SPBRGH = 0
'DEFINE HSER_SPBRG 25 '115200 BAUD
BAUDCON.3 = 1 'ENABLE 16 BIT BAUDRATE GENERATOR
"No one is completely worthless. They can always serve as a bad example."
Anonymous
Bookmarks