Analog Signal (ADC) to CAN message HELP

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

Analog Signal (ADC) to CAN message HELP

1,102 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tendter on Fri May 08 00:29:14 MST 2015
Hello,

i'm writing my master thesis and i need your help. I use a LPCxpresso Board with LPC11C24 and LPXxpresso Develop platform.

I want to read 2 analog signals on pins PIO0_1 and PIO0_2. Now I want to send these values via CAN controller (c-can) to CAN_H and CAN_L.
I understand the examples "ADC" and "C_CAN", but I can't combine the codes correctly.
Can you help me with a code example?

Thanks a lot.

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

1,086 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by 1234567890 on Sat May 09 04:19:24 MST 2015

Quote: tendter
I use a LPCxpresso Board with LPC11C24 and LPXxpresso Develop platform.

I want to read 2 analog signals on pins PIO0_1 and PIO0_2. Now I want to send these values via CAN controller (c-can) to CAN_H and CAN_L.



Your point of entry should be [u]much[/u] earlier: Hardware/Pins, CAN itself and it's implementation on the chip and so on.
Have a look at table 163 of the UM.
0 项奖励
回复

1,086 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by 1234567890 on Sat May 09 02:10:35 MST 2015
Simply replace the payload in C_CAN with your ADC reading?
0 项奖励
回复