This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MCT8316Z-Q1: SPI data settings and initialization

Part Number: MCT8316Z-Q1
Other Parts Discussed in Thread: MCT8316Z

Hello 

Iam using a MCT8316Z-Q1 SPI variant . I wanted to know the steps how to initialize the IC and start running the motor . I already have all the hardware connections as per the datasheet. 

I also wanted to know how do I check if SPI communication is correct between my controller and IC.

In the data sheet Section 8.5.1.1 says "The SDO output data word is 16 bits long and the first 8 bits are status bits. The data word is the content of the register being accessed."

Since there are 3 status registers which status register data will I receive on the SDO line.

Thank you 

  • Hi Sameer,

    I wanted to know the steps how to initialize the IC and start running the motor . I already have all the hardware connections as per the datasheet. 

    For setting up the IC to be ready to run a motor:

    1. If an external power supply is used to pull up nFAULT, make sure nFAULT is pulled up to >2.2V (this needs to be done to prevent the IC from going into test mode)
    2. Supply VM with  >4.5V so the IC is powered
    3. Pull nSLEEP high to bring the device out of sleep mode (this pin can be pulled high before powering on the device)
    4. Using SPI communication, write 011b to register 0x03h to unlock the registers
    5. Using SPI communication, set registers 0x04h - 0x0Bh with the desired register settings
    6. Apply a PWM signal to the PWM pin to begin spinning the motor
    I also wanted to know how do I check if SPI communication is correct between my controller and IC.

    To check the SPI connection you can try reading control registers 0x04h - 0x06h. These registers have some non-zero default values at device power up so they can be used to make sure the SPI is able to communicate with the IC correctly. The default values in these registers are shown in pages 68-70 of the datasheet.

    Since there are 3 status registers which status register data will I receive on the SDO line.

    The status bits sent on the SDO line do not contain information from any of the MCT8316Z-Q1 registers. To read the information in the status registers you will have to send a read command for the desired status register.

    Regards,

    Joshua

  • HI Joshua

    Thank you very much for the reply.

    What if I do not use SPI communication and just provide PWM signal (No SPI communication) will my motor run or is it compulsory to configure the SPI registers?

  • Hi Sameer,

    To be able to spin a motor with the default register configuration you will need to use analog hall sensors. If you are using analog hall sensors you maybe able to spin the motor with the default register configuration. If you are using digital hall signals you will, at the very least, need to configure PWM_MODE (bits 2 and 1 in Control_Register_2A 0x04h) to either 1h or 3h so that the MCT8316Z can accept digital hall signals as the input.

    Regards,

    Joshua

  • Hey Thank you very much for the inputs

    Regards 

    Sameer