Vybrid GPIO setting speed

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Vybrid GPIO setting speed

1,016 次查看
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

标签 (1)
标记 (1)
0 项奖励
回复
1 回复

850 次查看
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 项奖励
回复