We would like to use the N2HET1 module on our RM48L950 to create/manage a 64-bit counter that is externally clocked by a 32KHz square wave output from our Maxim RTC chip. We are already using the N2HET1 module to control some pwm outputs with standard HALCoGen configuration and function calls. I have 3 questions:
1. Is it possible to build a 64 bit edge counter that is clocked by an external square wave using the N2HET1 module? Ideally the CPU (application) would be able to initialize this counter to some non-zero value, enable it, and then the application could read from it as desired.
2. If possible, could anyone point me to an example of a 64 bit edge counter using N2HET
3. It seems that a hand built HET IDE project would not play nice with the N2HET setup within HALCoGen. Should we be concerned with this 64 bit edge counter interfering with HALCoGen's PWM functionality?
If 64 bit was a hang up, a 32 bit counter would work if we could interrupt the CPU upon counter roll over.
Thanks in advance for any help you can provide!