Analog Signal (ADC) to CAN message HELP

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Analog Signal (ADC) to CAN message HELP

1,103件の閲覧回数
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,087件の閲覧回数
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,087件の閲覧回数
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 件の賞賛
返信