Other Parts Discussed in Thread: HALCOGEN
Hi there,
we shall use the eCAP module of the RM46 (ZWT-package) to measure the duty cycle of a 50Hz-PWM signal.
The signal is connected to ECAP1 - PIN 'N1'.
It's easy for PWM Signals, which can not reach 0% or 100% duty cycle.
But the signal, that we shall measure, can go from 0% to 100%.
Thus, there will be no captures, if PWM is 0% or 100%.
- maybe you have a good hint for me, how to catch 0% and 100% PWMs?
- is there a way to read out the actual value of the ECAP1 ("N1") pin? (similar to GIO?)
-> EDIT: I think, I solved this 'read PIN' question:
- ECAPx pins are readable via HalCoGen Driver.... :
- ECAP1 shall be readable via HalCoGen Driver: "gioGetBit(hetPORT1, 15U)"
- ECAP2 shall be readable via HalCoGen Driver: "gioGetBit(spiPORT3, 11U)"
Thanks in advance,
Andy