Analog Signal (ADC) to CAN message HELP

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Analog Signal (ADC) to CAN message HELP

362 Views
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
Labels (1)
0 Kudos
2 Replies

346 Views
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 Kudos

346 Views
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 Kudos