<?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>Other NXP ProductsのトピックRe: mpc8270 SCC2 UART issue:  BRGC sometimes  locked incorrect baud rates for autobaud</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/mpc8270-SCC2-UART-issue-BRGC-sometimes-locked-incorrect-baud/m-p/684767#M4860</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The MPC8270 SCC try to detect length of UART start bit for autobaud. It requires that character should be odd since UART sends LSB bit first. Often symbols 'a' or 'A' (0x61 or 0x41) are used.&lt;/P&gt;&lt;P&gt;Your test shows that '5' is better.&lt;/P&gt;&lt;P&gt;Note: QE Reference Manual and MPC8280 Reference Manual contain the following:&lt;/P&gt;&lt;P&gt;Due to a measurement error that occurs at high baud rates, this divide ratio written by the autobaud controller may not be the precise baud rate you prefer (56,600 could be the esulting baud rate, rather than 57,600).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 May 2017 03:23:13 GMT</pubDate>
    <dc:creator>Pavel</dc:creator>
    <dc:date>2017-05-22T03:23:13Z</dc:date>
    <item>
      <title>mpc8270 SCC2 UART issue:  BRGC sometimes  locked incorrect baud rates for autobaud</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/mpc8270-SCC2-UART-issue-BRGC-sometimes-locked-incorrect-baud/m-p/684766#M4859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: black;"&gt;I am using mpc8270 SCC2 UART auto baud feature&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: black;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: black; font-family: arial, helvetica, sans-serif;"&gt;It am facing a mpc8270 SCC2 UART issue &amp;nbsp;that BRGC sometimes&amp;nbsp; locked incorrect baud rates for autobaud.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="font-size: 11.0pt; color: black;"&gt;This issue is very similar to an issue that I reported for MPC8360E (&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;&lt;A class="jive-link-thread-small" data-containerid="2001" data-containertype="14" data-objectid="450609" data-objecttype="1" href="https://community.nxp.com/thread/450609"&gt;https://community.nxp.com/message/902477&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp;It was found in the following two group of test cases that &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="color: black; font-family: arial, helvetica, sans-serif;"&gt; a specific set of characters seems to always&amp;nbsp; trigger correct BRGC baud rate locking (Test Case Group 1), and &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: black; font-family: arial, helvetica, sans-serif;"&gt; an another specific set of characters (Test Case Group 2) always&amp;nbsp; trigger incorrect BRGC baud rate locking.&amp;nbsp;&amp;nbsp; In these cases, the un-existing BRKs from DCE were always reported by SCC2 SCCE register.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P style="margin-bottom: 12.0pt;"&gt;&lt;SPAN style="color: black; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt; Our connection configuration is as below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp;setup:&amp;nbsp;&amp;nbsp; DCE has fixed baud rate: 19200.&amp;nbsp;&amp;nbsp; 8270 SCC2 DTE sets as autobaud &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: black; font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp; [ MCP8270 SCC2 DTE (autobaud) ]&amp;nbsp; &amp;lt;-------------&amp;gt; &amp;nbsp;&amp;nbsp; [DCE (fixed baud rate 19200)]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: black; font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: black;"&gt;Processor Version Register (PVR) = 0x80822014 (mpc8270/8280)&lt;BR /&gt;&lt;BR /&gt; &lt;STRONG&gt;-------Test Case Group 1:&amp;nbsp;&lt;/STRONG&gt; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #3d3d3d;"&gt;(&lt;STRONG&gt;correct baud locking cases&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d;"&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp; DCE(19200)&amp;nbsp; send Rx single "5" &lt;BR /&gt; &amp;nbsp;&amp;nbsp; SCC2 saw 2 Rx: 0x1c 0xf3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; locked_brgc=0x100f0 (&lt;/SPAN&gt;&lt;STRONG style="color: red;"&gt;locked_baud:19369&lt;/STRONG&gt;&lt;SPAN style="color: black;"&gt;)&amp;nbsp;&amp;nbsp; locked baud close to 19200/ok_translate!&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; note: there was no any errors reported by SCC2's SCCE event register even though received two&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rx bytes 0x1c 0xf3 do not match to "5" (0x35) from DCE.&lt;BR /&gt; &amp;nbsp;&amp;nbsp; DCE(19200)&amp;nbsp; send Rx&amp;nbsp; "55555555" or anything&lt;BR /&gt; &amp;nbsp;&amp;nbsp; SCC2 saw&amp;nbsp;&amp;nbsp; "55555555" or anything&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; note from testing:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; characters ( 2, 3, 4 5, 6, 7, T, U, V, l, m, n, o, s, t, u, w) can triggered corrected BRGC locked baud.&lt;BR /&gt; &amp;nbsp;&lt;BR /&gt; &lt;STRONG&gt;-------Test Case Group 2&lt;/STRONG&gt;: &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #3d3d3d;"&gt;(&lt;STRONG&gt;incorrect baud locking cases&lt;/STRONG&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt; step1:&amp;nbsp; DCE(19200)&amp;nbsp; send Rx single "A"&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt; step2:&amp;nbsp; SCC2 saw 1 Rx: 0x1c&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scce=0x101[AB:0,IDL:1,GRA:0,BRKE:0,BRKS:0,CCR:0,BSY:0,TX:0,RX:1]&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; with one error (FR:1) reported by BD status as below&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rxbd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Stat&amp;nbsp;&amp;nbsp; Len&amp;nbsp;&amp;nbsp;&amp;nbsp; DataPtr&amp;nbsp;&amp;nbsp;&amp;nbsp; Data&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xf0000c20 0x3010 0x0001 0xf0000c7f 0x1c [E:0 W:1 I:1 C:0 A:0 CM:0 ID:0 AM:0 BR:0 FR:1 PR:0 OV:0 CD:0] ERROR&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCC2 saw 1 AB event&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; locked_brgc=0x10320 (&lt;/SPAN&gt;&lt;STRONG style="color: red;"&gt;locked_baud:5844&lt;/STRONG&gt;&lt;SPAN style="color: black;"&gt;)&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;STRONG&gt;locked baud is far away from 19200&lt;/STRONG&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scce=0x300[AB:1,IDL:1,GRA:0,BRKE:0,BRKS:0,CCR:0,BSY:0,TX:0,RX:0] &amp;nbsp;&lt;BR /&gt; step3:&amp;nbsp; DCE(19200)&amp;nbsp; send Rx single "A" again &lt;BR /&gt; step4:&amp;nbsp;&amp;nbsp;&amp;nbsp; SCC2 saw 1 Rx: 0xFE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; without any error by BD status &amp;nbsp;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scce=0x101[AB:0,IDL:1,GRA:0,BRKE:0,BRKS:0,CCR:0,BSY:0,TX:0,RX:1]&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rxbd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Stat&amp;nbsp;&amp;nbsp; Len&amp;nbsp;&amp;nbsp;&amp;nbsp; DataPtr&amp;nbsp;&amp;nbsp;&amp;nbsp; Data&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xf0000c20 0x3000 0x0001 0xf0000c7f 0xfe [E:0 W:1 I:1 C:0 A:0 CM:0 ID:0 AM:0 BR:0 FR:0 PR:0 OV:0 CD:0]&lt;BR /&gt; step5:&amp;nbsp;&amp;nbsp; DCE(19200)&amp;nbsp; send Rx&amp;nbsp; "AAAAAAA"&lt;BR /&gt; step6:&amp;nbsp;&amp;nbsp; SCC2 saw 1 Rx: 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE 0xFE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; without any error by BD status &amp;nbsp;&lt;BR /&gt; &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; note from testing:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; characters ( 0,1,8,9, all letters except for "T, U, V, l, m, n, o, s, t, u, w") &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; triggered incorrected BRGC locked baud.&lt;BR /&gt; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN&gt;=========&amp;nbsp;&lt;/SPAN&gt;Comments &amp;amp; Observation&amp;nbsp;&lt;BR /&gt; It looks that when SCC2 incorrectly &amp;nbsp;declared the reception of BRKs that were not sent by DCE at all, BRGC locked incorrect baud rate.&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: arial, helvetica, sans-serif;"&gt;========= procedure of&amp;nbsp; Trigger MPC8270 SCC2 UART autobaud&amp;nbsp; =======&lt;BR /&gt; &lt;BR /&gt; 1. BRGC&amp;nbsp; programing:&amp;nbsp; program the new value (e.g. 9600) &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; Result:&amp;nbsp; operation baud rate (OPER_BAUD) =9605,&amp;nbsp; brgc=0x101e6 [RST:0,EN:1,ATB:0,CD:0xf3] &lt;BR /&gt; 2. Set SCCM[Rx] and SCCM[AB] and so on&lt;BR /&gt; 3. Waiting for Rx Receive data&amp;nbsp; (i.e. waiting for SCCE[Rx]&amp;nbsp; set) for setting ATB bit at BRGC register&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; (note: 8280RM rev.1 page 17-3:&amp;nbsp; ATB must remain zero until the SCC receives the three Rx clocks.)&lt;BR /&gt; 4.&amp;nbsp; Set EN &amp;amp; ATB bits&amp;nbsp; at BRGC register for triggering MPC8360 BRGC autobaud &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mechanism that sets BRGCx[CD] and BRGCx[DIV16]&lt;BR /&gt; 5.&amp;nbsp; Waiting for AB event &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; when receiving&amp;nbsp; AB event, read locked&amp;nbsp; BRGCx[CD][DIV16] for locked baud rate&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; At this point, BRGC is expected to lock up the incoming baud rate by&amp;nbsp; setting BRGCx[CD] and BRGCx[DIV16]. &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; software will read BRGCx[CD] and BRGCx[DIV16], and re-setting them to one of closest standards baud rates (i.e, 9600, 19200, ..., 115200)&lt;BR /&gt; &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; adjust the&amp;nbsp; BRGC to the closet standard baud rate, clear ATB bit in brgc.&lt;BR /&gt; 6. can receive the DCE Rx inputs. &amp;nbsp;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; The following is the setting before executing the above procedure:&lt;BR /&gt; IMM SCC2 data&lt;BR /&gt; gsmr_l 0xf0011a20 0x00228034&amp;nbsp;&amp;nbsp;&amp;nbsp; gsmr_h 0xf0011a24 0x00000062&lt;BR /&gt; psmr&amp;nbsp;&amp;nbsp; 0xf0011a28 0xb000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; todr&amp;nbsp;&amp;nbsp; 0xf0011a2c 0x8000&lt;BR /&gt; dsr&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xf0011a2e 0x7e7e&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scce&amp;nbsp;&amp;nbsp; 0xf0011a30 0x0100&lt;BR /&gt; sccm&amp;nbsp;&amp;nbsp; 0xf0011a34 0x0047&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sccs&amp;nbsp;&amp;nbsp; 0xf0011a37 0x03&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 20:34:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/mpc8270-SCC2-UART-issue-BRGC-sometimes-locked-incorrect-baud/m-p/684766#M4859</guid>
      <dc:creator>gluo</dc:creator>
      <dc:date>2017-05-18T20:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: mpc8270 SCC2 UART issue:  BRGC sometimes  locked incorrect baud rates for autobaud</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/mpc8270-SCC2-UART-issue-BRGC-sometimes-locked-incorrect-baud/m-p/684767#M4860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The MPC8270 SCC try to detect length of UART start bit for autobaud. It requires that character should be odd since UART sends LSB bit first. Often symbols 'a' or 'A' (0x61 or 0x41) are used.&lt;/P&gt;&lt;P&gt;Your test shows that '5' is better.&lt;/P&gt;&lt;P&gt;Note: QE Reference Manual and MPC8280 Reference Manual contain the following:&lt;/P&gt;&lt;P&gt;Due to a measurement error that occurs at high baud rates, this divide ratio written by the autobaud controller may not be the precise baud rate you prefer (56,600 could be the esulting baud rate, rather than 57,600).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 03:23:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/mpc8270-SCC2-UART-issue-BRGC-sometimes-locked-incorrect-baud/m-p/684767#M4860</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2017-05-22T03:23:13Z</dc:date>
    </item>
  </channel>
</rss>

