So my question is, am I wasting time by using the Hserin/Hserout? Are there any major benefits to using these or should I just use serin/serout?
So my question is, am I wasting time by using the Hserin/Hserout? Are there any major benefits to using these or should I just use serin/serout?
You're not wasting your time with HSERIN/HSEROUT. I use the onboard USART whenever possible. The reason being the onboard USART has a built in buffer.
This means PICBasic can do other things and not miss any incoming data. In addition if you enable interrupts you serial string will be received without polling.
The error handling isn't an issue for me because I automatically clear them as they occur with the following:
DEFINE HSER_CLROERR 1 ' Clear all USART errors as they happen
If I had to determine a cause I would have to say it is a setting that is missed on the new chip. Make sure all the defines and fuses are set correctly. Also make sure wiring is correct.
Don't give up yet, its with the little amount of work.
Bookmarks