<?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 How to configure Pin Control Register? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-configure-Pin-Control-Register/m-p/645088#M39135</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am Yadu, I am doing bit banging code for SPI to access a SPI FLASH. I am doing it in K60N. There is W25Q64FV spi flash. I am doing bit banging code in processor expert driver suit and link it to IAR. I want to use the pins PTE0,PTE1,PTE2 &amp;amp; PTE3. The SPI1 pins are multiplexed with these pin. Please tell me how to select the SPI1 function pins (i.e, SIN,SOUT,SCK,CS) using PCR register . I am using the BitIO components as the SPI pins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found in BitIoLdd1.c&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Configure pin as output */&lt;BR /&gt; /* GPIOE_PDDR: PDD|=1 */&lt;BR /&gt; GPIOE_PDDR |= GPIO_PDDR_PDD(0x01);&lt;BR /&gt; /* Set initialization value */&lt;BR /&gt; /* GPIOE_PDOR: PDO&amp;amp;=~1 */&lt;BR /&gt; GPIOE_PDOR &amp;amp;= (uint32_t)~(uint32_t)(GPIO_PDOR_PDO(0x01));&lt;BR /&gt; /* Initialization of Port Control register */&lt;BR /&gt; /* PORTE_PCR0: ISF=0,MUX=1 */&lt;BR /&gt; PORTE_PCR0 = (uint32_t)((PORTE_PCR0 &amp;amp; (uint32_t)~(uint32_t)(&lt;BR /&gt; PORT_PCR_ISF_MASK |&lt;BR /&gt; PORT_PCR_MUX(0x06)&lt;BR /&gt; )) | (uint32_t)(&lt;BR /&gt; PORT_PCR_MUX(0x01)&lt;BR /&gt; ));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to select the SPI1 function pins. Please help me, What changes I have to do for my situation&lt;/P&gt;&lt;P&gt;I have attached a picture of the pins.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Dec 2016 12:26:44 GMT</pubDate>
    <dc:creator>yadhukrishnanvm</dc:creator>
    <dc:date>2016-12-02T12:26:44Z</dc:date>
    <item>
      <title>How to configure Pin Control Register?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-configure-Pin-Control-Register/m-p/645088#M39135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am Yadu, I am doing bit banging code for SPI to access a SPI FLASH. I am doing it in K60N. There is W25Q64FV spi flash. I am doing bit banging code in processor expert driver suit and link it to IAR. I want to use the pins PTE0,PTE1,PTE2 &amp;amp; PTE3. The SPI1 pins are multiplexed with these pin. Please tell me how to select the SPI1 function pins (i.e, SIN,SOUT,SCK,CS) using PCR register . I am using the BitIO components as the SPI pins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found in BitIoLdd1.c&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Configure pin as output */&lt;BR /&gt; /* GPIOE_PDDR: PDD|=1 */&lt;BR /&gt; GPIOE_PDDR |= GPIO_PDDR_PDD(0x01);&lt;BR /&gt; /* Set initialization value */&lt;BR /&gt; /* GPIOE_PDOR: PDO&amp;amp;=~1 */&lt;BR /&gt; GPIOE_PDOR &amp;amp;= (uint32_t)~(uint32_t)(GPIO_PDOR_PDO(0x01));&lt;BR /&gt; /* Initialization of Port Control register */&lt;BR /&gt; /* PORTE_PCR0: ISF=0,MUX=1 */&lt;BR /&gt; PORTE_PCR0 = (uint32_t)((PORTE_PCR0 &amp;amp; (uint32_t)~(uint32_t)(&lt;BR /&gt; PORT_PCR_ISF_MASK |&lt;BR /&gt; PORT_PCR_MUX(0x06)&lt;BR /&gt; )) | (uint32_t)(&lt;BR /&gt; PORT_PCR_MUX(0x01)&lt;BR /&gt; ));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to select the SPI1 function pins. Please help me, What changes I have to do for my situation&lt;/P&gt;&lt;P&gt;I have attached a picture of the pins.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 12:26:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-configure-Pin-Control-Register/m-p/645088#M39135</guid>
      <dc:creator>yadhukrishnanvm</dc:creator>
      <dc:date>2016-12-02T12:26:44Z</dc:date>
    </item>
  </channel>
</rss>

