<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic MCF5213 multidrop mode, how to transmit 9 bit in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5213-multidrop-mode-how-to-transmit-9-bit/m-p/172147#M6431</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to implement a 9-bit protocol on the 5213. I have the receiver working fine, but the transmitter I can't get to add the 9th bit, 1 for first char of msg, 0 for the rest of msg. I'm setting the PM &amp;amp; PT bits in the mode register to address for the first char, then data for the rest, but the bit won't change. Does anyone have an example or know how to do this?&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Apr 2009 04:46:55 GMT</pubDate>
    <dc:creator>mstone59</dc:creator>
    <dc:date>2009-04-15T04:46:55Z</dc:date>
    <item>
      <title>MCF5213 multidrop mode, how to transmit 9 bit</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5213-multidrop-mode-how-to-transmit-9-bit/m-p/172147#M6431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to implement a 9-bit protocol on the 5213. I have the receiver working fine, but the transmitter I can't get to add the 9th bit, 1 for first char of msg, 0 for the rest of msg. I'm setting the PM &amp;amp; PT bits in the mode register to address for the first char, then data for the rest, but the bit won't change. Does anyone have an example or know how to do this?&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 04:46:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5213-multidrop-mode-how-to-transmit-9-bit/m-p/172147#M6431</guid>
      <dc:creator>mstone59</dc:creator>
      <dc:date>2009-04-15T04:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5213 multidrop mode, how to transmit 9 bit</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5213-multidrop-mode-how-to-transmit-9-bit/m-p/172148#M6432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To do this you need to allow the first byte (with settings PM=11 and PT=1) to be transmitted.&lt;/P&gt;&lt;P&gt;When this has completd (eg. its interrupt arrives) you can change the setting and send the next byte. &lt;SPAN&gt;It does say in the manual that the change must be performed before the transmitter is enabled and before the next byte has been copied, but it works the same disabling the transmitter or not.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To change the mode, you have to be careful with the UMR1 register since it has to be selected before access. It is often easiest to keep a backup of the register content since any read/write will cause the internal pointer to increment to UMR2, thus making changes like UMR1 |= 0x01; impossible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The sequence is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;*UCR_X = UART_RESET_CMD_PTR;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // reset the internal pointer to UMR1 (rather than URM2)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;*UMR1_2_X = (UART_NO_PARITY | UART_MULTIDROP | UART_8_BIT); // value eg. 0x1b for data mode&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Then send the next character as normal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To set the address mode back&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;*UCR_X = UART_RESET_CMD_PTR;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // reset the internal pointer to UMR1 (rather than URM2)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;*UMR1_2_X = (UART_NO_PARITY | UART_MULTIDROP | UART_8_BIT | ADD_CHAR); // value eg. 0x1f for address mode&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Then send the address character.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This mode is not suitable for DMA transmission since the change needs to be made actively in code between characters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.uTasker.com" rel="nofollow" target="_blank"&gt;www.uTasker.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 20:16:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5213-multidrop-mode-how-to-transmit-9-bit/m-p/172148#M6432</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2009-04-15T20:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5213 multidrop mode, how to transmit 9 bit</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5213-multidrop-mode-how-to-transmit-9-bit/m-p/172149#M6433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That did it! I forgot to reset the mode register pointer. Thank you very much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Mike Stone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 21:11:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5213-multidrop-mode-how-to-transmit-9-bit/m-p/172149#M6433</guid>
      <dc:creator>mstone59</dc:creator>
      <dc:date>2009-04-15T21:11:45Z</dc:date>
    </item>
  </channel>
</rss>

