Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

TPIC84000-Q1: TPIC84000-Q1 about the code issue

$
0
0

Part Number:TPIC84000-Q1

Hi team,

The customer is using TPIC84000-Q1. First, the customer needs some code routine. Then I provide the code routine that Darren Rollman provided.

Darren Rollman provided the code routine link is :

Please check the attachment for the code routine. Now the customer refers to the code routine to use the  TPIC84000-Q1 device to

communicate with MCU through SPI. The SPI commuincation code is as below. The customer would like to verify if the SPI communication is fine.

Would you support the issue? 

The SPI commuincation: 

// Wake up Message

MCU Send : {0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

TPIC84000 Send : {0x40, 0x00, 0xC4, 0xC1, 0x15, 0x0D, 0x00, 0xC0};

// Program Configuration

MCU Send : {0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

TPIC84000 Send : {0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

// Load Data

MCU Send : {0x30, 0xAA, 0xAA, 0xAB, 0x8B, 0x32, 0x99, 0x5A};

TPIC84000 Send : {0x20, 0x10, 0x00, 0x31, 0x30, 0x45, 0x43, 0x40};

// Program control and status register

MCU Send : {0x20, 0x02, 0x0E, 0x80, 0x00, 0x00, 0x00, 0x00};

TPIC84000 Send : {0x61, 0x55, 0x55, 0x57, 0x16, 0x65, 0x32, 0xB4};

// Start transmission

MCU Send : {0xD0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

TPIC84000 Recv : {0x40, 0x04, 0x1D, 0x00, 0x00, 0x00, 0x00, 0x00};

// ReadBack from device to get current measurments

MCU Send : {0xD0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

TPIC84000  Send : {0xA0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

// Wake up Message

MCU Send : {0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

TPIC84000 Send : {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

Best Wishes,
Mickey Zhang
Asia Customer Support Center
Texas Instruments

(Please visit the site to view this file)


Viewing all articles
Browse latest Browse all 262198

Trending Articles