cancel
Showing results for 
Search instead for 
Did you mean: 

L9026 Device Configuration Sequence

krishnapalepu
Associate

 

Will be looking for a simple sequence to activate the Outputs of the L9026

 

Note:- INT0 and INT1 are used to activate the chip

Quick Response will be greatly appreciated.

Thanks,

Krishna

3 REPLIES 3
Jacob WOODRUFF
ST Employee

Hi All,

 

This post has been escalated to the ST Online Support Team for additional assistance. We'll contact you directly.

 

Regards,
Jake

ST Support

JerryK
Associate II

Jacob,

Is there any chance that you can post the sequence for getting the L9026 up and running.  I see that you set the PWM to active, then set the Duty Cycle to 100%.  But there is very little info on the config registers.  Does it boil down to enabling the channel (0-7), setting the PWM frequency, setting the Duty Cycle to 100%, then setting PWM_SPI to correlate to the channel I want to drive?

Help is appreciated.

Jerry

 

Elena BRAMBILLA
ST Employee

 

The sequence of SPI messages to be sent to the device to switch on the channels is the following one:

 

Start-up phase:

  1. Power-up system
  2. IN0 = 0, IN1 = 0, IDLE = 0. Device is in Sleep Mode
  3. IN0 = 0, IN1 = 0, IDLE = 1. Device is in Idle Mode
  4. SPI initial configuration:

CFG_0: 0X8420 (Configure CH3 as HS, all other outputs are in default state

LS, Frame counter = 0))

MAP_IN0: 0x9C05 (Associate IN0 to CH0, Frame counter = 1)

MAP_IN1: 0xA080 (Associate IN1 to CH5, Frame counter = 0)

CFG_1: 0x8803 (LED PWM generator freq = 122.5Hz, Frame counter = 1)

CFG_2: 0x8C00 (GEN PWM generator freq = 122.5Hz, no adjustment,

Frame counter = 0)

PWM_LED_DC: 0xB001 (PWM LED duty cycle = 0%, Frame counter = 1)

PWM_GEN_DC: 0xAC02 (PWM GEN duty cycle = 0%, Frame counter = 0)

MAP_PWM: 0xA431 (CH2-CH3 driven by internal PWM generators, Frame

counter = 1)

PWM_SEL: 0xA812 (CH2 driven by PWM LED & CH3 driven by PWM GEN,

Frame counter = 0)

BIM: 0x9041 (Activate Bulb inrush mode on CH4, Frame counter = 1)

CFG_1: 0x8900 (put device in Active mode, Frame counter = 0)

  1. Switch ON the loads

− IN0 =1, IN1 = 1 (switch ON CH0 & CH5)

PWM_SPI: 0x9B49 (all SPI driven channels are switched ON, Frame

counter = 1)

PWM_GEN_DC: 0xAFFE (configure PWM GEN duty cycle at 100 %, the

expected effect is CH3 fully ON, Frame counter = 0)

PWM_LED_DC: 0XB3FD (configure PWM LED duty cycle at 100 %, the

expected effect is CH2 fully ON, Frame counter = 1)