Skip to main content
Associate II
Jan 15, 2026 10:49 AM UTC
Question

L9026 incorrect response on MISO

Original title: MOSI is not responding in SPI interface TI C2000 MCU & L9026

Edited for clarity.


Hi All, 
We are having SPI interface between TI C2000 MCU (TMS320F28P659DK8-Q1) and High Side Driver(L9026) the Our Target Board. Here are some observations regarding SPI communication. MISO(L9026) is not responding, not giving 
  1. We are able to send data in L9026 & MISO is responding.
  2. Supply voltage of VDDIO=3.3V, VBATT=12V, IDLE (HIGH)=3.3V, IN0(HIGH)=IN1(HIGH)=3.3V,(All voltages are within the limit as per L9026 datasheet). I have attached the logs for that.
  3. We Sent in MOSI CFG_1: 0x8900 (put device in active mode, frame counter = 0).
  4. We sent in MOSI STA_1:0x4403 , but the response is 0x2201, not able to read device status register.
  5. We also checked in Idle mode too Supply voltage of VDDIO=3.3V, VBATT=12V, IDLE (HIGH)=3.3V, IN0(LOW)=IN1(LOW)=0V, in all the cases response not able to read device status register. I have attached the logs for that.
  6.  We also checked with IN0 = 0, IN1 = 0, IDLE = 0. then  The device is in sleep mode, then IN0 = 0, IN1 = 0, IDLE = 1. The device is in idle mode
    SPI initial configuration:(similar to EVK board)
    – 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)
    – STA_1:0x4403 (we got response as 0x2201)
    – DIAG_OFF_EN: 0xB7FF 
    – STA_0: 0x4000 
    – DIAG_OPL_OFF: 0x4C01 
    – DIAG_SHG: 0x5400
    – IN0 =1, IN1 = 1(done here)
    – 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)
    – DIAG_OVC_OVT:0x4802  
    – DIAG_OVC_OVT_RLW: 0XBFFD
    DIAG_OPL_ON_EN: 0xB804 
    – DIAG_OPL_ON_EN: 0xB809 
    – DIAG_OPL_ON_EN: 0xB820
    – DIAG_OPL_ON:0x5003 
    In this case also we got the response 0x2201. 
    I have attached all logs in L9026 .7z zip file.
    Quick response will be greatly appreciated.

7 replies

Andrew Neil
Super User
Jan 15, 2026 10:58 AM UTC

@Dharam wrote:
 MISO (L9026) is not responding

Your thread title says, "MOSI is not responding" - is that a typo ?

But your logic analyser traces show activity on both MISO and MOSI !

 

Please show the schematic of how you have the L9026 connected to the MCU.

How to write your question to maximize your chances to find a solution

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
DharamAuthor
Associate II
Jan 15, 2026 11:15 AM UTC

Dharam_0-1768475399230.png

when we are giving (IN0=IN1=0V & IDLE =3.3V ) OR (IN0=IN1=3.3V & IDLE =3.3V), in both cases We are sending data in MOSI ( checking STA1  register- Global Base Address + 0x11) 0x4403 , Slave device (MISO) is responding as 0x2201.
Quick response will be greatly appreciated.

DharamAuthor
Associate II
Jan 15, 2026 11:27 AM UTC

We are getting data in MISO as you mentioned. but It should be correct. We are not able read proper Device id & Status register (Data sent by Slave device (MISO) ).  


Title edited to reflect this.

TDK
Jan 15, 2026 1:28 PM UTC

Your master has incorrect CPHA=1. Data is changing on rising edge, it should be changing on falling edge.

TDK_0-1768483703260.png

 

"If you feel a post has answered your question, please click ""Accept as Solution""."
DharamAuthor
Associate II
Jan 16, 2026 6:16 AM UTC

Hi, Thanks for your response. Now L9026 is working. one observation, when we are sending MOSI 0x4403, in MISO response is showing 0xC4CC(1100 0100 1100 1100) . 1 ERR error bit, ‘1’ if an error happened in the previous transmission. What type of error is happening ?
I have attached log & zip file for your reference. 

Dharam_1-1768543492236.png

 

Andrew Neil
Super User
Jan 16, 2026 10:09 AM UTC

@Dharam wrote:

Now L9026 is working.


Excellent. So please mark the solution - on the post which provided the answer (not this one).

 


@Dharam wrote:

when we are sending MOSI 0x4403, in MISO response is showing 0xC4CC(1100 0100 1100 1100) . 1 ERR error bit, ‘1’ if an error happened in the previous transmission. What type of error is happening ?


That's a new question - please start a new thread for that.

Post a link here to your new thread

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.