ADC voltage range of Ci20 and programming API

28 views
Skip to first unread message

Krishnakumar Gopalakrishnan

unread,
Dec 1, 2017, 12:28:11 PM12/1/17
to MIPS Creator CI20
Hi,

I wish to read the voltage from a Li-ion battery (2.5 to 4.2 V) using the built-in ADC.

What is the voltage range of this ADC peripheral? How many channels are available. is there a programming guide or spec sheet available from somewhere?

Regards,

Krishna

MIPS Creator CI20

unread,
Dec 3, 2017, 3:43:40 AM12/3/17
to MIPS Creator CI20
Hi,

You can read AUX1 and AUX2 using sysfs in the latest Debian.

cat /sys/devices/platform/jz4780-adc/jz4740-hwmon.0/in0_input
cat /sys/devices/platform/jz4780-adc/jz4740-hwmon.0/in1_input

I'd recommend checking the ADC section of the programmers manual.
http://mipscreator.imgtec.com/CI20/hardware/soc/JZ4780_PM.pdf

I doubt it'll be able to sense above the 3.3v rail so you might have to translate that range to something
within the range.

Regards
ZubairLK
Reply all
Reply to author
Forward
0 new messages