SPI Communication between MPC5775K and MR2001V

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

SPI Communication between MPC5775K and MR2001V

888 次查看
maheshsubramani
Contributor I

Hi

We are interfacing MPC5775K with MR2001V (VCO) by SPI

The Write commands are sent as expected  . But doing a read does not read the set variables values

Enclosed is SPI code.

 

  1. Write message was done  to set identification key for VCO (i.e.) 10110000 to identification key and the S1 register
  2. read was done for 0x02 VCO S1 State Machine Register, after a write. But read returned 0

 

Thanks

Original Attachment has been moved to: spi_rfs.c.zip

标签 (1)
标记 (1)
0 项奖励
1 回复

542 次查看
martin_kovar
NXP Employee
NXP Employee

Hi,

at first, please look at this example which shows, how to correctly set SPI as a master/slave and how to communicate between these two nodes.

MPC5775K SPI

Regards,

Martin

0 项奖励