PT2001 SPI

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

PT2001 SPI

2,966 Views
HK_gump
Contributor III

I use spi to send data to PT2001, and the returned data is AAAA. Is this normal?

HK_gump_0-1730273497529.jpeg

 

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

2,952 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi,

Do you have a logic analyzer to better analyze what is happening on the SPI bus? The signals on the picture you shared are not very clear and difficult to analyze.

I would recommend you to verify the SPI configuration and ensure the SPI settings match the PT2001 requirements, including the clock polarity, clock phase and bit order (MSB/LSB).

Also verify that the PT2001 is properly powered and that all SPI lines (MOSI, MISO, SCK, CS) are connected without issues.

Ensure the data format, command codes and message framing adhere to the PT2001 protocol. If incorrect or incomplete commands are sent, the PT2001 may not respond as expected.

For details, please refer to the PT2001 full datasheet, section 13.2 - Serial Peripheral interface.

BRs, Tomas

 

 

0 Kudos
Reply

2,934 Views
HK_gump
Contributor III
According to the PT2000 data manual, after sending data, PT2001 should return AAA8, but it is returning AAAA.
My data format is the same as the SPI format provided in the PT2000 data manual, and I can also ensure that the data is sent completely.
I suspect that the control_word (bits 4 to 0) number: number of operations needs to be processed, but I cannot find the processing method in the manual. Please help me.
0 Kudos
Reply

2,939 Views
HK_gump
Contributor III
Hello, the configuration of my SPI is as follows: Clock polarity: 0, Clock phase: 1, Bit order: MSB. PT2001 has a normal 12V power supply. My SPI line is interconnected between the PT2001 development board and the klz25 development board through the self-provided pin headers. The data format is: control_word (bit 15) r_w: read (1)/write (0) operations; control_word (bits 14 to 5) offset: start address; control_word (bits 4 to 0) number: number of operations. The register address of the command code bit is: 0x101. However, I am unaware of the message framework. I did not find the message framework in the protocol of the PT2000 data manual, so I sent a randomly chosen 0x03. I am unable to confirm whether the sent command is correct. But by capturing the waveform, I can confirm that my data was sent completely. Additionally, I am unable to view the PT2001 data manual, and therefore I can only refer to the PT2000 data manual.
0 Kudos
Reply

2,929 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi,

The PT2001 full datasheet is classified as a Secure File requiring an NDA.

If your company has not signed the NDA with NXP yet, you can request it from:

https://www.nxp.com/support/support:SUPPORTHOME

If there is a valid NDA in place, you can download the datasheet from:

https://www.nxp.com/products/power-management/motor-and-solenoid-drivers/powertrain-and-engine-contr...

Screenshot 2024-10-31 090253.png

BRs, Tomas

0 Kudos
Reply

2,864 Views
HK_gump
Contributor III
Hello, can you tell me why the PT2001 keeps returning AAA9? The data manual explains it as a byte mismatch, but there is no logical error in my code. I wonder what the actual reason is.
0 Kudos
Reply