<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Other NXP ProductsのトピックRe: MC34SB0410 initialization and Low side driver control</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/MC34SB0410-initialization-and-Low-side-driver-control/m-p/1694686#M18670</link>
    <description>&lt;P&gt;Dear Jozef,&lt;/P&gt;&lt;P&gt;I dont have an schematic right now with me and I have connected an LED to the Low side driver to check if I am getting any output. Can you please tell me if there is any intialization of the chip needed and if I need to give any command to start the operation. Also, please checkout the code i have given here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sudeep&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jul 2023 05:46:46 GMT</pubDate>
    <dc:creator>Sudeep53396</dc:creator>
    <dc:date>2023-07-28T05:46:46Z</dc:date>
    <item>
      <title>MC34SB0410 initialization and Low side driver control</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MC34SB0410-initialization-and-Low-side-driver-control/m-p/1694644#M18666</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a MC34SB0410 quad valve controller IC that I have connected to PIC18F25K80 microcontroller. I have connected an LED to low side driver 1 to check the functionality. I am going to attach a solenoid valve to it. The problem I am facing is that even when I give Write commands to the board using spi the chip is not even turning on the LED.&lt;/P&gt;&lt;P&gt;I wanted to ask if there is any intitialization needed to start the operations. I have given all the write commands given in the datasheet.&lt;/P&gt;&lt;P&gt;I am attaching the code here, it is a basic code because i just want to check the functionality.&lt;/P&gt;&lt;P&gt;PS: I dont have any Schematic or circuit diagram. I have connected all the spi pins correctly, PWR pin is connected to 12 V supply,DOSV and VCC5 are connected to microcontrollers 5v Supply and RSTB pin is pulled up.&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;CODE:&lt;/P&gt;&lt;P&gt;/**&lt;BR /&gt;Generated Main Source File&lt;/P&gt;&lt;P&gt;Company:&lt;BR /&gt;Microchip Technology Inc.&lt;/P&gt;&lt;P&gt;File Name:&lt;BR /&gt;main.c&lt;/P&gt;&lt;P&gt;Summary:&lt;BR /&gt;This is the main file generated using PIC10 / PIC12 / PIC16 / PIC18 MCUs&lt;/P&gt;&lt;P&gt;Description:&lt;BR /&gt;This header file provides implementations for driver APIs for all modules selected in the GUI.&lt;BR /&gt;Generation Information :&lt;BR /&gt;Product Revision : PIC10 / PIC12 / PIC16 / PIC18 MCUs - 1.81.8&lt;BR /&gt;Device : PIC18F25K80&lt;BR /&gt;Driver Version : 2.00&lt;BR /&gt;*/&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;(c) 2018 Microchip Technology Inc. and its subsidiaries.&lt;BR /&gt;&lt;BR /&gt;Subject to your compliance with these terms, you may use Microchip software and any&lt;BR /&gt;derivatives exclusively with Microchip products. It is your responsibility to comply with third party&lt;BR /&gt;license terms applicable to your use of third party software (including open source software) that&lt;BR /&gt;may accompany Microchip software.&lt;BR /&gt;&lt;BR /&gt;THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER&lt;BR /&gt;EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY&lt;BR /&gt;IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS&lt;BR /&gt;FOR A PARTICULAR PURPOSE.&lt;BR /&gt;&lt;BR /&gt;IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,&lt;BR /&gt;INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND&lt;BR /&gt;WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP&lt;BR /&gt;HAS BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO&lt;BR /&gt;THE FULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL&lt;BR /&gt;CLAIMS IN ANY WAY RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT&lt;BR /&gt;OF FEES, IF ANY, THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS&lt;BR /&gt;SOFTWARE.&lt;BR /&gt;*/&lt;/P&gt;&lt;P&gt;#include "mcc_generated_files/mcc.h"&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;Main application&lt;BR /&gt;*/&lt;BR /&gt;void main(void)&lt;BR /&gt;{&lt;BR /&gt;// Initialize the device&lt;BR /&gt;SYSTEM_Initialize();&lt;/P&gt;&lt;P&gt;// If using interrupts in PIC18 High/Low Priority Mode you need to enable the Global High and Low Interrupts&lt;BR /&gt;// If using interrupts in PIC Mid-Range Compatibility Mode you need to enable the Global and Peripheral Interrupts&lt;BR /&gt;// Use the following macros to:&lt;/P&gt;&lt;P&gt;// Enable the Global Interrupts&lt;BR /&gt;//INTERRUPT_GlobalInterruptEnable();&lt;/P&gt;&lt;P&gt;// Disable the Global Interrupts&lt;BR /&gt;//INTERRUPT_GlobalInterruptDisable();&lt;/P&gt;&lt;P&gt;// Enable the Peripheral Interrupts&lt;BR /&gt;//INTERRUPT_PeripheralInterruptEnable();&lt;BR /&gt;unsigned char data[20];&lt;BR /&gt;// Disable the Peripheral Interrupts&lt;BR /&gt;//INTERRUPT_PeripheralInterruptDisable();&lt;BR /&gt;SPI_Open(SPI_DEFAULT);&lt;BR /&gt;// Message 0&lt;BR /&gt;SLAVE_SetLow();&lt;BR /&gt;__delay_ms(1);&lt;BR /&gt;data[1]=SPI_ExchangeByte(0x00);&lt;BR /&gt;data[2]=SPI_ExchangeByte(0x00);&lt;BR /&gt;SLAVE_SetHigh();&lt;BR /&gt;EUSART1_Write(data[1]);&lt;BR /&gt;EUSART1_Write(data[2]);&lt;BR /&gt;// Message 1&lt;BR /&gt;SLAVE_SetLow();&lt;BR /&gt;data[3]=SPI_ExchangeByte(0x04);&lt;BR /&gt;data[4]=SPI_ExchangeByte(0x02);&lt;BR /&gt;SLAVE_SetHigh();&lt;BR /&gt;EUSART1_Write(data[3]);&lt;BR /&gt;EUSART1_Write(data[4]);&lt;BR /&gt;// Message 3&lt;BR /&gt;SLAVE_SetLow();&lt;BR /&gt;data[5]=SPI_ExchangeByte(0x0C);&lt;BR /&gt;data[6]=SPI_ExchangeByte(0x00);&lt;BR /&gt;SLAVE_SetHigh();&lt;BR /&gt;EUSART1_Write(data[5]);&lt;BR /&gt;EUSART1_Write(data[6]);&lt;BR /&gt;// Message 4&lt;BR /&gt;SLAVE_SetLow();&lt;BR /&gt;data[7]=SPI_ExchangeByte(0x10);&lt;BR /&gt;data[8]=SPI_ExchangeByte(0x03);&lt;BR /&gt;SLAVE_SetHigh();&lt;BR /&gt;EUSART1_Write(data[7]);&lt;BR /&gt;EUSART1_Write(data[8]);&lt;BR /&gt;// Message 5&lt;/P&gt;&lt;P&gt;SLAVE_SetLow();&lt;BR /&gt;data[9]=SPI_ExchangeByte(0x14);&lt;BR /&gt;data[10]=SPI_ExchangeByte(0x00);&lt;BR /&gt;SLAVE_SetHigh();&lt;BR /&gt;EUSART1_Write(data[9]);&lt;BR /&gt;EUSART1_Write(data[10]);&lt;BR /&gt;// Message 6&lt;/P&gt;&lt;P&gt;SLAVE_SetLow();&lt;BR /&gt;data[11]=SPI_ExchangeByte(0x98);&lt;BR /&gt;data[12]=SPI_ExchangeByte(0x07);&lt;BR /&gt;SLAVE_SetHigh();&lt;BR /&gt;EUSART1_Write(data[11]);&lt;BR /&gt;EUSART1_Write(data[12]);&lt;BR /&gt;// Message 9&lt;/P&gt;&lt;P&gt;SLAVE_SetLow();&lt;BR /&gt;data[13]=SPI_ExchangeByte(0xA4);&lt;BR /&gt;data[14]=SPI_ExchangeByte(0x38);&lt;BR /&gt;SLAVE_SetHigh();&lt;BR /&gt;EUSART1_Write(data[13]);&lt;BR /&gt;EUSART1_Write(data[14]);&lt;BR /&gt;// Message 10&lt;/P&gt;&lt;P&gt;SLAVE_SetLow();&lt;BR /&gt;data[15]=SPI_ExchangeByte(0x2B);&lt;BR /&gt;data[16]=SPI_ExchangeByte(0xFF);&lt;BR /&gt;SLAVE_SetHigh();&lt;BR /&gt;EUSART1_Write(data[15]);&lt;BR /&gt;EUSART1_Write(data[16]);&lt;BR /&gt;// Message 11&lt;/P&gt;&lt;P&gt;SLAVE_SetLow();&lt;BR /&gt;data[17]=SPI_ExchangeByte(0xAC);&lt;BR /&gt;data[18]=SPI_ExchangeByte(0xFF);&lt;BR /&gt;SLAVE_SetHigh();&lt;BR /&gt;EUSART1_Write(data[17]);&lt;BR /&gt;EUSART1_Write(data[18]);&lt;BR /&gt;&lt;BR /&gt;SPI_Close();&lt;BR /&gt;EUSART1_Write('E');&lt;BR /&gt;EUSART1_Write('\n');&lt;BR /&gt;}&lt;BR /&gt;/**&lt;BR /&gt;End of File&lt;BR /&gt;*/&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 04:27:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MC34SB0410-initialization-and-Low-side-driver-control/m-p/1694644#M18666</guid>
      <dc:creator>Sudeep53396</dc:creator>
      <dc:date>2023-07-28T04:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: MC34SB0410 initialization and Low side driver control</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MC34SB0410-initialization-and-Low-side-driver-control/m-p/1694680#M18669</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Sudeep,&lt;/SPAN&gt;&lt;BR clear="none" /&gt;&lt;BR clear="none" /&gt;&lt;SPAN&gt;please share your schematic with voltage levels and part values. Please share the solenoid valve part number and a datasheet.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;With Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jozef&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 05:40:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MC34SB0410-initialization-and-Low-side-driver-control/m-p/1694680#M18669</guid>
      <dc:creator>JozefKozon</dc:creator>
      <dc:date>2023-07-28T05:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: MC34SB0410 initialization and Low side driver control</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MC34SB0410-initialization-and-Low-side-driver-control/m-p/1694686#M18670</link>
      <description>&lt;P&gt;Dear Jozef,&lt;/P&gt;&lt;P&gt;I dont have an schematic right now with me and I have connected an LED to the Low side driver to check if I am getting any output. Can you please tell me if there is any intialization of the chip needed and if I need to give any command to start the operation. Also, please checkout the code i have given here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sudeep&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 05:46:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MC34SB0410-initialization-and-Low-side-driver-control/m-p/1694686#M18670</guid>
      <dc:creator>Sudeep53396</dc:creator>
      <dc:date>2023-07-28T05:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: MC34SB0410 initialization and Low side driver control</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MC34SB0410-initialization-and-Low-side-driver-control/m-p/1694783#M18673</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Sudeep,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;please share a scope from the SPI communication. Please reset your device. After this you should read on the SO line&amp;nbsp;1010101010101010 message, when you try to write or read.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JozefKozon_0-1690528461485.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234069iAD89BF4AC923EEFF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JozefKozon_0-1690528461485.png" alt="JozefKozon_0-1690528461485.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please refer to the note 2. in the page 7. To which pins have you connected the LED? Have you shorted the pins with the same name together?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JozefKozon_1-1690528543447.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234070iDD1E196462593AE6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JozefKozon_1-1690528543447.png" alt="JozefKozon_1-1690528543447.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JozefKozon_2-1690528569237.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234071i529D2569320F26D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JozefKozon_2-1690528569237.png" alt="JozefKozon_2-1690528569237.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please refer to the Figure 13. in the &lt;A href="https://www.nxp.com/docs/en/data-sheet/MC34SB0410.pdf" target="_self"&gt;MC34SB0410 datasheet&lt;/A&gt;. The SCLK line must be low on idle =&amp;gt; CPOL=0, data must be sampled on the rising CLK edge and data must be changed on falling CLK edge =&amp;gt; CPHA=0. This results in SPI mode 0.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JozefKozon_3-1690528761925.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234073iDD913F8381200DCF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JozefKozon_3-1690528761925.png" alt="JozefKozon_3-1690528761925.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JozefKozon_4-1690528785895.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234074i6F521130C712971D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JozefKozon_4-1690528785895.png" alt="JozefKozon_4-1690528785895.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JozefKozon_5-1690528813235.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234075iF28CE17662180A71/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JozefKozon_5-1690528813235.png" alt="JozefKozon_5-1690528813235.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Is your SPI timing according to the SPI mode 0?&lt;/P&gt;
