Other Parts Discussed in Thread: HALCOGEN
Hello, I'm trying to get the HTU up and running. I'm following this example project: http://www.ti.com/lit/an/spna130a/spna130a.pdf (it's for a different MCU though so I'm not able to use the example project).
So far this is the code I'm using to initialize the HET and HTU:
Note: I do more to init the N2HET, however it isn't related to the HTU.
And this is my HET code:
From my understanding, this should write the period of the signal I'm sending on N2HET[2] to the buffer bufferA. However, when I debug the code and look at the buffer, no values are updated(NOTE: I've initialized the values of the buffer to 1, I wanted to make sure that PCNT wasn't sending 0 and I was missing it) :
It should also be noted that when I debug the program and read the data from the PCNT instruction, I get an actual period. So I'm confident the N2HET is working correctly. It's just that the HTU is not passing that data to the N2HET.
Is there something I'm missing? Or does there exist an example HTU project for the TMS570LC4357?
Thanks.