Tony Sleep wrote
>

> Sorry, Tony, but it looks like yes, you can. Just multiply by 255/1024 
> and round to integer each 1:1024 value. You have your data 8-bit, 
> linearly coded. Then, when you want to use it, just multiply by 
> 1024/255. Your range is preserved, you only *lost resolution* by a 
> lower bit enconding.

Cart before horse:) You can do whatever you like once it's digitised,
but I'm talking 
about mapping an analogue voltage ratio to bit values. 

<

The voltage ratio is already mapped to the DAC imput range (0-2V or 
other) in the 1:1024 innitial example. Just exchange its 10-bit 
0-1023 DAC with an 8-bit 0-255 one with the same imput range. 
Output data hardly different than with the digital convertion 
above.

Regards,

Rick Trelles

Reply via email to