Add calculation for pin high/low time in high-voltage-booster
#2
Closed
opened 6 years ago by Ruakij
·
1 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. 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