can i set multi gpio status at once through setword16() (every bit in same port)

4 posts / 0 new
Last post
kurbylee
Offline
Last seen:3 years 6 months ago
加入:2014-11-05 09:10
can i set multi gpio status at once through setword16() (every bit in same port)

Hi,dialog
I want to driver a lcd with 8080 interface. for data bus(0~7),I set them through callback function gpio_setactive()and gpio_setInactive(),it can work,
But it is too slow.
I try to setword16(address_set,1《pin) directly ,every bit one by one,speed is faster,but it is slow still.
Then try to setword16(address_set,data) and setword16(address_reset,~data), I expect more faster,but it can not work.
So ,can i set multi gpio status at once in da14580?
Ths!!

Device:
MT_dialog
Offline
Last seen:2 months 2 weeks ago
工作人员
加入:2015-06-08 34
Hi kurbylee,

Hi kurbylee,

Just by setting the Px_DATA_REG of the port you would like to all ones or all zeros you will be able to set all gpio's state concurrently.

For example: SetWord16(P0_DATA_REG, 0xff); or SetWord16(P0_DATA_REG, 0x00);

Thanks MT_dialog

kurbylee
Offline
Last seen:3 years 6 months ago
加入:2014-11-05 09:10
Great!it is work.

Great!it is work.
Thank U so much

MT_dialog
Offline
Last seen:2 months 2 weeks ago
工作人员
加入:2015-06-08 34
Hi kurbylee,

Hi kurbylee,

If you find the answer helpfull please mark the answer as accepted.

Thanks MT_dialog