<?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 Re: HCS12 (MC9S12C32) Pin Output Voltage in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-MC9S12C32-Pin-Output-Voltage/m-p/195999#M7768</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Guys,&lt;BR /&gt;&lt;BR /&gt;This is not the exact code I am using but it simplified down to the key part. This code gives a voltage of about 700mV p2p monitoring pin 0 of PORTA.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;#include &amp;lt;hidef.h&amp;gt;      /* common defines and macros */#include &amp;lt;mc9s12c32.h&amp;gt;     /* derivative information */#pragma LINK_INFO DERIVATIVE "mc9s12c32"void main(void) {    DDRA = 0xFF;  PORTA = 0x00;  for(;;)   {    __asm    {      LDAA #$AA      STAA PORTA      LSR PORTA // Shift out data      LSR PORTA // scope used to view PORTA-0       LSR PORTA      LSR PORTA      LSR PORTA      LSR PORTA      LSR PORTA    }   }/* wait forever */}&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;As I said; very simple.&lt;BR /&gt;&lt;BR /&gt;Let me know if you see anything strange. I am dusting off my amplifier textbook!&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2020 09:51:03 GMT</pubDate>
    <dc:creator>Deadstar</dc:creator>
    <dc:date>2020-10-29T09:51:03Z</dc:date>
    <item>
      <title>HCS12 (MC9S12C32) Pin Output Voltage</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-MC9S12C32-Pin-Output-Voltage/m-p/195994#M7763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;Hey guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working using the SCM-12C32 HCS12 module on a Freescale AXM-0392 development board.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have found my output voltages on pins such as PORTA-0 and PORTB-4 are about 600mV P2P. According to the data sheet this figure should be about 4.2V.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is I could do with this higher voltage and would like to avoid messing around with amplifiers etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any ideas why the output voltages are so low?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried setting the RDRIV register to 0x00 incase that effected it but no luck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Colin&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by Deadstar on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2008-02-25&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;04:43 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 00:15:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-MC9S12C32-Pin-Output-Voltage/m-p/195994#M7763</guid>
      <dc:creator>Deadstar</dc:creator>
      <dc:date>2008-02-26T00:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 (MC9S12C32) Pin Output Voltage</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-MC9S12C32-Pin-Output-Voltage/m-p/195995#M7764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;The usual culprit is trying to drive too much current - what are the pins connected to? (although 600mV implies something approaching a dead short)&lt;BR /&gt;&lt;BR /&gt;Are you measuring this voltage at the pin?&amp;nbsp; What frequency are you trying to switch at?&amp;nbsp; The reason I ask is that if you had a heavily capacitive load and you were trying to switch at a particularly high speed then you might just see the ramp up / ramp down as the capacitor charges/discharges&lt;BR /&gt;&lt;BR /&gt;I dont think PORTA and PORTB support an open drain mode and if this is correct then assuming (a) they are configured as output, and (b) they are not over-loaded, then you should see pretty close to Vdd.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Colin&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 15:14:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-MC9S12C32-Pin-Output-Voltage/m-p/195995#M7764</guid>
      <dc:creator>colinh</dc:creator>
      <dc:date>2008-02-26T15:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 (MC9S12C32) Pin Output Voltage</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-MC9S12C32-Pin-Output-Voltage/m-p/195996#M7765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hey, thanks for the reply.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The voltage I mentioned is monitored with no load at the pins. When I try with a reasonably large resistor to ground I monitor the same voltage.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The signal is switching quite quickly (about 2MHz)&amp;nbsp; but when I monitor the voltage I see no traces of slow rising or falling edges implying a capacitive element.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The ports are configured as outputs but I am not sure what you mean by 'open drain mode'. Could you elaborate?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Colin&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 18:00:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-MC9S12C32-Pin-Output-Voltage/m-p/195996#M7765</guid>
      <dc:creator>Deadstar</dc:creator>
      <dc:date>2008-02-26T18:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 (MC9S12C32) Pin Output Voltage</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-MC9S12C32-Pin-Output-Voltage/m-p/195997#M7766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;maybe there is something wrong with your code. can you post it?&lt;/DIV&gt;&lt;DIV&gt;fyi to configure pin as output&amp;nbsp;DDR&amp;nbsp;is set&amp;nbsp;to&amp;nbsp;1 and vice-versa.&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by Xbot on &lt;SPAN class="date_text"&gt;2008-02-26&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;11:50 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 19:39:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-MC9S12C32-Pin-Output-Voltage/m-p/195997#M7766</guid>
      <dc:creator>Xbot</dc:creator>
      <dc:date>2008-02-26T19:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 (MC9S12C32) Pin Output Voltage</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-MC9S12C32-Pin-Output-Voltage/m-p/195998#M7767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;With respect to your question re open drain outputs: Some micros (and I'm not even sure that the S12 is one of them) support a mode where there is no P channel FET in the selected output circuits. It can pull down to GND but&amp;nbsp; cannot&amp;nbsp; source current&amp;nbsp; from the positive rail. Hypothetically if you had this type of output without any load connected (ie a pullup resistor) you would expect to see 0Vpp when you switched, but in practice you might see some small swing due to internal leakages etc.&lt;BR /&gt;&lt;BR /&gt;As XBOT said - shoot us an extract of your code - it might shed some light...&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 20:32:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-MC9S12C32-Pin-Output-Voltage/m-p/195998#M7767</guid>
      <dc:creator>colinh</dc:creator>
      <dc:date>2008-02-26T20:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 (MC9S12C32) Pin Output Voltage</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-MC9S12C32-Pin-Output-Voltage/m-p/195999#M7768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Guys,&lt;BR /&gt;&lt;BR /&gt;This is not the exact code I am using but it simplified down to the key part. This code gives a voltage of about 700mV p2p monitoring pin 0 of PORTA.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;#include &amp;lt;hidef.h&amp;gt;      /* common defines and macros */#include &amp;lt;mc9s12c32.h&amp;gt;     /* derivative information */#pragma LINK_INFO DERIVATIVE "mc9s12c32"void main(void) {    DDRA = 0xFF;  PORTA = 0x00;  for(;;)   {    __asm    {      LDAA #$AA      STAA PORTA      LSR PORTA // Shift out data      LSR PORTA // scope used to view PORTA-0       LSR PORTA      LSR PORTA      LSR PORTA      LSR PORTA      LSR PORTA    }   }/* wait forever */}&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;As I said; very simple.&lt;BR /&gt;&lt;BR /&gt;Let me know if you see anything strange. I am dusting off my amplifier textbook!&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:51:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-MC9S12C32-Pin-Output-Voltage/m-p/195999#M7768</guid>
      <dc:creator>Deadstar</dc:creator>
      <dc:date>2020-10-29T09:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 (MC9S12C32) Pin Output Voltage</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-MC9S12C32-Pin-Output-Voltage/m-p/196000#M7769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Just to let you know,&lt;BR /&gt;&lt;BR /&gt;I tried the above code on an MC9S12E128 and i monitored 800mV p2p on channel A output.&lt;BR /&gt;&lt;BR /&gt;Not sure if that helps,&lt;BR /&gt;&lt;BR /&gt;Colin&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 04:14:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-MC9S12C32-Pin-Output-Voltage/m-p/196000#M7769</guid>
      <dc:creator>Deadstar</dc:creator>
      <dc:date>2008-02-27T04:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 (MC9S12C32) Pin Output Voltage</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-MC9S12C32-Pin-Output-Voltage/m-p/196001#M7770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Run the following code, and then measure the DC voltage at each Port A pin.&amp;nbsp;&amp;nbsp;Compare the oscilloscope calibration with the results&amp;nbsp;from a DC voltmeter, just in case there is a probe problem.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New"&gt;void main(void)&lt;BR /&gt;{&amp;nbsp;&lt;BR /&gt;&amp;nbsp; DDRA = 0xFF;&lt;BR /&gt;&amp;nbsp; PORTA = 0xFF;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; for( ; ; );&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;}&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;A consistent voltage of 0.6 to 0.7 volts suggests the forward voltage drop across a diode.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Mac&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 12:40:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-MC9S12C32-Pin-Output-Voltage/m-p/196001#M7770</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2008-02-27T12:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 (MC9S12C32) Pin Output Voltage</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-MC9S12C32-Pin-Output-Voltage/m-p/196002#M7771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;      LSR PORTA // Shift out data      LSR PORTA // scope used to view PORTA-0&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;I'm not sure with the comments "//" you placed inside the asm code...&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:51:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-MC9S12C32-Pin-Output-Voltage/m-p/196002#M7771</guid>
      <dc:creator>Xbot</dc:creator>
      <dc:date>2020-10-29T09:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 (MC9S12C32) Pin Output Voltage</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-MC9S12C32-Pin-Output-Voltage/m-p/196003#M7772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hey there,&lt;BR /&gt;&lt;BR /&gt;Sorry I have been really busy recently.&lt;BR /&gt;&lt;BR /&gt;I managed to get my hands on some different equipment and now everything works OK.&lt;BR /&gt;&lt;BR /&gt;My guess it was the scope.&lt;BR /&gt;&lt;BR /&gt;Thanks for the consideration though, I really appreciate the time and effort you guys put it.&lt;BR /&gt;&lt;BR /&gt;Colin&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Mar 2008 23:38:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-MC9S12C32-Pin-Output-Voltage/m-p/196003#M7772</guid>
      <dc:creator>Deadstar</dc:creator>
      <dc:date>2008-03-09T23:38:20Z</dc:date>
    </item>
  </channel>
</rss>

