AnsweredAssumed Answered

PTC1 and PTA8 difference between mask 0N47T and 0N77P

Question asked by Swati Mali on Feb 24, 2017
Latest reply on Feb 28, 2017 by vicentegomez

Hi

Previously we were using rev1 0N77P mask on that PTC1 is not working as LPSPI2_SOUT ,so we have connected one link from PTA8 to PTC1. PTA8 is not connected anywhere on board.

 

Now we are using rev2 0N47T mask and link between PTA8 and PTC1 is still their . With this if we enable PCR for PTC1 and disable PTA8 we are not getting PWM waveforms, but if we enable PTA8 and disable PTC1 then we are getting PWM waveforms .

 

We are using below pin configurations for SPI . with below we are not getting waveforms. Change is highlighted in yellow.

 

         PORTE->PCR[16] = PORT_PCR_MUX(3); /* Port E16: MUX = ALT3, LPSPI2_SIN */

         PORTE->PCR[15] = PORT_PCR_MUX(3); /* Port E15: MUX = ALT3, LPSPI2_SCK */

         PORTC->PCR[1] = 0x00000300;      /* Port C1: MUX = ALT3, LPSPI2_SOUT */

     //    PORTA->PCR[8] = 0x00000300;       /* Dummy Port A8: MUX = ALT3, LPSPI2_SOUT */

         PORTE->PCR[10] = PORT_PCR_MUX(3); /* Port E10: MUX = ALT3, LPSPI2_PCS1 */

         PORTE->PCR[13] = PORT_PCR_MUX(3); /* Port E13: MUX = ALT3, LPSPI2_PCS2 */

 

But with below we are getting waveforms . We are not modifying anything other than this in code with same hardware.

                   PORTE->PCR[16] = PORT_PCR_MUX(3); /* Port E16: MUX = ALT3, LPSPI2_SIN */

         PORTE->PCR[15] = PORT_PCR_MUX(3); /* Port E15: MUX = ALT3, LPSPI2_SCK */

       //  PORTC->PCR[1] = 0x00000300;      /* Port C1: MUX = ALT3, LPSPI2_SOUT */

         PORTA->PCR[8] = 0x00000300;       /* Dummy Port A8: MUX = ALT3, LPSPI2_SOUT */

         PORTE->PCR[10] = PORT_PCR_MUX(3); /* Port E10: MUX = ALT3, LPSPI2_PCS1 */

         PORTE->PCR[13] = PORT_PCR_MUX(3); /* Port E13: MUX = ALT3, LPSPI2_PCS2 */

 

 

Thanks & Regards,

Swati Mali

Outcomes