Transformer with winding resistance