18/09/2003
HESC-UPS Manual
Tri-M Engineering
Tel:
800.665.5600, 604.945.9565
1407 Kebet Way, Unit 100
Fax:
604.945.95
Port Coquitlam, BC, V3C 6L3
E-mail:
Canada
Web
site:
www.tri-m.com
16
Protoco
l: Write Word
Output:
unsigned int -- maximum charger output current in mA
Units: mA
Range: data range is 0 to 65,535 mA.
10. ChargingVoltageCmd()
0x15
Description:
The Host sends the desired charging voltage (mV).
Purpose:
The HESC uses the ChargingVoltageCmd() function to establish the charging voltage. In combination with the
ChargingCurrentCmd() function and the battery's internal impedance, this function determines the HESC's operating
point. Together, these functions permit the HESC to dynamically adjust its charging profile (current/voltage) for
optimal charge. The Host can effectively turn off the HESC by returning 0 for this function. The HESC can be operated
as a constant current source by returning a ChargingVoltageCmd() value of 65535.
Protoco
l: Write Word
Output:
unsigned int -- maximum charger output voltage in mV
Units: mV
Range: data range is 0 to 65,535 mV
11. AlarmWarningCmd()
0x16
Description:
If an SMBus Battery is connected to the HESC, this command notifies the HESC that the one or more alarm
conditions exist. Alarm and status indications are encoded as bit fields. The HESC will, acting in Master Mode, send
the AlarmWarningCmd() to the Host over the SerBus or the PC/104 bus. If the HESC is charging a Standard Battery
pack, it will set the appropriate fields, and broadcast it to the Host over the SerBus or the PC/104 bus.
Purpose:
The AlarmWarningCmd() function is used by the power management system to get alarm and status bits, as well as
error codes from the HESC.
Protocol:
Read Word
Output:
unsigned int - Status Register with alarm conditions bit mapped as follows:
* * * * * * Alarm Bits * * * * *
0x8000 OVER_CHARGED_ALARM
0x4000 TERMINATE_CHARGE_ALARM
0x2000 Reserved
0x1000 OVER_TEMP_ALARM
0x0800 TERMINATE_DISCHARGE_ALARM
0x0400 Reserved
0x0200 REMAINING_CAPACITY_ALARM
0x0100 REMAINING_TIME_ALARM
* * * * * * Status Bits * * * * *
0x0080 INITIALIZED
0x0040 DISCHARGING
0x0020 FULLY_CHARGED
0x0010 FULLY_DISCHARGED
* * * * * * Error Code * * * * *
0x0000-0x000f Reserved