markspencer Site Admin

Joined: 07 May 2003
Posts: 610
|
Posted: Thu May 08, 2003 3:23 pm Post subject: |
|
|
Hi,
The function adc10_open_unit return value is not an indication of whether the ADC12 is connected, but if the parallel port can be opened. If the unit is not connected the value returned by adc10_get_value will always be 4096 adc counts, since it has a 12 bit resolution.
If the full voltage range is not required then the value of 4096 could be used as a test, thus if the return value is equal to 4096 then you would know that the unit is not connected.
Best Regards, |
|