Under the condition of the power frequency supply, the useful output rate of the medical X-ray machine is low and the X-ray tube output voltage ripple coefficient is generally larger. In order to ensure the stability and accuracy of the operation of the X-ray machine, a design of the medical high frequency and high voltage generator based on the Cortex-M4 kernel is proposed in this paper. The structure and working principle of the high frequency and high voltage generator are thoroughly analyzed, and the co...