[PATCH 5/8] staging: comedi: adv_pci1710: fix pci1720 bipolar data writes

Ian Abbott abbotti at mev.co.uk
Mon Jun 23 11:57:05 UTC 2014


On 2014-06-20 20:01, H Hartley Sweeten wrote:
> On the PCI-1720 board, bipolar analog output ranges use two's
> complement data. Use comedi_offset_munge() to munge the comedi
> offset binary values before writing them to the hardware.

Which manual are you looking at?  According to Table 4.7 in the 
PCI-1720U manual from Advantech, this should not be done as 0 
corresponds to -Vref output, 0x800 corresponds to 0V output, and 0xFFF 
corresponds to +Vref output, which is what Comedi expects.

-- 
-=( Ian Abbott @ MEV Ltd.    E-mail: <abbotti at mev.co.uk>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-


More information about the devel mailing list