&lt;P&gt;With Best Regards,&lt;/P&gt;
&lt;P&gt;Jozef&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 07:20:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MC34SB0410-initialization-and-Low-side-driver-control/m-p/1694783#M18673</guid>
      <dc:creator>JozefKozon</dc:creator>
      <dc:date>2023-07-28T07:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: MC34SB0410 initialization and Low side driver control</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MC34SB0410-initialization-and-Low-side-driver-control/m-p/1694806#M18675</link>
      <description>&lt;P&gt;Dear Jozef,&lt;/P&gt;&lt;P&gt;Sorry but I don't have a Scope for SPI Communication.But what I have done is whenever I am sending a data and receiving data, I am storing it in a variable and the sending it to computer terminal using UART. I am observing whatever I am receiving on the terminal.&lt;/P&gt;&lt;P&gt;Now whenever I reset the board I get NUL(00) value on uart at the start.&lt;/P&gt;&lt;P&gt;And for the pin I have connected with LED is 01 and 48(LSD1) which are shorted together and I have shorted all the pins with same name.&lt;/P&gt;&lt;P&gt;And for SPI Mode I have configured it as per MODE 0.&lt;/P&gt;&lt;P&gt;SPI communication freqency is 2.7648 MHz.&lt;/P&gt;&lt;P&gt;I am sharing the code here so that you can have a look&amp;nbsp;&lt;/P&gt;&lt;P&gt;CODE:&lt;/P&gt;&lt;P&gt;#include "mcc_generated_files/mcc.h"&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;Main application&lt;BR /&gt;*/&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;void Write_CMD(uint8_t cmd1,uint8_t cmd2);&lt;BR /&gt;uint8_t Read_Data();&lt;BR /&gt;void main(void)&lt;BR /&gt;{&lt;BR /&gt;// Initialize the device&lt;BR /&gt;SYSTEM_Initialize();&lt;BR /&gt;unsigned char data[20];&lt;BR /&gt;SPI_Open(SPI_DEFAULT);&lt;BR /&gt;SLAVE_SetLow();&lt;BR /&gt;Read_Data();&lt;BR /&gt;SLAVE_SetHigh();&lt;BR /&gt;SLAVE_SetLow();&lt;BR /&gt;Write_CMD(0x00,0x00);&lt;BR /&gt;Read_Data();&lt;BR /&gt;SLAVE_SetHigh();&lt;BR /&gt;SLAVE_SetLow();&lt;BR /&gt;Write_CMD(0x04,0x02);&lt;BR /&gt;Read_Data();&lt;BR /&gt;SLAVE_SetHigh();&lt;BR /&gt;SLAVE_SetLow();&lt;BR /&gt;Write_CMD(0x0C,0x00);&lt;BR /&gt;Read_Data();&lt;BR /&gt;SLAVE_SetHigh();&lt;BR /&gt;SLAVE_SetLow();&lt;BR /&gt;Write_CMD(0x10,0x23);&lt;BR /&gt;Read_Data();&lt;BR /&gt;SLAVE_SetHigh();&lt;BR /&gt;SLAVE_SetLow();&lt;BR /&gt;Write_CMD(0x14,0x03);&lt;BR /&gt;Read_Data();&lt;BR /&gt;SLAVE_SetHigh();&lt;BR /&gt;SLAVE_SetLow();&lt;BR /&gt;Write_CMD(0x98,0x07);&lt;BR /&gt;Read_Data();&lt;BR /&gt;SLAVE_SetHigh();&lt;BR /&gt;SLAVE_SetLow();&lt;BR /&gt;Write_CMD(0xA4,0x38);&lt;BR /&gt;Read_Data();&lt;BR /&gt;SLAVE_SetHigh();&lt;BR /&gt;SLAVE_SetLow();&lt;BR /&gt;Write_CMD(0x2B,0xFF);&lt;BR /&gt;Read_Data();&lt;BR /&gt;SLAVE_SetHigh();&lt;BR /&gt;SPI_Close();&lt;BR /&gt;EUSART1_Write('E');&lt;BR /&gt;EUSART1_Write('\n');&lt;BR /&gt;while(1);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;void Write_CMD(uint8_t cmd1,uint8_t cmd2)&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;SPI_ExchangeByte(cmd1);&lt;BR /&gt;SPI_ExchangeByte(cmd2);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;uint8_t Read_Data(){&lt;BR /&gt;uint8_t DATA1;&lt;BR /&gt;uint8_t DATA2;&lt;BR /&gt;&lt;BR /&gt;DATA1=SPI_ExchangeByte(0x00);&lt;BR /&gt;DATA2=SPI_ExchangeByte(0x00);&lt;BR /&gt;&lt;BR /&gt;EUSART1_Write(DATA1);&lt;BR /&gt;EUSART1_Write(DATA2);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Sudeep&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 07:47:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MC34SB0410-initialization-and-Low-side-driver-control/m-p/1694806#M18675</guid>
      <dc:creator>Sudeep53396</dc:creator>
      <dc:date>2023-07-28T07:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: MC34SB0410 initialization and Low side driver control</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MC34SB0410-initialization-and-Low-side-driver-control/m-p/1694951#M18676</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Sudeep,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I don't see anything wrong with your code. Are you reading the SO SPI line with your MCU? &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JozefKozon_0-1690537706040.png" style="width: 314px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234123iE4177B3BE2F937BD/image-dimensions/314x257?v=v2" width="314" height="257" role="button" title="JozefKozon_0-1690537706040.png" alt="JozefKozon_0-1690537706040.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;When you send the first write line, what do you see on the SO line? Is it all 0's? Or do you see this message: 1010101010101010?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If all 0's, it means, the SPI communication is not working.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please consider purchasing&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://www.nxp.com/products/power-management/smart-switches-and-drivers/low-side-switches/tower-board-sb0410-quad-valve-pump-controller-soc:TWR-SB0410-36EVB" target="_self"&gt;TWR-SB0410-36EVB&lt;/A&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;On the EVB page is a driver, you can download it and test it with your MCU.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JozefKozon_1-1690537934455.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234126i072DA2EE775BEBDA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JozefKozon_1-1690537934455.png" alt="JozefKozon_1-1690537934455.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;With Best Regards,&lt;/P&gt;
