Home > other >  Duty ratio and the digital tube
Duty ratio and the digital tube

Time:10-26

You I made up a simple program is through a button to control the duty ratio, set up five gear, press the add a file, and there is a function is a digital tube display gear, but the problem is the time to press the duty cycle change and the digital tube are not synchronized, feel two function cannot be performed at the same time, the time conflict, the card this place now, what should I do

CodePudding user response:

The use of global variables in gear parameters and gear display and PWM control reference this global variable to implement
Program structure in Taiwan before and after system, PWM and gear are accomplished using background interrupt function, front desk just idling, so as not to have the phenomenon of out of sync
  • Related