Information
Ramp Generator and its Parameters
// Parameters
const int32_t supplyvoltage = 12;// supply voltage, used for scaling the duty cycle
const int32_t outputvoltage_max = 4;// maximum output voltage
const int32_t outputvoltage_min = -4;// minimum output voltage
const int32_t flat_time = 100;// ticks based on 25Hz. (100 ticks = 4 seconds)
/***********************************************************
* Ramp Generator *
***********************************************************
* *
* max ------------- *
* / flat_time \ *
* / \ / *
* / \ / *
* 0 -/-------------------\--------------------/---------- *
* \ / *
* \ / *
* \ flat_time / *
* min -------------/ *
* *
**********************************************************/
Page 3 2014-11-03 Copyright © Infineon Technologies AG 2014. All rights reserved.