Vybrid GPIO setting speed

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Vybrid GPIO setting speed

1,133件の閲覧回数
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 返信

967件の閲覧回数
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 件の賞賛
返信