1

Topic: 16 bit to 8 bit

hi how can i covert 16 bit to 8 bit i got canny7.2 my ecu transmit 16 bit engine temp but my gauge cluster need to recive
8 bit how can i do it can you  show me example

2

Re: 16 bit to 8 bit

What is the mathematical expression for the transformation you want to perform?

3

Re: 16 bit to 8 bit

divider

4

Re: 16 bit to 8 bit

this is the setup i am working on buffer 2 is engine temp

5

Re: 16 bit to 8 bit

the setup i am working on buffer 2 is engine temp

Post's attachments

Attachment icon POLAISSLINGSHOT1.cfd 4.08 kb, 51 downloads since 2023-07-18 

6

Re: 16 bit to 8 bit

It's not entirely clear from the diagram what exactly you want to do. Your data reception is wrong. An example of the reception can be found here: https://cannylogic.com/docs/c72duo/can/ … ample-ex_1

In particular, the meaning of this fragment is not clear:

Post's attachments

red.png, 5.67 kb, 656 x 100
red.png 5.67 kb, 38 downloads since 2023-09-06 

7

Re: 16 bit to 8 bit

hi what i need is my ecu send 2 byte of data 0 to 65535 for engine temp
but my gauge read  1byte  0 to 255

8

Re: 16 bit to 8 bit

For linear scaling input range 0..65535 to output range 0..255 you can: