UJA1076A with S32K144

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

UJA1076A with S32K144

1,585件の閲覧回数
vinicius_olivei
Contributor III

Dear community,

Does anyone have ever implemented SBC UJA1076A communications/functionalities with S32K144 microcontroller and could share the code?

I'm having some problens to make the confguration following application note AH1002_v1.2_UJA107xA.

Best.

タグ(4)
3 返答(返信)

1,333件の閲覧回数
vinicius_olivei
Contributor III

Hi Petr,

For example, I´m trying to read Device ID like this function:

unsigned int GetDeviceID(void)
{
    word UJA107xA_ICR;
    enum    UJA107xA_Type Device;
    // Write Device ID pattern
    UJA107xA_ICR = DeviceIdPattern; /* DeviceIdPattern = 0x4308 */
    SpiSend(&UJA107xA_ICR);

    // Read back Device ID pattern and restore previous ICR content
    UJA107xA_ICR = ICR_ADDRESS_MASK; /* ICR_ADDRESS_MASK= 0x4000 */
    SpiSend(&UJA107xA_ICR);
    
    if(UJA107xA_ICR == UJA1078A_DeviceIdPattern){
        Device = NXP_UJA1078A;
    }
    else if(UJA107xA_ICR == UJA1075A_DeviceIdPattern){
        Device = NXP_UJA1075A;
    }
    else if(UJA107xA_ICR == UJA1076A_DeviceIdPattern){
        Device = NXP_UJA1076A;
    }
    else if(UJA107xA_ICR == UJA1079A_DeviceIdPattern){
        Device = NXP_UJA1079A;
    }

    return Device;
}

This is my SPI communication log:

pastedImage_4.png

I should have the reply 0x4008, because my device is UJA1076A, but I dont get nothing.

Thank you.

0 件の賞賛
返信

1,333件の閲覧回数
vinicius_olivei
Contributor III

Hi,

Its working now. I double checked all wires and also SPI configuration, now I can control V2 voltage and also get DeviceID.

pastedImage_1.png

0 件の賞賛
返信

1,333件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

we can only provide the library/driver that is mentioned in chapter 5.1 Attached files of the AH1002.

See the package onhttps://community.nxp.com/message/984603 

BR, Petr