voltage.h File Reference
Boost converter closed-loop control.
More...
Go to the source code of this file.
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_WASTE 405 |
Function Documentation
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
00066 uint16_t val = (voltage * 32) / 65;
00067 return tobcd16(val);
00068 }
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; }