Part Number: AM2634
I'd like to configure the ESM module on an AM263x in PWM mode. I'd like it configured so that while the system has no detected error, the ESM will toggle the error pin at a given frequency and duty cycle.
I don't see MCU+SDK driver functions to do this, and the reference manual is incomplete so I need more clarification. I think these two questions are what I need to know:
1) How can I configure the ESM to run in PWM mode?
The Technical Reference Manual (Rev. E) says:
The error pin output is active low or PWM based on the ESM_EN[7-4]
PWM_EN field. This bit field should only be modified when the ESM is disabled, based on the ESM_EN register.
However the Register Addendum (Rev. D) `TOP_ESM_EN` register description doesn't list a `PWM_EN` field.
Where is the `PWM_EN` field located and what value should I write to it to enable PWM mode?
2) How can I configure the ESM PWM signal frequency and duty cycle?
It looks like I should write TOP_ESM_PWML_PIN_CNTR_PRE and TOP_ESM_PWMH_PIN_CNTR_PRE registers with number of clock cycles that the ESM PWM signal should stay low and high respectively.
I'd guess that those counters are in terms of SYS_CLK ticks too, but I'm not sure.
Could I have clarity on how exactly to configure this PWM signal?
Thank you,
-Andy