PTC1 and PTA8 difference between mask 0N47T and 0N77P

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PTC1 and PTA8 difference between mask 0N47T and 0N77P

402 Views
swatimali
Contributor I

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

0 Kudos
1 Reply

286 Views
vicentegomez
NXP TechSupport
NXP TechSupport

Hi

Can you tell us the part number that you are using?

Thanks in advance

0 Kudos