<?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: PWM Setup Issue I Can't get the TPMCH1 to work in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/PWM-Setup-Issue-I-Can-t-get-the-TPMCH1-to-work/m-p/142581#M6300</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;In your 2nd test:&lt;BR /&gt;&lt;BR /&gt;TPMCH1/PTB5 is programmed to be a PWM output.&lt;BR /&gt;The waveform will be (approx) 66% duty cycle - high true.&lt;BR /&gt;Since it is programmed as a PWM, the bits written to port B will not affect the PTB5 output.&lt;BR /&gt;&lt;BR /&gt;TPMCH0/PTA0 is programmed as an output (no PWM).&lt;BR /&gt;The PTA0 output will go low (0) and will remain low because you have written 0's to the port.&lt;BR /&gt;&lt;BR /&gt;Are you testing this with the debugger on the DEMO9S08QG8 board?&lt;BR /&gt;I have loaded both of your programs onto the demo board, 'scoped the output pins, and they work as programmed in each case.&lt;BR /&gt;&lt;BR /&gt;What are you trying to accomplish with the outputs?&lt;BR /&gt;&lt;BR /&gt;Frank&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jan 2007 20:43:57 GMT</pubDate>
    <dc:creator>thisobj</dc:creator>
    <dc:date>2007-01-12T20:43:57Z</dc:date>
    <item>
      <title>PWM Setup Issue I Can't get the TPMCH1 to work</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/PWM-Setup-Issue-I-Can-t-get-the-TPMCH1-to-work/m-p/142578#M6297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am Using a MC9S08QG8 and I have been trying to figure out how to use PWM on the TPMCH1 for ever and I can't seem to figure it out. I have successfully configured the TPMCH0 to work and I have tested it both with the True - Time Simulator and buy hooking up Port A pin 0 to an H-Bridge and Watching as my motor turns.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the initialization code that i am using.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void MCU_init(void) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SOPT1 = 0x00;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TPMMOD = 0x00FF;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TPMC0V = 0x0049;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TPMC1V = 0x00A7;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TPMC0SC = 0b00111000;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TPMC1SC = 0b00111000;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TPMSC = 0b00010000;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PTADD = 0xff;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PTBDD = 0xff;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PTAD = 0x00;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PTBD = 0x80;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and after the MCU_init(); function runs there is a infinite for loop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know what the problem is&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2007 06:23:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/PWM-Setup-Issue-I-Can-t-get-the-TPMCH1-to-work/m-p/142578#M6297</guid>
      <dc:creator>vatothree</dc:creator>
      <dc:date>2007-01-12T06:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: PWM Setup Issue I Can't get the TPMCH1 to work</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/PWM-Setup-Issue-I-Can-t-get-the-TPMCH1-to-work/m-p/142579#M6298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;What is the output doing (or not doing) that indicates to you that it is not working?&lt;BR /&gt;Have you monitored the output pin with a voltmeter or a 'scope?&lt;BR /&gt;I don't see anything wrong with your register setup.&lt;BR /&gt;&lt;BR /&gt;Frank&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2007 08:55:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/PWM-Setup-Issue-I-Can-t-get-the-TPMCH1-to-work/m-p/142579#M6298</guid>
      <dc:creator>thisobj</dc:creator>
      <dc:date>2007-01-12T08:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: PWM Setup Issue I Can't get the TPMCH1 to work</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/PWM-Setup-Issue-I-Can-t-get-the-TPMCH1-to-work/m-p/142580#M6299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Well no matter which set up I use for instance if I just use the code as following&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;void MCU_init(void) {&lt;BR /&gt;SOPT1 = 0x00;&lt;BR /&gt;TPMMOD = 0x00FF;&lt;BR /&gt;&lt;BR /&gt;TPMC1V = 0x00A7;&lt;BR /&gt;&lt;BR /&gt;TPMC1SC = 0b00111000;&lt;BR /&gt;TPMSC = 0b00010000;&lt;BR /&gt;PTADD = 0xff;&lt;BR /&gt;PTBDD = 0xff;&lt;BR /&gt;PTAD = 0x00;&lt;BR /&gt;PTBD = 0x80;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Then when I check the True - Time Simulator The output of the TPMCH0 will change to hex 01 or just 1. I believed that if I was using the TPMCH1 then it would cause the TPMCH1 PortB pin 5 would go high just as TPMCH0 PortA pin 0 goes high all the time.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2007 09:39:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/PWM-Setup-Issue-I-Can-t-get-the-TPMCH1-to-work/m-p/142580#M6299</guid>
      <dc:creator>vatothree</dc:creator>
      <dc:date>2007-01-12T09:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: PWM Setup Issue I Can't get the TPMCH1 to work</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/PWM-Setup-Issue-I-Can-t-get-the-TPMCH1-to-work/m-p/142581#M6300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;In your 2nd test:&lt;BR /&gt;&lt;BR /&gt;TPMCH1/PTB5 is programmed to be a PWM output.&lt;BR /&gt;The waveform will be (approx) 66% duty cycle - high true.&lt;BR /&gt;Since it is programmed as a PWM, the bits written to port B will not affect the PTB5 output.&lt;BR /&gt;&lt;BR /&gt;TPMCH0/PTA0 is programmed as an output (no PWM).&lt;BR /&gt;The PTA0 output will go low (0) and will remain low because you have written 0's to the port.&lt;BR /&gt;&lt;BR /&gt;Are you testing this with the debugger on the DEMO9S08QG8 board?&lt;BR /&gt;I have loaded both of your programs onto the demo board, 'scoped the output pins, and they work as programmed in each case.&lt;BR /&gt;&lt;BR /&gt;What are you trying to accomplish with the outputs?&lt;BR /&gt;&lt;BR /&gt;Frank&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2007 20:43:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/PWM-Setup-Issue-I-Can-t-get-the-TPMCH1-to-work/m-p/142581#M6300</guid>
      <dc:creator>thisobj</dc:creator>
      <dc:date>2007-01-12T20:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: PWM Setup Issue I Can't get the TPMCH1 to work</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/PWM-Setup-Issue-I-Can-t-get-the-TPMCH1-to-work/m-p/142582#M6301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Frank&lt;BR /&gt;&lt;BR /&gt;My problem was actually just a problem with the True - Time Simulator. It does not actually show the PWM on Port B pin 5 changing in the simulation buy I hooked up the circuit up to an LED and it worked thank you for helping me.&lt;BR /&gt;&lt;BR /&gt;Ezra&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jan 2007 03:07:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/PWM-Setup-Issue-I-Can-t-get-the-TPMCH1-to-work/m-p/142582#M6301</guid>
      <dc:creator>vatothree</dc:creator>
      <dc:date>2007-01-13T03:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: PWM Setup Issue I Can't get the TPMCH1 to work</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/PWM-Setup-Issue-I-Can-t-get-the-TPMCH1-to-work/m-p/142583#M6302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Dear Ezra&lt;BR /&gt;be careful with simulation of the TIM units! There seems to be a bug in the interrupt interface. I have this kind problems since CW3.1 with HCS08 devices. As far i know PE will fix this in CW5.2 coming soon.&lt;BR /&gt;&lt;BR /&gt;Saluti Joerg&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jan 2007 00:40:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/PWM-Setup-Issue-I-Can-t-get-the-TPMCH1-to-work/m-p/142583#M6302</guid>
      <dc:creator>joerg</dc:creator>
      <dc:date>2007-01-14T00:40:22Z</dc:date>
    </item>
  </channel>
</rss>

