Tri-M Systems HE104 technical manual ‘Get battery charging voltage, BattChrgTerm

Page 29

23 June 2005

HE104MAN-V8 Manual

‘D1 = 0, D0 = 0 channel 0 input, pin3 of connector CN3 ‘D1 = 0, D0 = 1 channel 1 input, pin4 of connector CN3

 

‘1. on max cell voltage

 

‘2. on time

 

‘3. –ve delta V

 

‘4. cell temperature

next TCnt

 

let D1 = 0

 

let D0 = 0

 

gosub Convert

‘Get battery charging voltage

let Batt_V =AD

 

‘debud “charge”

if AD> BattV_Max then Batt_Chrg_Term Chrg_Time = Chrg_Time + 1

If Chrg_Time > Chrg_Time_Max then Batt_Chrg_Term ‘Used maximum charge time

If AD < Batt_Peak then Batt_DeltaV

 

Let AD =AD +Neg_DeltaV

 

If AD <Batt_Peak then Batt_Chrg_Term

‘Detected negative deltaV in battery pack

**Insert battery pack temperature code here**

 

goto Chrg_Lp

‘Continue until charging terminated

Batt_Chrg_Term:

 

PWM Chrg_ Limit, 0.50

‘turn off charge current

Let Bat1_Chrg = 1

‘Indicate battery has been charged

Goto Main_Batt1

 

Convert:

 

ADC Interface Pins

 

-The LTC 1594 uses a four-pin interface, consisting of chip-select, clock data input and data output. In this application, we tie the data lines together and connect to the PM104 pin designated DIO. Here’s where the conversion occurs. The PM104 first sends the setup bits to the LTC1594, then clocks in two bits followed by (sample time), one null bit (a dummy bit that always reads 0, followed by the conversion data.

High CS1

‘ Deactivate the ADC to begin

High CLK

‘ Clock data on rising edge, so start with CLK high

High Dio

 

Pulsout CLK.2

 

Low DIO

 

Pulsout CLK.2

 

Let DIOp = D1

‘next bit of command

Pulseout CLK.2

Tri-M Engineering

Tel:

800.665.5600, 604.945.9565

28

1407 Kebet Way, Unit 100

Fax:

604.945.9566

 

Port Coquitlam, BC V3C 6L3

E-mail:

info@tri-m.com

 

Canada

Web site:

www.tri-m.com

 

Image 29
Contents HE104 TRI-MTechnical Manual TRI-M Engineering PC/104 Vehicle Power SupplyHE104MAN-V8 Manual Preface General Description IntroductionHE104 Dimensions 1000mil=1in FeaturesModel HE104 SpecificationsIntroduction Configuration and InstallationHE104 Connectors Power ConsiderationsOutput Power Connector Jumper Selection Installation Onto PC104 ModulesBus Termination Optional 2 +5VDC Low Q/ Noise Q=quiescent PC/104 Bus Interrupts Optional Connector CN5 Pinout Connector CN6 PinoutInterrupt IRQ Selection Power Management Controller PM104 optionalPM104 Pin Number and I/O Functions Low Input Alarm10 HE104 Efficiency and Heat Dissipation Calculation Theory of Operation Input power protectionSwitching Regulator, +5VDC Charge Pumps Switching regulator, +12VDCVp -p L1 ∙ frequency Filter CapacitorsRC1 RC2 RC3 RC4 RC5 ExampleAppendix 1 HE104, +5V Regulator Block Diagram HE104MAN-V8 Manual Appendix 2 Advantages of Using AC Termination Appendix 3 Installation Hints for the HE104 Power Supply Description AppendixConnections Programming Cable Sample Battery Charging Program Listing BattChrgTerm ‘Get battery charging voltageInit ‘Return to programBattTrickle ‘debug trickle gosub ChkPwr let D1 = NoPower ‘debug nopwr pauseChkPwr BattChrgDistributed By