Hello,
This part has been designed into an automotive ECU. My task is to take advange of the LED driver's feature by switching from PWM control to I2C control.
Reading the datasheet, I decided to control the PWM with BRT_CONTROL and to check by reading back BRT_CONTROL (exact value) and PWM_OUTPUT_DIAGNOSTICS (10% PWM deviation accepted).
The components function is further controlled and checked by the EN and the INT pin.
I assume the folling values for operation:
EN set to HIGH The component is operating
EN set to LOW The component is in RESET
INT read as HIGH The component has NOT detected a fault
INT read as LOW The component has detected a fault
0%PWM - LEDs OFF, values in registers is 0, this is the initial state
50%PWM -LEDs at half duty, value in register is 32766U
100%PWM -LED at full duty, value is register is 65535U
These are currently my assumptions which I have in my SW development. Are they correct and facts?
Where can I find some example C code?
Thanks,
Florian Rupp