Other Parts Discussed in Thread: HALCOGEN
I need to be able to determine when a square wave coming into our board stops. I used the capGetSignal() function as created by HALCoGen and was successful in reading period and duty cycle. I had hoped that when the waveform stopped, this data would go to zero, and make my job simple. However, after reading up on the module a little, I can see why it simply retains the last known values, and doesn't go to zero. I tried experimenting with the WCAP instruction, and seeing if perhaps a timestamp would be associated with that data, and use that for my determination, but I was unsuccessful. I am new to HERCULES so if anyone has a suggestion, it would be greatly appreciated.