background image

 

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: 

[email protected]

 

 

 Canada 

Web 

site: 

www.tri-m.com

 

23

 

Section 7 : EEprom Setpoints and Configuration Variables 

A. List of EEprom Setpoints and Configuration Variable 

1.  The EEprom is used to store setpoints and configuration for the HESC.  The EEprom is non-volatile and will not 

lose it's contents on power loss and has an endurance for a minimum of 100,000 cycles of writes or erases 

 
2.  Variables or setpoints are stored with their least significant byte stored in the lower memory location, and the most 

significant byte in the high location. 

Table 8, HESC Setpoints and Configuration Variables 

EEprom start address 

Charge Cycle 

Variable 

Size 

Variable/Setpoint 

Name 

Units Range 

Description 

1  2 3 4    

 

   

0x00  0x20 0x40 0x60  Word 

ChTerm

 

Bit flags 

N/A 

Charge termination enable flags 

0x02  0x22 0x42 0x62  Word 

Future1

 

 

 

 

0x04  0x24 0x44 0x64  Word 

Future2

 

 

 

 

0x06  0x26 0x46 0x66  Word 

BattVmaxDef

 

mV 

0 to 65535  Maximum battery charging voltage 

0x08  0x28 0x48 0x68  Word

 

BattVmaxTimeDef

 

Min 

0 to 65535  Maximum time since peak battery voltage detected 

0x0A  0x2A 0x4A 0x6A  Word

 

BattVdeltaDef

 

mV 

0 to 65535  Charge termination negative delta V 

0x0C  0x2C 0x4C 0x6C  Word

 

TimeMaxDef

 

Min 

0 to 65535  Maximum time for charge cycle 

0x0E  0x2E 0x4E 0x6E  Word

 

BattIminDef

 

mA 

0 to 65535  Minimum charge current allowed 

0x10  0x30 0x50 0x70  Word

 

BattImaxDef

 

mA 

0 to 65535  Maximum charge current allowed 

0x12  0x32 0x52 0x72  Word

 

TimeTermEnDef 

Min 

0 to 65535  Minimum time before charge termination allowed 

0x14  0x34 0x54 0x74  Word

 

BattTempCompDef  mV/degK  0 to 65535  Temperature compensation applied to BattVDef 

0x16  0x36 0x56 0x76  Word

 

BattVDef 

mV 

0 to 65535  Charging voltage set point 

0x18  0x38 0x58 0x78  Word

 

BattIDef 

mA 

0 to 65535  Charging current set point 

0x1A  0x3A 0x5A 0x7A  Word

 

BattTempRateDef 

0.1K/Min  0 to 6553.5  Maximum rate of battery temperature increase allowed 

0x1C  0x3C 0x5C 0x7C  Word

 

BattTrickleDef 

mA 

0 to 65535  Trickle charge current if below min temp or voltage  

0x1E  0x3E 0x5E 0x7E  Word

 

BattTrickleTimeDef 

Min 

0 to 65535  Maximum time allowed in Trickle charge mode 

0x80 Word 

ChFlags

 Bit 

flags 

N/A

 

Charger/power supply enable flags 

0x82 Word 

BattLowVoltageDef

 

mV 

0 to 65535  Minimum battery operating voltage 

0x84 Word 

BattLowCapacityDef

 

10mW  0 to 65535

 

Minimum battery capacity allowed 

0x86 

Word  MainPwrMaxDef 

10mW  0 to 65535

 

Maximum input power allowed 

0x88 Byte 

MaxBusTime 

Timer 

Ticks 

0 to 255

 

Maximum time before communications timeout 

0x89 

Byte  CHCycleMax 

Cycle 

1 to 4 

Defines how many charge cycles to use 

0x8A Word 

BattTempMinDef

 

0.1K *  0 to 6553.5  Minimum battery charging temperature 

0x8C Word 

BattTempMaxDef

 

0.1K *  0 to 6553.5  Maximum battery charging temperature 

0x8E Word 

BattVminDef

 

mV 

0 to 65535  Minimum battery charging voltage 

0x90 

Byte  ChTempSelect 

Bit flags 

0 to 16  I2C device to use for battery temp, if zero use Th 

0x91 Byte 

ChAmbientSelDef 

Bit 

flags 

0 to 16  I2C device to use for ambient temp, if zero use Th 

0x92 

Word  I2CpollTimeDef 

Sec 

0 to 65535  Rate at which I2C devices are polled 

0x94 

Word  I2CtsICenDef 

Bit flags 

N/A 

Enables polling for selected I2C device 

0x96 Word 

Future 

Bit 

flags 

N/A 

 

0x9A  

 

 

 

 

0x9C  

 

 

 

 

0x9E  

 

 

 

 

 

