<?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>S12 / MagniV MicrocontrollersのトピックRe: ad7792 interface problem(urgent) please.......</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ad7792-interface-problem-urgent-please/m-p/271970#M9922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your code, the SPI control register 2 is configured so the Transfer Width is 16bit, Bidirectional Mode is enabled (only one data line; MOSI on Master side), Mode Fault failure detection is enabled.&lt;/P&gt;&lt;P&gt;Try setting it simply as SPICR2=0x00; See if it works and then experiment other bits. The SPICR1 should be OK, but in the main function SPI must be enabled by setting SPICR1_SPE bit. After SPI init, the SPI system must be enabled just before a start of SPI Master transfer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SPIBR should be OK. You set the Rate Divisor = Prescaler Divisor = 7.&lt;/P&gt;&lt;P&gt;Note that:&lt;/P&gt;&lt;P&gt; - BaudRateDivisor = (Prescaler+1)*2^(Rate Divisor)&lt;/P&gt;&lt;P&gt; - Baud Rate = BusClock/BaudRateDivisor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The IRQ will be enabled by setting the IRQEN configuration bit, which is OK, and clearing the I-bit in the CPU condition code register. It is inhibited at reset so this pin is initially configured as a simple input with a pull-up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concerning the AD7792 device, if you have problems, contact Analog Devices support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Ivan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Aug 2013 13:46:36 GMT</pubDate>
    <dc:creator>iggi</dc:creator>
    <dc:date>2013-08-28T13:46:36Z</dc:date>
    <item>
      <title>ad7792 interface problem(urgent) please.......</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ad7792-interface-problem-urgent-please/m-p/271969#M9921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 18pt;"&gt;Hello all&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt; line-height: 1.5em;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 18pt; line-height: 1.5em;"&gt;i am trying to interface ad7792(16 bit adc) to mc9s12p128 uC&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 18pt;"&gt;but my adc not get configured.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 18pt;"&gt;same adc i hv interface to mc9s08gt32 n working properly. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 18pt;"&gt;i think my problem in SPI initialization.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 18pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 18pt;"&gt;my configuration as&amp;nbsp; follows:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 18pt;"&gt;my initialization&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 18pt;"&gt;/* irqcr=0xc0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;for adc conversion complete&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 18pt;"&gt;/* spi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 18pt;"&gt;/*spicr1=0x10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 18pt;"&gt;/*spicr2=0x5E&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 18pt;"&gt;/*spibr=0x77&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 18pt;"&gt;i am trying to config adc as&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 18pt;"&gt;/*&amp;nbsp; AN1+/AN-,differential inp,internal ref. both current source off. 0-100mv inp and continuous conversion mode &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 18pt;"&gt;but i cant get external interrupt means conversion complete flag.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 18pt;"&gt;please help&amp;nbsp; me..!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN style="font-size: 18pt;"&gt;&lt;SPAN aria-label="Confused" class="emoticon-inline emoticon_confused" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&lt;SPAN aria-label="Confused" class="emoticon-inline emoticon_confused" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&lt;SPAN aria-label="Confused" class="emoticon-inline emoticon_confused" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&lt;SPAN aria-label="Confused" class="emoticon-inline emoticon_confused" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 10:06:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ad7792-interface-problem-urgent-please/m-p/271969#M9921</guid>
      <dc:creator>prashanterande</dc:creator>
      <dc:date>2013-08-23T10:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: ad7792 interface problem(urgent) please.......</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ad7792-interface-problem-urgent-please/m-p/271970#M9922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your code, the SPI control register 2 is configured so the Transfer Width is 16bit, Bidirectional Mode is enabled (only one data line; MOSI on Master side), Mode Fault failure detection is enabled.&lt;/P&gt;&lt;P&gt;Try setting it simply as SPICR2=0x00; See if it works and then experiment other bits. The SPICR1 should be OK, but in the main function SPI must be enabled by setting SPICR1_SPE bit. After SPI init, the SPI system must be enabled just before a start of SPI Master transfer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SPIBR should be OK. You set the Rate Divisor = Prescaler Divisor = 7.&lt;/P&gt;&lt;P&gt;Note that:&lt;/P&gt;&lt;P&gt; - BaudRateDivisor = (Prescaler+1)*2^(Rate Divisor)&lt;/P&gt;&lt;P&gt; - Baud Rate = BusClock/BaudRateDivisor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The IRQ will be enabled by setting the IRQEN configuration bit, which is OK, and clearing the I-bit in the CPU condition code register. It is inhibited at reset so this pin is initially configured as a simple input with a pull-up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concerning the AD7792 device, if you have problems, contact Analog Devices support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Ivan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 13:46:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ad7792-interface-problem-urgent-please/m-p/271970#M9922</guid>
      <dc:creator>iggi</dc:creator>
      <dc:date>2013-08-28T13:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: ad7792 interface problem(urgent) please.......</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ad7792-interface-problem-urgent-please/m-p/271971#M9923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello sir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now my problem sort out. ADC works on low clock speed and MISO pin of uc get pulled up by internal pull up register."PERM" make this pin high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But problem is that ADC gives me continuous interrupts, so my cpu always busy and disturb other interrupts.&lt;/P&gt;&lt;P&gt;In my project i am uses sci,timer chl 0 and irq interrupts.&lt;/P&gt;&lt;P&gt;timer chl 0 output compare interrupt occurred exact 1 ms for refreshing display. it works.&lt;/P&gt;&lt;P&gt;and sci works properly.&lt;/P&gt;&lt;P&gt;problem is in IRQ interrupt.&lt;/P&gt;&lt;P&gt;my Questions&amp;nbsp; are..&lt;/P&gt;&lt;P&gt;1. how we clear IRQ interrupt, means once interrupt occurredthen there is no provision to clear flag or ACK_BIT. to reset this.&lt;/P&gt;&lt;P&gt;2. Due to this max Speed IRQ interrupt my other&amp;nbsp; &lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt; &lt;/SPAN&gt;interrupts not working. get disturbances in display refresh.&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 11:48:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ad7792-interface-problem-urgent-please/m-p/271971#M9923</guid>
      <dc:creator>prashanterande</dc:creator>
      <dc:date>2013-08-29T11:48:38Z</dc:date>
    </item>
  </channel>
</rss>

