PDA

View Full Version : 18F6722 EUSART Question



circuitpro
- 9th July 2010, 22:50
PIC Multicalc generates a DEFINE that sets HSER_CLROERR to 1 in most cases. With a PIC18F6722 which has 2 EUSARTS, I'm finding that for most of the settings, there is an equivalent '1' and '2' setting, i.e. DEFINE HSER_RCSTA 90h would have HSER_RCSTA1 and HSER_RCSTA2 settings available. I'm not finding such a setting for automatically clearing overflows, however. Maybe there isn't such a feature? Anybody been here before?

Len

Darrel Taylor
- 9th July 2010, 23:02
I think it's ...

DEFINE HSER2_CLROERR 1

EDIT: And the others are ...

DEFINE HSER2_RCSTA xxh
DEFINE HSER2_TXSTA xxh
<br>

circuitpro
- 9th July 2010, 23:17
well it sure doesn't cause a compiler error, so I'll try it! Thanks.

BTW, where do I download the latest version of DT_INTs? Hope they work w/ this chip!! :rolleyes:

mackrackit
- 10th July 2010, 03:20
http://darreltaylor.com/DT_INTS-18/home.html