A method of providing a switched mode power supply comprising an electrical circuit having a galvanic isolation between a High Voltage (HV) circuit part and a Low Voltage (LV) circuit part, wherein said method comprises:
- providing a substrate having said HV and said LV circuit part;
- assembling an electrical component for providing said galvanic isolation, on said substrate, said electrical component having a primary side connected, with a first primary terminal, to said HV circuit part and a secondary side connected, with a first secondary terminal, to said LV circuit part such that a creepage distance is provided over said substrate between said first primary terminal and said first secondary terminal;
- and
- providing a conductive trace on said substrate, connected with a first end to a Low Frequency, LF, voltage node in said HV circuit part, wherein a frequency of a voltage potential at said LF voltage node is lower than a frequency of a voltage potential at said first primary terminal, and said conductive trace provided in between said first primary terminal and said first secondary terminal thereby increasing said creepage distance between said first primary terminal and said first secondary terminal.