Are atomic writes to multiple GPIO output pins possible on the MPC5554?

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

Are atomic writes to multiple GPIO output pins possible on the MPC5554?

763 次查看
seanmkauffman
Contributor I

Looking at the reference manual for the MPC5554, it appears that the SIU only provides the ability to write to one bit at a time using the SIU_GDPOn registers.  This is a problem for me, as I need to write out to multiple pins in one atomic operation.  I need to be able to write to at least 8 GPIO pins in one operation, actually, in order to interface with external hardware which is not synchronized with the clock of the chip.  Is this possible?  Is there another interface that allows writes to multiple output lines at once?  I'm not seeing it in the reference manual but maybe I'm looking in the wrong place.

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

533 次查看
jinjingyang
NXP Employee
NXP Employee

There are no single register that includes 8 or 16 or 32 pins with each bit representing one GPIO.

So you have to use other options:

1) use SPE instruction such as "evstdw" to store 64bit data at a time.

or

2) use EBI if you are interfacing with certain external flash/SRAM memory.

0 项奖励