&lt;P&gt;Jozef&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 09:52:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MC34SB0410-initialization-and-Low-side-driver-control/m-p/1694951#M18676</guid>
      <dc:creator>JozefKozon</dc:creator>
      <dc:date>2023-07-28T09:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: MC34SB0410 initialization and Low side driver control</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MC34SB0410-initialization-and-Low-side-driver-control/m-p/1694978#M18678</link>
      <description>&lt;P&gt;Dear Jozef,&lt;/P&gt;&lt;P&gt;I am reading the data on SO line and printing it on Computer terminal using UART.&lt;/P&gt;&lt;P&gt;I am getting all 0's value as well as led is not working.&lt;/P&gt;&lt;P&gt;To be honest I am a complete begineer in this domain so please help me regarding this board as I am not in a position to change the board, I have to get it working on this board only.&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Sudeep&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 10:39:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MC34SB0410-initialization-and-Low-side-driver-control/m-p/1694978#M18678</guid>
      <dc:creator>Sudeep53396</dc:creator>
      <dc:date>2023-07-28T10:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: MC34SB0410 initialization and Low side driver control</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MC34SB0410-initialization-and-Low-side-driver-control/m-p/1695515#M18691</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;SPAN&gt;Sudeep,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;thank you for your answer. If you see all the 0's, then the SPI communication is not working. You are not able to write to the&amp;nbsp;MC34SB0410 registers, nor read from them. I need to see the schematic, to check if everything is correct from hardware point, and I need to see waveforms. To check if the SPI mode and SPI timing is correct. Without this I am not able to help you. Please share the mentioned. First you need to establish the SPI communication. I understand, that these devices are quiet&amp;nbsp;expensive. I apologize for inconvenience.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;With Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jozef&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 05:40:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MC34SB0410-initialization-and-Low-side-driver-control/m-p/1695515#M18691</guid>
      <dc:creator>JozefKozon</dc:creator>
      <dc:date>2023-07-31T05:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: MC34SB0410 initialization and Low side driver control</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MC34SB0410-initialization-and-Low-side-driver-control/m-p/1696432#M18717</link>
      <description>&lt;P&gt;Dear Jozef,&lt;/P&gt;&lt;P&gt;Thank you for your reply, I dont have proper schematic but I am attaching a block diagram that shows what connections I have done.&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mc340b0410.png" style="width: 917px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234465i9E998D064E08EEF6/image-size/large?v=v2&amp;amp;px=999" role="button" title="mc340b0410.png" alt="mc340b0410.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the waveform I don't have any debugging tool to observe waveform, To see the wave form I used digital oscilloscope to observe the waveform on the pins. I could see that Clock waveform was fine(16 clock cycles) attaching a photo of that too&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SCLK" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234473i78922940A7520E99/image-size/large?v=v2&amp;amp;px=999" role="button" title="WhatsApp Image 2023-08-01 at 12.10.26 PM (1).jpeg" alt="SCLK" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;SCLK&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;, and Chip select is also showing the output as expected. I can also see the wave form on MOSI line which means the data is going to MC34SB0410 Chip.I am attaching the photos of all these waveforms seperately as I only have one probe on me.&lt;/P&gt;&lt;P&gt;CHIP SELECT:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CHIP SELECT" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234474i7D579FFCE369149D/image-size/large?v=v2&amp;amp;px=999" role="button" title="WhatsApp Image 2023-08-01 at 12.10.26 PM.jpeg" alt="CHIP SELECT" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;CHIP SELECT&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MASTER OUT SLAVE IN(MOSI) :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mosi 1" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234475i0AECB39778AC9248/image-size/large?v=v2&amp;amp;px=999" role="button" title="WhatsApp Image 2023-08-01 at 12.10.21 PM.jpeg" alt="mosi 1" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;mosi 1&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mosi 2" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234477iC7AA58784B305657/image-size/large?v=v2&amp;amp;px=999" role="button" title="WhatsApp Image 2023-08-01 at 12.10.25 PM.jpeg" alt="mosi 2" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;mosi 2&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is all I can provide you riight now. I am not getting anything on MISO line, I can confirm from above waveforms that SPI Commands are going in the chip but nothing is happening.&lt;/P&gt;&lt;P&gt;Please look into this matter and provide me a solution.&lt;/P&gt;&lt;P&gt;THANK YOU&lt;/P&gt;&lt;P&gt;Sudeep&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 07:00:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MC34SB0410-initialization-and-Low-side-driver-control/m-p/1696432#M18717</guid>
      <dc:creator>Sudeep53396</dc:creator>
      <dc:date>2023-08-01T07:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: MC34SB0410 initialization and Low side driver control</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MC34SB0410-initialization-and-Low-side-driver-control/m-p/1696705#M18727</link>
      <description>&lt;P&gt;Dear Sudeep,&lt;/P&gt;
