Other Parts Discussed in Thread: HALCOGEN
I have adapted an example from this forum to make the NHET behave as an I2C interface. This is working OK. My issue is that I also want a PWM. Will this processor support both functions?
With 19 HET I/O pins do I only get one HET function?
Worst case scenario, can I piggy-back the PWM code to the end of the I2C code?
My I2C HET code takes 72 instructions and the example PWM is 58 instructions for a total of 130. The High-End Timer (N2HET) Module document indicates that there's a max of 128 instructions. If I can piggy-back the PWM after the I2C I would have to find a way to trim two instructions, most likely from the PWM.
For reference:
SDA_PIN is N2HET[19], SCL_PIN is N2HET[6] and PWM output pin is N2HET[0].
Thanks in advance,
ken