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.

TMS320F28379D: Toggling GPIO from CLA

Part Number: TMS320F28379D

I'm trying to control GPIO pins directly from CLA1. I have the pins configured using code in CPU1 and I simply want to toggle the pins directly from the CLA. I'm trying to directly write to the associated GPIO register bit with no luck. I figured out how to get pointers to the proper GPIO register and bit number in the CPU1 code and pass this information to the CLA. I have been trying to set the register value using a pointer like *(ptr_to_reg)= 1. Again no luck. I've looked for an example with no luck. Some docs refer to using GPIOs to time-benchmark CLA tasks...getting access to that code would probably do the trick for me.

  • I resolved my own issue. I had made a first-order mistake in the CLA memory setup. Indexing the SET and CLEAR registers for the proper GPIO output was different than I had seen anywhere else because of the CPU versus CLA memory configurations, but pretty easy to figure out in the end.