SSI using K60 Processor Expert

cancel
Showing results for 
Search instead for 
Did you mean: 

SSI using K60 Processor Expert

362 Views
davidzhou
Contributor V

Hi ,

I have TWR-K60F120M Tower Module.

I am trying to set up and use SSI_LDD from Processor Expert.

The Receive Clock is set to pin PTE9.

Code:

LDD_TDeviceData *SSI_Device;
SSI_Device= SSI1_Init(NULL);

int16_t data;

void Main_Task  (  uint32_t param )
{  
  while (1) {
    SSI1_ReceiveBlock ( SSI_Device, &data, sizeof(data));
    ...
  }
}

First thing first, I scoped and there is no clock output on the PTE9 ( A43 - primary size connector)

What I have missed?

The PE configuration: Screen Dump attached.

Thank You,

David Zhou

3 Replies

290 Views
davidzhou
Contributor V

I also tried Receive Clock Output Pin with PTC9, PTC6,  PTA14.

The secondary interface board is not plugged in. (Only the primary board runs the program).

Thx,

David

0 Kudos

290 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi David,

From the Processor Expert [SSI_LDD] component setting, the Master clock is disable.

The SAI_RX_BCLK is an input when externally generated and an output when internally generated.

If required receive bit clock with internally generated, it need enable Master clock at first.

Wish it helps.


Have a great day,
Mike

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

290 Views
davidzhou
Contributor V

Hi Hui Ma,

I enabled Master Clock, there is an output clock from Master Clock pin, but Receiver Clock has no output, also the receiver clock rate has to be picked as a different rate of the master clock. The software cannot read the input data, and there is no interrupt generated.

Now I use the SPI interface to read the encoder chip. It works.

Thank you for your help.

David Zhou