I want to know how high voltage generator works
These circuits based on three stages first DC to high frequency AC using PWM chip and then connect a high frequency switching transformer.(the transformer turn ratio tell the high voltage).The transformer(ferrite or torride core) converter low voltage high frequency AC to high voltage high frequency AC. After this stage we connect the high frequency switching diode which convert AC to DC. The explained block diagram is shown below. The purpose of using high frequency switching transformer is to reduce size and increase power.