MMA690xKQ interface sample codes

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

MMA690xKQ interface sample codes

1,068 次查看
jayarao
Contributor I

Hi any one share sample code of MMA690xKQ interface sample codes

标签 (1)
0 项奖励
回复
3 回复数

890 次查看
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Jaya,

The only example code I am aware of is part of the TWR_SENSOR_AUTO_FW package that can be downloaded from the following website:

Automotive Low-g Accelerometer Tower® Plug-In|NXP 

Scroll down to the bottom of the page and download the TWR_SENSOR_AUTO_FW.zip file.

I hope it helps!

Best regards,

Tomas

0 项奖励
回复

890 次查看
jayarao
Contributor I

Hi Tomas

Thanks for the reply

I was tried with same example aswell

pelase find tehresponses attached

Always I am getting E6,BC,00...

0 项奖励
回复

890 次查看
jayarao
Contributor I

mcm_internal_get_srv_id_for_msg_id: *** msg_id: 600 | MIN: b00 | MAX: b10
mcm_internal_get_srv_id_for_msg_id: *** msg_id: 600 | MIN: 100 | MAX: 10c
mcm_internal_get_srv_id_for_msg_id: *** msg_id: 600 | MIN: 400 | MAX: 427
mcm_internal_get_srv_id_for_msg_id: *** msg_id: 600 | MIN: 300 | MAX: 316
mcm_internal_get_srv_id_for_msg_id: *** msg_id: 600 | MIN: 600 | MAX: 600
mcm_internal_get_srv_id_for_msg_id: found service_id iter:8
server_execute_sync: server_execute_sync Enter
server_execute_sync: user_handle:7, msg_id:600, req_c_struct:e190, req_c_struct_len:208, resp_c_struct:e3a0, resp_c_struct_len:1010
mcm_client_execute_command_sync_ex: mcm_client_execute_command_sync_ex SUCCESS EXITAT command sent:
AT#V24=2,1OK
rx_word-0xbc00
ptr_read[index].word-0xbc00
index - 13AT command sent:
AT#V24=2,0OK
register address:14message transmittedspi read message successfullSTATUS is 0xe6-0x00-0x00-0x00
register address:emessage transmittedspi read message successfullSTATUS is 0x00-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xe600AT command sent:
AT#V24=2,0OK
register address:20message transmittedspi read message successfullSTATUS is 0xbc-0x00-0x00-0x00
register address:0message transmittedspi read message successfullSTATUS is 0x00-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xbc00
ptr_read[index].word-0xbc00
index - 14AT command sent:
AT#V24=2,0OK
register address:10message transmittedspi read message successfullSTATUS is 0x00-0x00-0x00-0x00
register address:fmessage transmittedspi read message successfullSTATUS is 0xe6-0x00-0x00-0x00
AT command sent:
AT#V24=2,1OK
rx_word-0xe6AT command sent:
AT#V24=2,0OK
register address:20message transmittedspi read message successfullSTATUS is 0xbc-0x00-0x00-0x00
register address:0message transmittedspi read message successfullSTATUS is 0x00-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xbc00
ptr_read[index].word-0xbc00
index - 15AT command sent:
AT#V24=2,0OK
register address:14message transmittedspi read message successfullSTATUS is 0xe6-0x00-0x00-0x00
register address:10message transmittedspi read message successfullSTATUS is 0xe6-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xe6e6AT command sent:
AT#V24=2,0OK
register address:20message transmittedspi read message successfullSTATUS is 0xe6-0x00-0x00-0x00
register address:0message transmittedspi read message successfullSTATUS is 0xff-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xe6ff
ptr_read[index].word-0xe6ff
index - 16AT command sent:
AT#V24=2,0OK
register address:10message transmittedspi read message successfullSTATUS is 0x00-0x00-0x00-0x00
register address:11message transmittedspi read message successfullSTATUS is 0xe6-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xe6AT command sent:
AT#V24=2,0OK
register address:20message transmittedspi read message successfullSTATUS is 0xbc-0x00-0x00-0x00
register address:0message transmittedspi read message successfullSTATUS is 0x00-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xbc00
ptr_read[index].word-0xbc00
index - 17AT command sent:
AT#V24=2,0OK
register address:14message transmittedspi read message successfullSTATUS is 0x00-0x00-0x00-0x00
register address:20message transmittedspi read message successfullSTATUS is 0xbc-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xbcAT command sent:
AT#V24=2,0OK
register address:20message transmittedspi read message successfullSTATUS is 0xe6-0x00-0x00-0x00
register address:0message transmittedspi read message successfullSTATUS is 0xff-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xe6ff
ptr_read[index].word-0xe6ff
index - 18AT command sent:
AT#V24=2,0OK
register address:10message transmittedspi read message successfullSTATUS is 0x00-0x00-0x00-0x00
register address:21message transmittedspi read message successfullSTATUS is 0xe6-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xe6AT command sent:
AT#V24=2,0OK
register address:20message transmittedspi read message successfullSTATUS is 0xbc-0x00-0x00-0x00
register address:0message transmittedspi read message successfullSTATUS is 0x00-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xbc00
ptr_read[index].word-0xbc00
index - 19
AT command sent:
AT#V24=2,0OK
register address:10message transmittedspi read message successfullSTATUS is 0xe6-0x00-0x00-0x00
register address:22message transmittedspi read message successfullSTATUS is 0xff-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xe6ffAT command sent:
AT#V24=2,0OK
register address:20message transmittedspi read message successfullSTATUS is 0xe6-0x00-0x00-0x00
register address:0message transmittedspi read message successfullSTATUS is 0xe6-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xe6e6
ptr_read[index].word-0xe6e6
index - 20AT command sent:
AT#V24=2,0OK
register address:14message transmittedspi read message successfullSTATUS is 0x00-0x00-0x00-0x00
register address:23message transmittedspi read message successfullSTATUS is 0xbc-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xbc
AT command sent:
AT#V24=2,0OK
register address:20message transmittedspi read message successfullSTATUS is 0xe6-0x00-0x00-0x00
register address:0message transmittedspi read message successfullSTATUS is 0xe6-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xe6e6
ptr_read[index].word-0xe6e6
index - 21AT command sent:
AT#V24=2,0OK
register address:10message transmittedspi read message successfullSTATUS is 0xff-0x00-0x00-0x00
register address:24message transmittedspi read message successfullSTATUS is 0xbc-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xffbcAT command sent:
AT#V24=2,0OK
register address:20message transmittedspi read message successfullSTATUS is 0xe6-0x00-0x00-0x00
register address:0message transmittedspi read message successfullSTATUS is 0xe6-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xe6e6
ptr_read[index].word-0xe6e6
index - 22
AT command sent:
AT#V24=2,0OK
register address:14message transmittedspi read message successfullSTATUS is 0x00-0x00-0x00-0x00
register address:25message transmittedspi read message successfullSTATUS is 0xe6-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xe6
AT command sent:
AT#V24=2,0OK
register address:20message transmittedspi read message successfullSTATUS is 0xbc-0x00-0x00-0x00
register address:0message transmittedspi read message successfullSTATUS is 0x00-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xbc00
ptr_read[index].word-0xbc00
index - 23AT command sent:
AT#V24=2,0OK
register address:14message transmittedspi read message successfullSTATUS is 0xe6-0x00-0x00-0x00
register address:26message transmittedspi read message successfullSTATUS is 0xe6-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xe6e6
AT command sent:
AT#V24=2,0OK
register address:20message transmittedspi read message successfullSTATUS is 0xe6-0x00-0x00-0x00
register address:0message transmittedspi read message successfullSTATUS is 0xe6-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xe6e6
ptr_read[index].word-0xe6e6
index - 24AT command sent:
AT#V24=2,0OK
register address:10message transmittedspi read message successfullSTATUS is 0x00-0x00-0x00-0x00
register address:27message transmittedspi read message successfullSTATUS is 0xbc-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xbcAT command sent:
AT#V24=2,0OK
register address:20message transmittedspi read message successfullSTATUS is 0xbc-0x00-0x00-0x00
register address:0message transmittedspi read message successfullSTATUS is 0x00-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xbc00
ptr_read[index].word-0xbc00
index - 25
AT command sent:
AT#V24=2,0OK
register address:10message transmittedspi read message successfullSTATUS is 0x00-0x00-0x00-0x00
register address:0message transmittedspi read message successfullSTATUS is 0x00-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0x00AT command sent:
AT#V24=2,0OK
register address:20message transmittedspi read message successfullSTATUS is 0xe6-0x00-0x00-0x00
register address:0message transmittedspi read message successfullSTATUS is 0xff-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xe6ff
ptr_read[index].word-0xe6ff
index - 26AT command sent:
AT#V24=2,0OK
register address:10message transmittedspi read message successfullSTATUS is 0x00-0x00-0x00-0x00
register address:24message transmittedspi read message successfullSTATUS is 0xe6-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xe6
XL AXIS - 230AT command sent:
AT#V24=2,0OK
register address:20message transmittedspi read message successfullSTATUS is 0xbc-0x00-0x00-0x00
register address:0message transmittedspi read message successfullSTATUS is 0x00-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xbc00AT command sent:
AT#V24=2,0OK
register address:14message transmittedspi read message successfullSTATUS is 0xe6-0x00-0x00-0x00
register address:25message transmittedspi read message successfullSTATUS is 0x00-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xe600
XH AXIS - 58880AT command sent:
AT#V24=2,0OK
register address:20message transmittedspi read message successfullSTATUS is 0xbc-0x00-0x00-0x00
register address:0message transmittedspi read message successfullSTATUS is 0x00-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xbc00AT command sent:
AT#V24=2,0OK
register address:14message transmittedspi read message successfullSTATUS is 0x00-0x00-0x00-0x00
register address:26message transmittedspi read message successfullSTATUS is 0xbc-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xbc
YL AXIS - 188AT command sent:
AT#V24=2,0OK
register address:20message transmittedspi read message successfullSTATUS is 0xe6-0x00-0x00-0x00
register address:0message transmittedspi read message successfullSTATUS is 0xe6-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xe6e6AT command sent:
AT#V24=2,0OK
register address:10message transmittedspi read message successfullSTATUS is 0x00-0x00-0x00-0x00
register address:27message transmittedspi read message successfullSTATUS is 0xbc-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xbc
YH AXIS - 188AT command sent:
AT#V24=2,0OK
register address:20message transmittedspi read message successfullSTATUS is 0xff-0x00-0x00-0x00
register address:0message transmittedspi read message successfullSTATUS is 0x00-0x00-0x00-0x00AT command sent:
AT#V24=2,1OK
rx_word-0xff00
X AXIS - 0
Y AXIS - 58880
X AXIS - 58880-230
Y AXIS - 188-188
mma6900->w_regs -  0
last_write -  0
X AXIS - 0
Y AXIS - 58880
X AXIS - 58880-230
Y AXIS - 188-188

0 项奖励
回复