This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28388D: Issue when writing to GPIO ports

Part Number: TMS320F28388D


Tool/software:

I had an issue today when trying to set GPIO pin 139 by writing to its bit in the GPESET / GPECLEAR registers in response to a changing variable. The pin did not respond to changes in the registers at all, and I eventually worked out that it was because the preceding function was toggling GPIO pin 128 through the GPETOGGLE register. After adding a nominal delay between the TOGGLE and SET or CLEAR register writes the pin started working as expected. Is this expected behaviour? Note all of the register writes use "=" rather than "|=" so there should be no chance of read-modify-write errors.