[ls1021a]want use the gpio4[19:22] as GPIO mode, how to config the rcw and SCFG_QEIOCLKCR register

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

[ls1021a]want use the gpio4[19:22] as GPIO mode, how to config the rcw and SCFG_QEIOCLKCR register

570件の閲覧回数
Cheney_t
Contributor II

I  want use gpio4[19:22] as GPIO mode, how to config the rcw and SCFG_QEIOCLKCR register?

My RCW is:

Reset Configuration Word (RCW):
00000000: 0608000a 00000000 00000000 00000000
00000010: 30000000 00407900 60044a00 21046000
00000020: 00000000 00000000 00000000 00438b00
00000030: 20084100 5004b340 00000000 00000000

GPIO is not responding on test

タグ(1)
0 件の賞賛
1 返信

560件の閲覧回数
r8070z
NXP Employee
NXP Employee

In order to use shared by gpio4[19:22] pins as GPIO RCW fields QE_TDMA and QE_TDMB  can be 000/001/010/011. I can see in your RCW[416:447]=0x5004b340  i.e. your RCW has QE_TDMA=001, QE_TDMB=001.  It is suitable values.

In the SCFG_QEIOCLKCR we has to set

CLK09=01 for GPIO4_19
CLK10=01 for GPIO4_20
CLK11= 01 for GPIO4_21
CLK12 =01 for GPIO4_22

Hence we must set SCFG_QEIOCLKCR to 0x55000000

0 件の賞賛