Содержание HESC-UPS

Страница 1: ... PIC16F microprocessors Designed by TRI M ENGINEERING Engineered Solutions for Embedded Applications Technical Manual P N HESC UPS For firmware Rev 2 24 or higher Revision 18 09 03 Unit 100 1407 Kebet Way Port Coquitlam British Columbia V3C 6L3 Canada http www Tri M com Tel 604 945 9565 North America 800 665 5600 Fax 604 945 956 ...

Страница 2: ...Engineering shall under no circumstances be liable for incidental or consequential damages or related expenses resulting from the use of this product even if it has been notified of the possibility of such damages Tri M Engineering reserves the right to revise this publication from time to time without obligation to notify any person of such revisions If errors are found please contact Tri M Engin...

Страница 3: ...etVersionCmd 0x3E 17 13 SerialNumber 0x3F 17 14 GetI2CTempCmd0 0x80 to GetI2CTempCmd15 0x8F 17 15 TempThCmd 0x90 17 16 MainVCmd 0x91 18 17 MainICmd 0x92 18 18 InputPwrCmd 0x93 18 19 BattPwrCmd 0x94 18 20 ChCycleCmd 0x95 19 21 ChTermLastCmd 0x96 19 22 ShutDownCmd 0x97 19 23 PowerSupplyStatusCmd 0x98 20 24 SDSUCauseCmd 0x99 21 25 ActiveEEcmd 0xA0 21 26 EEPromCmd 0xA1 22 Section 7 EEprom Setpoints an...

Страница 4: ...oller TC IC 29 Section 9 Battery Charging Algorithms and Strategies 30 A Sealed Lead Acid SLA 30 1 Single Stage Charging 30 2 Dual Stage Charging 30 Section 10 HESC UPS FIRMWARE UPDATE PROCEDURE 32 Section 11 Implementing a smart Watchdog Timer on the Host CPU 33 Table 1 List of HESC Command Functions 10 Table 2 ChargerSpecInfoCmd bit map 12 Table 3 ChargerModeCmd bit map 13 Table 4 ChargerStatusC...

Страница 5: ...s and Linux It is imperative with the advanced operating systems that an orderly shutdown of the files be down of the application program and operating system Failure to allow for orderly shutdown can cause data loss intermittent crashes or a complete unrecoverable system failure The HESC UPS firmware has three internal modes that control the start up and shut down of the HESC outputs 1 Debounce H...

Страница 6: ...d to cancel a Shut Down mode in progress is by a Host CPU using command PowerSupplyStatusCmd with bit 8 cleared Shut Down requests are generated by o When the HESC main power is removed o When the IGN input of the HESC SER is taken to the Off state The polarity of the IGN is programmable so the state of the input high or low will depend on the polarity setting o When the SD input of the HESC104 is...

Страница 7: ...mmunications Communication will return to non checksum mode when the Host CPU sends an acknowledge 0xFF after databyteR high B Slave Mode 1 Commands received from the Host and data sent to or received from the to Host CPU over the SerBus The transaction is invalid and commands data are not to be used until the final acknowledge 0xFF is received the checksum matches the transmitted data checksum is...

Страница 8: ...C104 or Host must acknowledge receipt of each byte This is true even if the bus timer is turned off The HESC104 and HESC SER differ in that if the HESC SER bus timer is off an acknowledge byte is not issued If an acknowledge byte doesn t match the acknowledge number expected then a collision is deemed to have occurred The transaction is aborted immediately and the result byte set accordingly An en...

Страница 9: ... connection of all I2 C SMBus interfaces to the I2 C SMBus NOTE Care should be taken in the design of both the input and output stages of SMBus devices in order not to load the bus when their power plane is turned off The HESC uses the master to alert the Host of a change in status or of alarm in the HESC The HESC alerts the Host by sending the ChargerStatus value This occurs when main power is ap...

Страница 10: ...x3F GetChSerNumCmd 9 91 9 R 8 byte N A Read charger serial number 0x80 GetI2CtempCmd0 9 92 9 R 0 1K 0 to 6553 5 Read I2C temperature to 0x8F GetI2CtempCmd15 9 92 9 R 0 1K 0 to 6553 5 Read I2C temperature 0x90 TempThCmd 9 92 9 R Word 0 to 65535 Read TH thermistor value 0x91 MainVCmd 9 92 9 R mV 0 to 65535 Read main input voltage 0x92 MainICmd 9 92 9 R mA 0 to 65535 Read input current 0x93 InputPwrC...

Страница 11: ...s 0 1 K Range 0 to 6553 5 K 2 BattVCmd 0x09 Description Returns the battery voltage mV Purpose The BattVCmd function provides the Host power management system with an accurate battery voltage The Host management system can use this voltage along with battery current information to help enable intelligent adaptive power management systems Protocol Read Word Output unsigned int battery terminal volt...

