voltage.h File Reference

Boost converter closed-loop control. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define VOLTAGE_WASTE   405
 ~199V
#define VOLTAGE_SAVE   367
 ~180V

Functions

void voltage_start ()
 Start voltage booster.
void pump_nomoar ()
 Terminate boost converter operation.
uint16_t voltage_get ()
uint16_t voltage_getbcd ()
void voltage_set (uint16_t setpoint)
 set voltage setpoint
uint16_t voltage_setpoint_get ()

Detailed Description

Boost converter closed-loop control.

Setup routines for boost converter pulse generation and implementation of the closed control loop.


Define Documentation

#define VOLTAGE_SAVE   367

~180V

#define VOLTAGE_WASTE   405

~199V


Function Documentation

void pump_nomoar (  ) 

Terminate boost converter operation.

00031                    {
00032     ADCSRA = 0;
00033     ADCSRA |= _BV(ADIF); 
00034 
00035     ICR1 = 255;
00036     OCR1A = 0;
00037     OCR1B = OCR1A;
00038 }

uint16_t voltage_get (  )  [inline]

00070                               {
00071     return voltage;
00072 }

uint16_t voltage_getbcd (  ) 

00064                           {
00065     // 1024 = 500V
00066     uint16_t val = (voltage * 32) / 65;
00067     return tobcd16(val);
00068 }

Here is the call graph for this function:

void voltage_set ( uint16_t  setpoint  ) 

set voltage setpoint

00074                                     {
00075     voltage_setpoint = setpoint;
00076 }

uint16_t voltage_setpoint_get (  )  [inline]

00078 { return voltage_setpoint; }

void voltage_start (  ) 

Start voltage booster.

00059                      {
00060     adc_init();
00061     pump_init();
00062 }

Here is the call graph for this function:


Generated on Wed Jan 27 00:30:00 2010 for Patashnik by  doxygen 1.6.1