ADC
V0.0.2
Histroy
- 2014-10-01, rayoslee, release V0.0.2
- 2014-09-22, rayoslee, release V0.0.1
FAQ
- How to configure ADC in kernel ?
- make menuconfig
- Enable Device Drivers->Input device support->Touchscreens->W55FA93 touchscreens->Detect ambient light and battery status
- Enable Device Drivers->Input device support->Event interface
- How to handle AIN2 and AIN3 ?
- About AIN2, refer to applications/lvd,
printf("voltage = %1.2f\n", (float)(buf[3]*256 + buf[2])/1024.0*9.9)
;
- About AIN3, please use this formula,
printf("voltage = %1.2f\n", (float)(buf[1]*256 + buf[0])/1024.0*9.9)
;
- Please patch w55fa93_ts.c if your ADC cannot work ?
- copy w55fa93_ts.c linux/drivers/input/touchscreen/w55fa93_ts.c
- How to test S605-32 ADC ?
- folder 20140930_745_adc has lvd_demo to see AIN2 and AIN3.
- In HW side, for example: GND links coin battery or DC source negative and AIN2. AIN3 links coin battery of DC positive