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.

MCF8316A: MCF8316A iic without ACK

Part Number: MCF8316A
Other Parts Discussed in Thread: MCT8316A

Hi,

  I designed a new PCB with the MCF8316A and the controller mcu is stm32F0 MCU.  I send  the first byte with the 0x01 address and the write bit, there is no ack bit from the MCF8316A.

The following image shows the schematic diagram and the waveform captured by the oscilloscope of the iIC bus transmitting 01+w.

  I also measure the votage of AVDD and DVDD ,  AVDD= 3.3V   DVDD = 0V. So  is  there any problems with my circuit design?

 

  • Hi liu,

    If DVDD is at 0V this indicates that the logic core of the MCF8316A does not have power, this is why ACKs are not being received from the device.  

    In the schematic you provided there is no connection to FB_BK, which is used to power DVDD. If you choose to not populate the buck components we recommend connecting AVDD to FB_BK. If you choose to leave the buck components un-populated please refer to question 7 of our Common MCx Schematic and Layout Q/A FAQ for more information.

    Regards,

    Joshua

  • Hi Joshua,

      I am connected AVDD to FB_BK and DVDD can output 1.5V voltage.The IIC configuration parameters have been successfully configured.But the GATE_DRIVER_FAULT_STATUS is 0x80001000, the DRIVER_FAULT bit is 1.

       Questions:

        1 .Is it necessary to suck the value of the shadow register into eeprom? Can parameters written only to shadow registers take effect?

         2.why  the DRIVER_FAULT bit is 1.

    all parameter that I write to mct8316A as follows:

        0x80, 0x64738c20
        {0x82, 0x28200000

        {0x84, 0x0b6807d0
        {0x86, 0x2306600c

        {0x88,0x0d3201b5
        {0x8A, 0x1aad0000
        {0x8C,0x00000000
        {0x8E, 0x00000000

        {0x94, 0x00000000
        {0x96, 0x00000000
        {0x98, 0x00000000
        {0x9A, 0x000d0000
        {0x9C, 0x00000000
        {0x9E, 0x00000000

        {0x90, 0x3ec80106
        {0x92, 0x70d00888

        {0xA4, 0x00000001

        {0xA6, 0x08100000
        {0xA8, 0x00003000

        {0xAA, 0x40000000

        {0xAC, 0x1c400100
        {0xAE, 0x00100000

        {0xA0, 0x04b3407d
        {0xA2,0x000001a7

  • Hi liu,

    1 .Is it necessary to suck the value of the shadow register into eeprom? Can parameters written only to shadow registers take effect?

    parameters written to the shadow registers do not need to be written to EEPROM to take effect.

    2.why  the DRIVER_FAULT bit is 1.

    The driver fault being reported is a buck under voltage fault. This fault is likely occurring because the buck components are not populated but this fault should not continue to occur after power up once the BUCK_DIS bit (bit 20) in register 0xAE is set to 1b. Once the BUCK_DIS bit is set, in register 0xAE, please try clearing the fault by setting bit 29 (CLR_FLT), in register 0xEA, to 1b.

    Regards,

    Joshua

  • Hi Joshua,

         Now the value of status REG 0xE0 and 0xE2 are 0. But my motor can not work. OUTA OUTB OUTC have no output.

    Pin of DRVOFF , BRAKE votage is 0.  SPEED_MODE is 1(pwm), the input pwm frequency is 20kHz, the duty is 20%.

    so any promblem with my sw or hw?

  • Hi liu,

    There are only two points in the schematic that could be a problem:

    1. DRVOFF being pulled high with no connection to pull it low, but it seems like this connection is just not shown since you say you are measuring it at 0V
    2. We recommend placing higher capacitance between VM and PGND, typically we recommend 330uF, to help with startup current demand

    Can you measure the voltage at the pins AVDD, DVDD, VM and CP, these should be equal to 3.3 V, 1.5 V, >4.5 V, and ~VM+4.5 V respectively.

    Regards,

    Joshua

  • Hi Joshua,

    I made a test and the results are as follows:

    AVDD 3.3V DVDD 1.5V VM 24V CP 29V.

    Is it possible that there is a problem with my parameter settings?

  • Hi liu,

    I will need some time to look over the provided parameter settings. I will aim to get back to you by the end of next week.

    Regards,

    Joshua

  • Hi Joshua,

       All parameter settings are written according to the recommended settings in Table 8-3, except for the followings:

       1.Reg A4 bit1-0(SPEED_MODE)  = 1h

       2. Reg A6 bit1-0(BUS_VOLT) = 1h

       3. Reg AE bit20(BUCK_DIS) = 1h

     I only set the registers listed in Table 8-3 through iic, and the other registers were not set.

    Regards,

    Liu.

  • Hi Liu,

    Could you provide me a capture of the input frequency waveform?

    Could you also tell me the value of the ALGORITHM_STATE register when attempting to drive the motor?

    Regards,

    Joshua

  • Hi Joshua,

      the input frequency waveform is as follow, the pwm input frequency is 30KHz and the duty is 20%.

     the REG ALGORITHM_STATE  value is 0.

  • Hi Liu,

    Could you provide registers 0xE0, 0xE2, 0xEC, and 0xEE of the MCF8316A?

    Also, could you try and use a different speed command method such as Register override mode to see if another mode allows you to spin the motor? To use Register override mode you write a value to the DIGITAL_SPEED_CTRL register.

    Regards,

    Joshua

  • Hi Joshua,

    0xE0 = 0;  0xE2  = 0; 0xEC = 0; 0xEE = 0; 0xE8 = 0x0A000000;0x478 = 0x033B0000;

    I test set Register override mode  to 2,(Reg A4H bit 1-0 set to 2H) and set ECH  to 0xF5300000,the REG ALGORITHM_STATE  value is also 0,  E4H is 0x00005300 . The motor still cannot spin.

    Regards,

    Liu

  • Hi Joshua,

         After completing the previous experiment (set Register override mode  to 2), I restored the registers to their previous mode (set Register override mode  to 1) and read out the values of all registers as follows:

    regAddr            regVal    
    0x0080        0x64738C20  
    0x0082        0x28200000  
    0x0084        0x0B6E88D0  
    0x0086        0x4306600C  
    0x0088        0x0D3201B5  
    0x008A        0x1AAD0000  
    0x008C        0x00000000  
    0x008E        0x00000000  
    0x0090        0x3EC80106  
    0x0092        0x70D00888  
    0x0094        0x00000000  
    0x0096        0x00000000  
    0x0098        0x00000000  
    0x009A        0x000D0000  
    0x009C        0x00000000  
    0x009E        0x00000000  
    0x00A0        0x04B3407D  
    0x00A2        0x000001A7  
    0x00A4        0x00000001  
    0x00A6        0x08100001  
    0x00A8        0x00003000  
    0x00AA        0x40000000  
    0x00AC        0x1C400100  
    0x00AE        0x00100000  
    0x00E0        0x00000000  
    0x00E2        0x00000000  
    0x00E4        0x0000A510  
    0x00E6        0x00000000  
    0x00E8        0x0A000000  
    0x00EA        0x00000000  
    0x00EC        0x00000000  
    0x00EE        0x00000000  
    0x00F0        0x000C0701  
    0x00F2        0x00000000  
    0x0210        0x00000000  
    0x0216        0x7FFFFFFF  
    0x0410        0x00000000  
    0x043E        0x00000000  
    0x0440        0x00000000  
    0x0442        0x00000000  
    0x0466        0x00010003  
    0x0476        0x00000001  
    0x0478        0x033B8000  
    0x047E        0x00000000  
    0x0480        0x00000000  
    0x0482        0x00000000  
    0x04BA        0x00000000  
    0x04BC        0x00000000  
    0x04D4        0x00000000  
    0x04D6        0x00000000  
    0x04D8        0x00000000  
    0x04DA        0x00000000  
    0x04E4        0x00000000  
    0x04E6        0x00000000  
    0x04E8        0x00000000  
    0x04EA        0x00000000  
    0x0524        0x00000000  
    0x053A        0x00000000  
    0x0548        0x00000000  
    0x05CC        0x00000000  
    0x05FC        0x00000000  
    0x05FE        0x00000000  
    0x067A        0x00000000  
    0x0684        0x00000000  
    0x06B8        0x00000000  
    0x06FC        0x00000000  
    0x0742        0x00000000  
    0x0744        0x00000000  
    0x0752        0x00000000  
    0x0756        0x00000000  

    Regards,

    Liu

  • Hi Liu,

    I will need to look into this further. I will aim  to reach out to you by the end of next week at the latest.

    Regards,

    Joshua

  • Hi Joshua,

    Can you currently confirm that my hardware circuit is correct?

    Regards,

    Liu

  • Hi Liu,

    I will review the schematic you provided. I will aim to provide you an answer by EOD Friday at the latest.

    Regards,

    Joshua

  • Hi Joshua,

        How about my questions about the schematic (on the first page,I attached the schematic ) and the register settings?

    I am looking forward your reply.

    Best Regards,

    Liu.