Add calculation for pin high/low time in high-voltage-booster #2
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Calculate the next tick for the high-voltage-booster based on the defined tick time interval and a PWM frequency to boost in.
Added calculation for high/low-time:
boost_highVoltage_nextTick = clock() + F_CPU * 1/(boost_frequency/2)
The nextTick should then be half of the period-time of the given frequency
1/frequency gives period-time