PDA

View Full Version : Setting Question for Hardware Serial Coms



rocket_troy
- 5th December 2013, 00:46
Much of my serial coms is done via 56K baud which I think requires a 16bit baud rate generator of the PIC's EUSART baud rate generator to access accurately. To access that functionality of the EUSART I need to set the BRG16 bit within the Baud Rate Control Reg. So, my question is - does setting the Baud Rate under a DEFINE statement set that register bit or do I need to set it manually? I can't find any other DEFINEs that overtly set that particular bit.

Thanks,

Troy

mackrackit
- 7th December 2013, 00:48
BAUDCTL.3 = 1 ' Enable 16 bit baudrate generator

rocket_troy
- 8th December 2013, 21:17
Thanks Dave. So it sounds like the answer is a manual setting. It would be nice to have this formally documented somewhere though.

Regards,

Troy