Страница 12: ...e rate depending on the setting of the capacity_mode bit Purpose The BattRemCapCmd function returns the battery s remaining capacity in absolute terms but relative to a specific discharge rate Protocol Read Word Output unsigned int remaining charge in mAh or 10mWh 6 ChargerSpecInfoCmd 0x11 Description The Host uses this command to read the charger s extended status bits Purpose Allows the Host to ...

Страница 13: ...re applied or when a battery is re inserted The ENABLE_POLLING bit enables the polling feature of the HESC in Level 3 Smart SMBus mode This bit is set at power on for the HESC The POR_RESET bit sets the Smart Battery Charger to its power on default conditions The RESET_TO_ZERO bit sets the ChargingCurrentCmd and ChargingVoltageCmd values to zero This function ALWAYS clears the ChargingVoltageCmd a...

Страница 14: ... ChargingCurrentCmd value CURRENT_NOTREG is cleared when the HESC is regulating to the ChargingCurrentCmd value CURRENT_NOTREG is not defined when the HESC is disabled Field Bits Used Format Allowable Values CHARGE_INHIBITED 0 bit flag 0 charger is enabled 1 charger is inhibited POLLING_ENABLED 1 bit flag 0 charger is in slave mode polling disabled 1 charger is in master mode polling enabled VOLTA...

Страница 15: ...RES_HOT and the RES_UR bits to be set A Smart Battery can signal some or all of the Safety Signal ranges using fixed value resistors In battery packs that do not require the Safety Signal as a secondary fail safe indicator a single fixed resistor may be used to select the Safety Signal range which allows indefinite wake up charging or wake up charging only for the time out period In all cases it i...

Страница 16: ... 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 SerBu...

Страница 17: ... to the end of the model name Purpose The SerialNumber function identifies a particular HESC Protocol Read Block Output string Eight character string of the model name followed by an eight character string of the serial number 14 GetI2CTempCmd0 0x80 to GetI2CTempCmd15 0x8F Description The HESC returns the requested I2C temperature to the Host CPU Purpose The Host can perform power management and c...

Страница 18: ...e of the current flowing into the HESC The current being report by the MainICmd will be either from the main input or battery or some from both inputs if both the main input and battery are the same potential Compare the voltages returned by BattIVCmd and the MainVCmd to determine the source of the power Protocol Read Word Output unsigned int input current rate in mA increments Units mA Range 0 to...

Страница 19: ...rge cycle Protocol Read Write Word Output unsigned int charge cycle Units integer Range 0 to 3 21 ChTermLastCmd 0x96 Description This function returns the cause of the last charge termination method for Standard Battery packs Purpose The Host can determine how effective the charging parameters are by the ChTermLastCmd for an individual battery The ChTermLastCmd will also allow the Host to determin...

Страница 20: ...ription 0 BattAutoStartEn Charging is to autostart when the HESC is reset main power is removed then re applied or when a new battery is inserted 1 enable 0 disable 1 TermEn Charge termination is enabled when TermEn is set 1 enable 0 disable 2 SMBactiveEn The HESC to function as a level 3 SMBus charger 1 enable 0 disable 3 IgnHiOffEn When IgnHiOff is set the HESC SER will begin shutdown procedures...

Страница 21: ...IGN SD Received a start up request from the IGN input 3 SUreq 1 PB SD Received a start up request from the Pushbutton input 4 Not used 5 Not used 6 Not used 7 Not used Bit Action Bit Name Cause of Shut Down request 8 SDreq 1 Main Power Loss of main power 9 SDreq 1 PowerSupplyStatusCmd 0x98 Bit 8 set during PowerSupplyStatusCmd write 10 SDreq 1 IGN SD Received a shut down request from the IGN input...

Страница 22: ...ion The Host uses this command to read write the data in the EEProm The read write address in the EEProm will increment after each read write if the auto increment byte is set 1 through command function ActiveEEcmd 0xA0 Purpose Allows the System Host to change charging profiles and HESC setup Protocol Write Word Input unsigned int 16 bit value See List of EEprom Setpoints and Configuration Variabl...

Страница 23: ...2 Word TimeTermEnDef Min 0 to 65535 Minimum time before charge termination allowed 0x14 0x34 0x54 0x74 Word BattTempCompDef mV degK 0 to 65535 Temperature compensation applied to BattVDef 0x16 0x36 0x56 0x76 Word BattVDef mV 0 to 65535 Charging voltage set point 0x18 0x38 0x58 0x78 Word BattIDef mA 0 to 65535 Charging current set point 0x1A 0x3A 0x5A 0x7A Word BattTempRateDef 0 1K Min 0 to 6553 5 ...