&lt;P&gt;if you see nothing on the SO line, then the SPI communication is not working. The oscilloscope scopes are great. It's great, that at least the clock, CS and SI is working. But I would need to see at last two channels at the same time. CLK+MISO, CLK+MOSI and CLK+CS. To compare timings and to confirm, that the SPI mode is indeed 0. Is your oscilloscope two channel one? Or multichannel? Please contact the PIC18F25K80 manufacturer to confirm, that the SPI mode is set to 0.&lt;/P&gt;
&lt;P&gt;Please add a pull-up resistor on the RSTB pin. 4.7kOhm should be ok.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JozefKozon_0-1690889812580.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234543i236956CFE78F59D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JozefKozon_0-1690889812580.png" alt="JozefKozon_0-1690889812580.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;With Best Regards,&lt;/P&gt;
&lt;P&gt;Jozef&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 11:37:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MC34SB0410-initialization-and-Low-side-driver-control/m-p/1696705#M18727</guid>
      <dc:creator>JozefKozon</dc:creator>
      <dc:date>2023-08-01T11:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: MC34SB0410 initialization and Low side driver control</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MC34SB0410-initialization-and-Low-side-driver-control/m-p/1701245#M18849</link>
      <description>&lt;P&gt;Dear Jozef,&lt;/P&gt;&lt;P&gt;I am sorry for not replying you as I was sick and wasn't working on it so I didn't make any progress.&lt;/P&gt;&lt;P&gt;As for the waveform currently I don't have an oscilloscope with me. The above screenshot does confirm that the data is getting transmitted from MCU to MC34SB0410 chip. Can you please check the code again to see if there is anything missing from it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't connected a resistor across the RSTB pin so I will connect a resistor to it as you have mentioned and try if it works or not. I think there shouldn't be any problem even if I have connected RSTB directly to 5v.&lt;/P&gt;&lt;P&gt;As for the SPI mode I am using MPLABX Code configurator to configure the settings of the SPI Protocol an so here I can directly select SPI MODE 0 in here so I can confirm that SPI is working in MODE 0.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="SPI MODE 0" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/235594iF38A3CD9F2C326CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-08-08 220459.png" alt="SPI MODE 0" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;SPI MODE 0&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check the code again and tell if I am doing anything wrong or not. I am attaching the code here:&lt;/P&gt;&lt;P&gt;#include "mcc_generated_files/mcc.h"&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;Main application&lt;BR /&gt;*/&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;void Write_CMD(uint8_t cmd1,uint8_t cmd2);&lt;BR /&gt;uint8_t Read_Data();&lt;BR /&gt;void main(void)&lt;BR /&gt;{&lt;BR /&gt;// Initialize the device&lt;BR /&gt;SYSTEM_Initialize();&lt;BR /&gt;// unsigned char data[20];&lt;BR /&gt;SPI_Open(SPI_DEFAULT);&lt;BR /&gt;SLAVE_SetLow();&lt;BR /&gt;Read_Data();&lt;BR /&gt;SLAVE_SetHigh();&lt;BR /&gt;SLAVE_SetLow();&lt;BR /&gt;Write_CMD(0x00,0x00);&lt;BR /&gt;Read_Data();&lt;BR /&gt;SLAVE_SetHigh();&lt;BR /&gt;SLAVE_SetLow();&lt;BR /&gt;Write_CMD(0x04,0x02);&lt;BR /&gt;Read_Data();&lt;BR /&gt;SLAVE_SetHigh();&lt;BR /&gt;SLAVE_SetLow();&lt;BR /&gt;Write_CMD(0x0C,0x00);&lt;BR /&gt;Read_Data();&lt;BR /&gt;SLAVE_SetHigh();&lt;BR /&gt;SLAVE_SetLow();&lt;BR /&gt;Write_CMD(0x10,0x23);&lt;BR /&gt;Read_Data();&lt;BR /&gt;SLAVE_SetHigh();&lt;BR /&gt;SLAVE_SetLow();&lt;BR /&gt;Write_CMD(0x14,0x03);&lt;BR /&gt;Read_Data();&lt;BR /&gt;SLAVE_SetHigh();&lt;BR /&gt;SLAVE_SetLow();&lt;BR /&gt;Write_CMD(0x98,0x07);&lt;BR /&gt;Read_Data();&lt;BR /&gt;SLAVE_SetHigh();&lt;BR /&gt;SLAVE_SetLow();&lt;BR /&gt;Write_CMD(0xA4,0x38);&lt;BR /&gt;Read_Data();&lt;BR /&gt;SLAVE_SetHigh();&lt;BR /&gt;SLAVE_SetLow();&lt;BR /&gt;Write_CMD(0x2B,0xFF);&lt;BR /&gt;Read_Data();&lt;BR /&gt;SLAVE_SetHigh();&lt;BR /&gt;SPI_Close();&lt;BR /&gt;EUSART1_Write('E');&lt;BR /&gt;EUSART1_Write('\n');&lt;BR /&gt;// while(1);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;void Write_CMD(uint8_t cmd1,uint8_t cmd2)&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;SPI_ExchangeByte(cmd1);&lt;BR /&gt;SPI_ExchangeByte(cmd2);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;uint8_t Read_Data(){&lt;BR /&gt;uint8_t DATA1;&lt;BR /&gt;uint8_t DATA2;&lt;BR /&gt;&lt;BR /&gt;DATA1=SPI_ExchangeByte(0x00);&lt;BR /&gt;DATA2=SPI_ExchangeByte(0x00);&lt;BR /&gt;&lt;BR /&gt;EUSART1_Write(DATA1);&lt;BR /&gt;EUSART1_Write(DATA2);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/**&lt;BR /&gt;End of File&lt;BR /&gt;*/&lt;/P&gt;&lt;P&gt;With Best Regards&lt;/P&gt;&lt;P&gt;Sudeep&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 16:37:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MC34SB0410-initialization-and-Low-side-driver-control/m-p/1701245#M18849</guid>
      <dc:creator>Sudeep53396</dc:creator>
      <dc:date>2023-08-08T16:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: MC34SB0410 initialization and Low side driver control</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MC34SB0410-initialization-and-Low-side-driver-control/m-p/1701732#M18854</link>
      <description>&lt;P&gt;Anyone who can p&lt;SPAN&gt;lease reply to my above issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Sudeep&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 08:12:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MC34SB0410-initialization-and-Low-side-driver-control/m-p/1701732#M18854</guid>
      <dc:creator>Sudeep53396</dc:creator>
      <dc:date>2023-08-09T08:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: MC34SB0410 initialization and Low side driver control</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MC34SB0410-initialization-and-Low-side-driver-control/m-p/1701887#M18857</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Sudeep,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I apologize for a late answer. I have just now received a notification from the community about this case.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, the RSTB connected directly to VCC5 should be ok, but the pull-up resistor is recommended.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately I am not able to help you with other, than NXP components even if I want to. I don't have access to the other companies components documents, software etc. I can only support your for the NXP's&amp;nbsp;&lt;SPAN&gt;MC34SB0410. For this I need to check if the external components are correct, and if the signals to the&amp;nbsp;MC34SB0410 interface are within required timings. Please create a schematic. You can use for example open source &lt;A href="https://www.autodesk.com/products/eagle/overview?term=1-YEAR&amp;amp;tab=subscription" target="_self"&gt;Eagle&lt;/A&gt; CAD. For the signals, I need to see at least two of them to compare the timings. Please borrow a two channel oscilloscope and please share SCLK+MOSI, SCLK+MISO and SCLK+CS signals. Or you can use a logic analyzer for this.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;With Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jozef&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 10:34:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MC34SB0410-initialization-and-Low-side-driver-control/m-p/1701887#M18857</guid>
      <dc:creator>JozefKozon</dc:creator>
      <dc:date>2023-08-09T10:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: MC34SB0410 initialization and Low side driver control</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/MC34SB0410-initialization-and-Low-side-driver-control/m-p/1701893#M18858</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Sudeep,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;could you please confirm a source of your MC34SB0410 components? Have you purchased them from one of our authorized distributors? Please see this &lt;A href="https://www.nxp.com/support/sample-and-buy/distributor-network:DISTRIBUTORS" target="_self"&gt;link&lt;/A&gt; for a list of our authorized distributors.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;With Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jozef&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 10:44:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/MC34SB0410-initialization-and-Low-side-driver-control/m-p/1701893#M18858</guid>
      <dc:creator>JozefKozon</dc:creator>
      <dc:date>2023-08-09T10:44:30Z</dc:date>
    </item>
  </channel>
</rss>

