HDR exit pattern issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HDR exit pattern issue

1,210 Views
yvan_yan
Contributor III

Hello,

I'm using the board as I3C master. I'm trying to send HDR exit pattern followed by stop like figure 1.

The MCTRL register's description says: I3C->MCTRL = I3C_MCTRL_REQUEST(6) ;

But actually it's like figure 2, is anything wrong with the config?

Thanks!

Figure 1yvan_yan_0-1735644597539.png

Figure 2yvan_yan_0-1735644931089.png

 

 

Labels (1)
Tags (1)
0 Kudos
Reply
4 Replies

1,182 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @yvan_yan 

You can refer to this function.

void I3C_MasterEmitRequest(I3C_Type *base, i3c_bus_request_t masterReq)
{
    uint32_t mctrlReg = base->MCTRL;

    mctrlReg &= ~I3C_MCTRL_REQUEST_MASK;

    if (masterReq == kI3C_RequestProcessDAA)
    {
        mctrlReg &= ~I3C_MCTRL_TYPE_MASK;
    }

    mctrlReg |= I3C_MCTRL_REQUEST(masterReq);

    base->MCTRL = mctrlReg;
}

BR

Harry

0 Kudos
Reply

1,174 Views
yvan_yan
Contributor III

yes, this is the function I use, but stop pattern seems not quite right, anything else needs to be configured?

I3C_MasterEmitRequest(base, kI3C_RequestForceExit);

0 Kudos
Reply

1,142 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @yvan_yan 

I tested the i3c HDR examples with two frdm-mcxn947 boards.

Harry_Zhang_0-1736242914368.png

The related codes are below.

Harry_Zhang_4-1736243167345.png

 

Harry_Zhang_1-1736243007528.pngHarry_Zhang_2-1736243022499.png

The channel 0 is SDA, the channel 1 is SCL, the channel 2 is Toggle.

Harry_Zhang_3-1736243047073.png

Harry_Zhang_5-1736243188602.png

We can see that the I3C_MasterEmitRequest(base, kI3C_RequestForceExit) can work.

BR

Harry

0 Kudos
Reply

1,126 Views
yvan_yan
Contributor III

Hi Harry

应该和我们接的target有关系,上面那个波形好像也可以检测到HDR exit + stop,感谢回复!

BR

yvan_yan

0 Kudos
Reply