Other Parts Discussed in Thread: TMS570LS20216
I am using the TMS570 Microcontroller Development Stick, with a TMS570LS20216 MCU.
I have developed the small application which read the fequency of input square wave signal available on the pin 10.
I have followed the SPNA130A–September 2011 application note to this task. But i have used the circular buffer mode
and storing the 100 Frames. It is working fine.
Now i need to update my program to add the following feature.
"If there is any breakage in the input signal, my application should report an error."
During update to my application, i come across below doubts.
Test Setup : I have the signal generator which sends the maximum frequecy of 12.5MHz.
1. I am measuring the time period between the FALL and FALL. During real time, if some how signal does not become low after the previous FALL, how to find
the break in the signal ?
My understanding : During this time, the PCNT Data Filed will not be updated (data vaiable in buffer HTU buffer also will not be updated) and the period
count in the Control Filed will reache to 0x1FFFFFF. With the LRP setting to 914ns, it takes approximately 30 seconds to reach this value. So if check this
filed in my application, it take approximately 30 seconds to report this error. If i change the LRP it may come to approximately 2 seconds. But as per my
requirement i need to report within 200ms. Suggest me for any other way and confirm whether my understanding is correct or not.
2. The request type in the PCNT instrution is GENREQ. What does it mean ? More explanation on request type please.
3. What is the trigger event ? I mean when the data will be copied from NHET RAM to main memory Buffers ? How the HTU knows that
new data is available in the NHET RAM ?
[It would be easy if there is a way to know that when was the last time data coped from NHET RAM to main memory]