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.
Hello everyone,
I want to read my counter value with an HLC interrupt. As i saw in a different thread, i want to use the PUSH instruction in the HLC to send the counter value in the FIFO and then read the FIFO value with a HLC interrupt, but I don't know how to use the PUSH instruction and how to read the FIFO in the interrupt function...
Thanks in advance!
Hello,
The HLC instruction set is documented in the device TRM. On an HLC event you would use a MOV instruction to copy the counter value into a register followed by the PUSH instruction. INTR # would then send the interrupt to the C28x.
The c28x driverlib documentation can be found in C2000WARE here:
C:/ti/c2000/C2000Ware_<version>/device_support/f2837xd/docs/html/index.html
Here, under the CLB, you will find functions to read, write, and clear the FIFO. You can also read the counter directly instead of using the HLC to move/push it by using the CLB_getRegister function.
I would suggest these resources for learning more about the CLB:
Regards
Lori