Download Print this page

AcSiP S76G Command Reference Manual page 20

Commands set reference

Advertisement

Response: Ok, if input arguments are valid.
Invalid, if input argument are not valid or out of range.
Purpose: User needs to measure the external voltage (e.g. battery voltage) which is higher than 3.3v.
The full-charged voltage of some lithium-ion battery might exceed 3.3 volt, this voltage level already
exceeds the maximum allowable voltage of S7XX ADC. So user needs to provide an external circuit,
voltage divider, to reduce the magnitude of the external voltage (e.g. Vbat). So the reduced voltage
(i.e. Vadc) which is equal or low than 3.3v can be measured correctly by S7XX ADC.
Steps for measure Vbat:
a. To implement a voltage divider circuit. And the recommended resistance values of R1 & R2 are
around 100K & 200K respectively.
b. The end-point of Vadc is needed to be connected with PB_1 of S7XS GPIO.
c. To measure the resistance value of these two R1 & R2 by a resistance meter.
d. To let S7X know the measured R1 & R2 values by calling this command "sip set_batt_resistor".
(e.g.)
sip set_batt_resistor 98900 199700
>> Ok
3.1.17 sip get_batt_resistor
Response: Two decimal values representing R1 & R2 values respectively.
Purpose: See "sip set_batt_resistor" command.
Example:
sip get_batt_resistor
>> 98900 199700
3.1.18 sip get_batt_volt
a. R1 & R2 set
Response: Return ADC voltage (Vadc) & battery voltage (Vbat) if "sip set_batt_resistor" had ever set
R1 & R2.
S76G/S78G Commands Set Reference
Product Name
Version
v1.6.5
Doc No
Date
July 2, 2018
Page
19 of 73

Advertisement

loading

This manual is also suitable for:

S78g