This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Any example projects implementing the MSP430G2 UART in multiprocessor mode,
Idle-Line Multiprocessor Format When UCMODEx = 01
as well as
Address-Bit Multiprocessor Format When UCMODEx = 10
Automatic baud rate detection example would be great too.
Thanks
Viking,
I have attached an example code providing usage of a Automatic Baud Rate Detection and Address-Bit Multiprocessor Format. Unfortunately, I could not find one with Idle-Line Multiprocessor Format. I hope this helps!
Best Regards,
Michael Arriete
Hi Viking,
We are still working on the documentation, the code that Michael provided, is just a small piece of an App Note (LIN) that we are currently working on.
So if you want to try this, please call this function to initialize your UART
UART_Init(USCIA_0);
and then please review the User's Guide (SLAU144) - 15.3.4 Automatic Baud Rate Detection
The bytes received after the break/synch sequence is sent (message) should trigger the function call Rx_ISR in the USCI0RX_ISR.
__interrupt void USCI0RX_ISR(void) { uint8_t sync_rx_byte; if (SBF_Received) { sync_rx_byte = UART_Rx(USCIA_0); // Receive Message Rx_ISR(USCIA_0,sync_rx_byte); } else { SBF_Received = true; // Clear BF flag and disable Interrupt Clear_UART_BF_Flag(USCIA_0); Disable_UART_BF_RX_DormantMode(USCIA_0); } }
Hopefully this helps.
Best regards,
David
David,
Thanks a lot for addressing this. We are impressed. Got he Auto Baud Rate Detection working. (it does appear to be some built-in support for this that I am not using fully, so your full documentation will be helpful).
However, still not able to use the multiprocessor support, mostly because of very little information. I look much forward to the new documentation.
Please make sure to update me as soon as this is available. And again, Code is King; need for much documentation other than a working code example.
Regards, Erik
**Attention** This is a public forum