LS1012A - muxing SPI and GPIO

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

LS1012A - muxing SPI and GPIO

ソリューションへジャンプ
2,758件の閲覧回数
luka_pirnat
Contributor II

Hello,

we're designing a LS1012-based board and we'll be using SPI only to load FPGA configuration, therefore we only need SPI_CLK and SPI_MOSI signals. So, I'd like to know whether it's possible to use the remaining SPI signal pins as GPIOs (GPIO1_25, _26, _27, _28)? I found conflicting info on here (LS1043A, GPIO Query), so I'm not sure. I did check the PinMux tool and it seems it's possible.

 

Regards,
Luka

ラベル(1)
タグ(1)
1 解決策
2,625件の閲覧回数
alexander_yakov
NXP Employee
NXP Employee

Please refer to LS1012A Reference Manual, Table 4-10 "RCW Field descriptions".

You can see that SPI_MOSI, SPICS0_B, SPI_CLK are configured in group by one RCW field "SDHC2_BASE_BASE", whereas other pins SPI_MISO, SPICS2_B, SPI_CS1_B are configured by other field "SDHC2_BASE_DAT321". This mease your can configure only first three pins to SPI functions by SDHC2_BASE_BASE="11", leaving other three pins configured as GPIO1[26,27,28] by SDHC2_BASE_DAT321="00" and SDHC2_EXT_* = "0"

元の投稿で解決策を見る

2 返答(返信)
2,626件の閲覧回数
alexander_yakov
NXP Employee
NXP Employee

Please refer to LS1012A Reference Manual, Table 4-10 "RCW Field descriptions".

You can see that SPI_MOSI, SPICS0_B, SPI_CLK are configured in group by one RCW field "SDHC2_BASE_BASE", whereas other pins SPI_MISO, SPICS2_B, SPI_CS1_B are configured by other field "SDHC2_BASE_DAT321". This mease your can configure only first three pins to SPI functions by SDHC2_BASE_BASE="11", leaving other three pins configured as GPIO1[26,27,28] by SDHC2_BASE_DAT321="00" and SDHC2_EXT_* = "0"

2,625件の閲覧回数
luka_pirnat
Contributor II

Yes, I actually checked the ref. manual, Table 3-6 (SDHC2_BASE signal configuration), but I suppose I misinterpreted it. However I do understand now: once I set RCW[SDHC2_BASE_BASE] to 0b11, I cannot use these three signals for anything else but SPI. Thanks!

0 件の賞賛
返信