Vybrid GPIO setting speed

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

Vybrid GPIO setting speed

536 Views
marioturqueti
Contributor II

I'm using vybrid MVF61NS151CMK50 with MQX 4.2

Setting a GPIO direct in the vybrid registers:

   uint32_t *GPIO4PSOR =(uint32_t*)0x400FF104;   //Port Set   Output Reg (GPIO4_PSOR)

   uint32_t *GPIO4PCOR =(uint32_t*)0x400FF108;   //Port Clear Output Reg (GPIO4_PCOR)

     *GPIO4PCOR = 0x00000005;

     *GPIO4PSOR = 0x00000005;

I check the pin level and takes something like 100ns to goes down and up again…


I set the pin config to 200MHz:


   temp1 = 0x000038B2;      //original:0x00000062

   *IOMUXCPTE23 =temp1; //Soft MUX Pad Control Reg 128 (IOMUXC_PTE23)

   *IOMUXCPTE24 =temp1;

   *IOMUXCPTE25 =temp1;

Why it takes so long? Is it 100ns the maximum GPIOs speed (1->0->1)? @Can I change pin voltage levels faster?

BrunoCasteluccibfacBrunoCastelucci

robsontenedini

Labels (1)
Tags (1)
0 Kudos
1 Reply

370 Views
Yuri
NXP Employee
NXP Employee

Hello,

 

  You may look at app note AN5078 (Influence of Pin Setting on System
Function and Performance) regarding parameters of the Pad Control Registers,

and play with different settings.

http://cache.freescale.com/files/32bit/doc/app_note/AN5078.pdf 

Have a great day,

Yuri

 

------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct

Answerbutton. Thank you!

------------------------------------------------------------------------------

0 Kudos