Dear Sir
Can the HET(High-End Timer) count an external clock signal ( such as 32.768KHz) and generated an interrupt when the content of the counter reaches some vaule ( such as 0x7FFF)?
Clark
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.
Dear Sir
Can the HET(High-End Timer) count an external clock signal ( such as 32.768KHz) and generated an interrupt when the content of the counter reaches some vaule ( such as 0x7FFF)?
Clark
Hi,
Yes, it can support, I don't see an issue.
Hi Kejun,
Really sorry. We don't have examples for the HET module of this particular device. However, I can search for HET example of different devices but you will need to adapt to SM470R1B1M-HT by comparing the differences on the HET module.
Hi Kejun,
I find some examples but that is for NHET (Next Gen HET) module. The NHET on newer MCU and HET on SM470R1B1M-HT are quite different in terms of the instruction sets. I feel that if I send you the NHET example, it will confuse you much more. I think it may be easier for you to start by reading the HET user's guide from https://www.ti.com/lit/pdf/spnu199.
Charles. it's better than nothing. I just wonder I can't find any register to count the external pulse. how it works?
Charles. it's better than nothing. I just wonder I can't find any register to count the external pulse. how it works?
Hi Kejun,
Perhaps you can look at these NHET examples developed for the TMS570 processors.
https://www.ti.com/lit/pdf/spna225
https://www.ti.com/lit/pdf/spna178
I think what you want is to use the HET PCNT instruction to do the input capture.

Hi Charles. My project need a real time clock, due to RTI has much power consumption, so I want to utilize HET module to count external 32.768khz pulse.
Hi Kejun,
What do you mean the RTI has much power consumption? Where did you get the impression the RTI will consume more power than HET? Although I don't have the transistor counts for each module, I tend to believe the HET module is much bigger than the RTI module and hence consumes more dynamic power.
Hi, Charles
the picture comes from page32 of the datasheet
if the RTI works, the SM470R1B1M can't enter halt mode, otherwise, the clock will stop and result in the RTI can't count. so the low power mode is standby mode if the RTI works, standby mode will take 28mA current.
if the HET module can count external real time clock( external real time clock oscillator takes about 80uA only), the SM470R1B1M can enter halt mode and take 700uA only. that is the reason I think RTI take much consumption power.
Hi Kejun,
I don't think the HET will work at halt and standby mode either. The HET needs to be in run mode as it needs to have the ICLK running in order to sample the external inputs.