ADC读取
ADC读取有两种方式:
- 1,直接读取(immediate)
- 2,定时读取(timer-triggerd)
读取方式通过AUXADC_CON0
来控制
ADC通道
Channel ID | Description | 是否外部管脚 |
---|---|---|
Channel 0 | VBAT | 否 |
Channel 1 | ISENSE | 否 |
Channel 2 | CHRIN | 否 |
Channel 3 | BATON(BATTemp) | 否 |
Channel 4 | AUXIN4 | 是 |
Channel 5 | ACCDET | 是 |
Channel 9 | ClassAB | 否 |
Channel 12 | XP/Externl | 否 |
Channel 13 | YP/Externl | 否 |
Channel 14 | YM/Externl | 否 |
Channel 15 | XM/Externl | 否 |
There are only two externl pins(channel 4,5) for voltage detection. Other channes(0-3) are for battery vol, current, charger and battery temperature. channel 9 for audio.
其中channel 4、5可以在软件里配置给固定的逻辑通道