Страница 24: ... 5 I2C Sensor 5 low temp alarm setting 0xC2 0xC3 I2CHiLoAlarm5 0 1K 0 to 6553 5 I2C Sensor 5 high temp alarm setting 0XC4 0xC5 I2Cconfig6 Bit flags N A Defines I2C sensor 6 address and operating modes 0xC6 0xD7 I2CSetPoint6 0 1K 0 to 6553 5 I2C Sensor 6 low temp alarm setting 0xC8 0xD9 I2CHiLoAlarm6 0 1K 0 to 6553 5 I2C Sensor 6 high temp alarm setting 0xCA 0xDB I2Cconfig7 Bit flags N A Defines I2...

Страница 25: ...0 disable 4 BattVmaxTimeEn Charge termination method that terminates charging if the battery voltage has not increased for BattVmaxTimeDef minutes 1 enable 0 disable 5 BattVdeltaEn Charge termination method that terminates charging if the battery voltage has decreased by BattVdeltaDef 1 enable 0 disable 6 TimeMaxEn Charge termination method that terminates charging if charging has taken place for ...

Страница 26: ...mum peak voltage Purpose Prevent damage to batteries that can occur from being overcharged Some batteries like NiMH have a very small negative delta V that may not be detected 7 TimeMaxDef EEprom Locations 0x0C 0x2C 0x4C 0x6C Description When TimeMaxEn is enabled the HESC SER will terminate charging a standard battery pack when the length of time the HESC SER has been charging this charge cycle ex...

Страница 27: ... connector SDser 0 SD RS232 input transitioning from 5V to 5V generates shut down request SDser 1 SD RS232 input transitioning from 5V to 5V generates shut down request 6 Then Thermistor monitoring select 1 enable 0 disable 7 SUreq Startup request when power applied when HESC SER is hard off 1 off 0 on For standard battery packs only ie Not for SMBus battery packs 18 BattLowVoltageDef EEprom Locat...

Страница 28: ...t damage to batteries that can occur from being charged when in an excessively low charge condition or to prevent normal charging if one or more cells are faulty 23 PWRSDdebDef 0xD0 PWRSUdebDef 0xD2 IGNSDdebDef 0xD8 IGNSUdebDef 0xDA Description Defines the interval for debouncing signal Range is 0 to 65535 seconds Purpose To prevent unnecessary start up or shut down of the Host CPU 24 PWRSDDef 0xD...

Страница 29: ...low byte then Low alarm setting 0 if I2Csetpoint 65535 I2ChiLoAlarm high byte then High alarm setting 65535 For TS IC High alarm value Alarm range 0 to 65535 Bit Bit Name Description 0 Cmd bit 0 1 Cmd bit 1 Bit 0 and 1 selects data and or commands within the TC IC address Refer to TC IC for more details For TS IC Cmd bit 0 1 should be zero For a write operation the contents of I2CSetpoint will be ...

Страница 30: ...tion BattTempMaxEn 1 BattTempMax 3182 Terminates charging if battery temperature above BattTempMax Set for 45C BattVmaxEn 1 BattVmax 13900 Terminates charging if battery voltage above BattVmaxDef Set for 13 9V BattTempCompEn 1 BattTempComp 18 Compensates the BattVDef voltage for the ambient temperature Compensation is in mV starting at 298 2K 25C N A BattVDef 13700 Float voltage set up Set for 13 ...

Страница 31: ...t up Set for 13 7 volts N A BattIDef 2500 1 Maximum charge current Set for 2500mA BattTempMaxEn 0 N A 2 Terminates charging if battery temperature above BattTempMax Set for 45C BattVmaxEn 0 N A 2 Terminates charging if battery voltage above BattVmaxDef Set for 13 9V BattTempCompEn 1 BattTempComp 18 2 Compensates the BattVDef voltage for the ambient temperature Compensation is in mV starting at 298...

Страница 32: ...pply main power to CN6 of HESC 3 Start SCU utility on host 4 Select INIT SETUP from menu and select AUTO_SELECT press OK button after HESC is initialized 5 Select FILE OPEN from menu and select the file 6 Select EEPROM from menu and select UPDATE ALL 7 Select WRITE to update the profile 8 Close SCU after profile is updated 9 Remove main power from CN6 To update the firmware 1 Connect a wire betwee...

Страница 33: ...from Tri M Engineering 2 Set the command start up time interval in the EEProm profile for the Host CPU to remain unpowered before starting up again This interval is in seconds and can have a value up to 65535 seconds and can be set with the SCU exe utility from Tri M Engineering 3 The Host CPU must continue to issue the two following commands to tickle the HESC at a rate greater than the watchdog ...

Отзывы: