Create a schematic for A switching regulator. 

libSymbols:
- D_1
- Device:C
- Device:C_Small
- Device:L
- Device:R
- PWM:PWM
- Simulation_SPICE:NMOS
- Simulation_SPICE:OPAMP
- Simulation_SPICE:VDC
- Simulation_SPICE:VPULSE
- power:GND
- power:PWR_FLAG
schematicSymbols:
- libraryNickname: power
  entryName: GND
  position:
    x: 113.03
    y: 60.96
    angle: 0
  properties:
  - key: Reference
    value: '#PWR01'
    position:
      x: 113.03
      y: 67.31
      angle: 0
  - key: Value
    value: GND
    position:
      x: 113.03
      y: 66.04
      angle: 0
- libraryNickname: Device
  entryName: L
  position:
    x: 139.7
    y: 27.94
    angle: 90
  properties:
  - key: Reference
    value: L1
    position:
      x: 139.7
      y: 22.86
      angle: 90
  - key: Value
    value: 10u
    position:
      x: 139.7
      y: 25.4
      angle: 90
- libraryNickname: Device
  entryName: R
  position:
    x: 198.12
    y: 72.39
    angle: 270
  properties:
  - key: Reference
    value: R2
    position:
      x: 201.93
      y: 74.93
      angle: 90
  - key: Value
    value: 10k
    position:
      x: 201.93
      y: 77.47
      angle: 90
- libraryNickname: power
  entryName: GND
  position:
    x: 191.77
    y: 100.33
    angle: 0
  properties:
  - key: Reference
    value: '#PWR01'
    position:
      x: 191.77
      y: 106.68
      angle: 0
  - key: Value
    value: GND
    position:
      x: 191.77
      y: 105.41
      angle: 0
- libraryNickname: Simulation_SPICE
  entryName: OPAMP
  position:
    x: 181.61
    y: 69.85
    angle: 0
  properties:
  - key: Reference
    value: U1
    position:
      x: 175.26
      y: 63.5
      angle: 0
  - key: Value
    value: Generic OpAmp
    position:
      x: 175.26
      y: 66.04
      angle: 0
- libraryNickname: Simulation_SPICE
  entryName: VDC
  position:
    x: 200.66
    y: 105.41
    angle: 0
  properties:
  - key: Reference
    value: V5
    position:
      x: 204.47
      y: 104.0101
      angle: 0
  - key: Value
    value: '10'
    position:
      x: 204.47
      y: 106.5501
      angle: 0
- libraryNickname: Simulation_SPICE
  entryName: VPULSE
  position:
    x: 113.03
    y: 39.37
    angle: 0
  properties:
  - key: Reference
    value: V3
    position:
      x: 116.84
      y: 36.7001
      angle: 0
  - key: Value
    value: VPULSE
    position:
      x: 116.84
      y: 39.2401
      angle: 0
- libraryNickname: power
  entryName: GND
  position:
    x: 212.09
    y: 81.28
    angle: 0
  properties:
  - key: Reference
    value: '#PWR01'
    position:
      x: 212.09
      y: 87.63
      angle: 0
  - key: Value
    value: GND
    position:
      x: 212.09
      y: 86.36
      angle: 0
- libraryNickname: Simulation_SPICE
  entryName: VDC
  position:
    x: 212.09
    y: 72.39
    angle: 0
  properties:
  - key: Reference
    value: V6
    position:
      x: 215.9
      y: 70.9901
      angle: 0
  - key: Value
    value: '0.5'
    position:
      x: 215.9
      y: 73.5301
      angle: 0
- libraryNickname: Device
  entryName: R
  position:
    x: 196.85
    y: 39.37
    angle: 0
  properties:
  - key: Reference
    value: R2
    position:
      x: 199.39
      y: 38.0999
      angle: 0
  - key: Value
    value: 9.1k
    position:
      x: 199.39
      y: 40.6399
      angle: 0
- libraryNickname: power
  entryName: PWR_FLAG
  position:
    x: 118.11
    y: 57.15
    angle: 0
  properties:
  - key: Reference
    value: '#FLG02'
    position:
      x: 118.11
      y: 55.245
      angle: 0
  - key: Value
    value: PWR_FLAG
    position:
      x: 118.11
      y: 52.07
      angle: 0
- libraryNickname: Simulation_SPICE
  entryName: VDC
  position:
    x: 200.66
    y: 92.71
    angle: 0
  properties:
  - key: Reference
    value: V4
    position:
      x: 204.47
      y: 91.3101
      angle: 0
  - key: Value
    value: '10'
    position:
      x: 204.47
      y: 93.8501
      angle: 0
- libraryNickname: Device
  entryName: C_Small
  position:
    x: 177.8
    y: 80.01
    angle: 270
  properties:
  - key: Reference
    value: C2
    position:
      x: 177.7936
      y: 73.66
      angle: 90
  - key: Value
    value: 10n
    position:
      x: 177.7936
      y: 76.2
      angle: 90
- libraryNickname: Device
  entryName: C
  position:
    x: 175.26
    y: 48.26
    angle: 0
  properties:
  - key: Reference
    value: C2
    position:
      x: 179.07
      y: 46.9899
      angle: 0
  - key: Value
    value: 4.7u
    position:
      x: 179.07
      y: 49.5299
      angle: 0
- libraryNickname: PWM
  entryName: PWM
  position:
    x: 139.7
    y: 88.9
    angle: 0
  properties:
  - key: Reference
    value: A1
    position:
      x: 148.59
      y: 85.9154
      angle: 0
  - key: Value
    value: PWM
    position:
      x: 148.59
      y: 88.4554
      angle: 0
- libraryNickname: Simulation_SPICE
  entryName: VDC
  position:
    x: 144.78
    y: 76.2
    angle: 0
  properties:
  - key: Reference
    value: V3
    position:
      x: 148.59
      y: 74.8001
      angle: 0
  - key: Value
    value: '-0.5'
    position:
      x: 148.59
      y: 77.3401
      angle: 0
- libraryNickname: power
  entryName: PWR_FLAG
  position:
    x: 118.11
    y: 27.94
    angle: 0
  properties:
  - key: Reference
    value: '#FLG01'
    position:
      x: 118.11
      y: 26.035
      angle: 0
  - key: Value
    value: PWR_FLAG
    position:
      x: 118.11
      y: 22.86
      angle: 0
- libraryNickname: Device
  entryName: R
  position:
    x: 181.61
    y: 83.82
    angle: 270
  properties:
  - key: Reference
    value: R2
    position:
      x: 186.69
      y: 82.55
      angle: 90
  - key: Value
    value: 10Meg
    position:
      x: 186.69
      y: 85.09
      angle: 90
- libraryNickname: Device
  entryName: R
  position:
    x: 212.09
    y: 48.26
    angle: 0
  properties:
  - key: Reference
    value: R2
    position:
      x: 214.63
      y: 46.9899
      angle: 0
  - key: Value
    value: 'R=''time >13m ? 20 : 60'''
    position:
      x: 214.63
      y: 49.5299
      angle: 0
- libraryNickname: Device
  entryName: R
  position:
    x: 152.4
    y: 63.5
    angle: 180
  properties:
  - key: Reference
    value: R2
    position:
      x: 154.94
      y: 62.2299
      angle: 0
  - key: Value
    value: 1k
    position:
      x: 154.94
      y: 64.7699
      angle: 0
- libraryNickname: Device
  entryName: R
  position:
    x: 196.85
    y: 50.8
    angle: 0
  properties:
  - key: Reference
    value: R2
    position:
      x: 199.39
      y: 49.5299
      angle: 0
  - key: Value
    value: 1k
    position:
      x: 199.39
      y: 52.0699
      angle: 0
- libraryNickname: Simulation_SPICE
  entryName: D
  position:
    x: 166.37
    y: 27.94
    angle: 0
  properties:
  - key: Reference
    value: D1
    position:
      x: 166.37
      y: 16.51
      angle: 0
  - key: Value
    value: D
    position:
      x: 166.37
      y: 19.05
      angle: 0
- libraryNickname: Device
  entryName: R
  position:
    x: 160.02
    y: 69.85
    angle: 270
  properties:
  - key: Reference
    value: R2
    position:
      x: 160.02
      y: 63.5
      angle: 90
  - key: Value
    value: 20k
    position:
      x: 160.02
      y: 66.04
      angle: 90
- libraryNickname: Device
  entryName: R
  position:
    x: 139.7
    y: 63.5
    angle: 180
  properties:
  - key: Reference
    value: R2
    position:
      x: 134.62
      y: 62.23
      angle: 0
  - key: Value
    value: '1'
    position:
      x: 134.62
      y: 64.77
      angle: 0
- libraryNickname: Device
  entryName: R
  position:
    x: 129.54
    y: 27.94
    angle: 90
  properties:
  - key: Reference
    value: R1
    position:
      x: 129.54
      y: 22.86
      angle: 90
  - key: Value
    value: 2.2m
    position:
      x: 129.54
      y: 25.4
      angle: 90
- libraryNickname: Simulation_SPICE
  entryName: NMOS
  position:
    x: 152.4
    y: 48.26
    angle: 0
  properties:
  - key: Reference
    value: Q1
    position:
      x: 158.75
      y: 46.9899
      angle: 0
  - key: Value
    value: NMOS
    position:
      x: 158.75
      y: 49.5299
      angle: 0
junctions:
- position:
    x: 190.5
    y: 72.39
    angle: 0
- position:
    x: 200.66
    y: 99.06
    angle: 0
- position:
    x: 175.26
    y: 27.94
    angle: 0
- position:
    x: 118.11
    y: 57.15
    angle: 0
- position:
    x: 139.7
    y: 95.25
    angle: 0
- position:
    x: 154.94
    y: 27.94
    angle: 0
- position:
    x: 196.85
    y: 57.15
    angle: 0
- position:
    x: 171.45
    y: 80.01
    angle: 0
- position:
    x: 113.03
    y: 57.15
    angle: 0
- position:
    x: 118.11
    y: 27.94
    angle: 0
- position:
    x: 171.45
    y: 69.85
    angle: 0
- position:
    x: 152.4
    y: 69.85
    angle: 0
- position:
    x: 190.5
    y: 80.01
    angle: 0
- position:
    x: 196.85
    y: 27.94
    angle: 0
- position:
    x: 175.26
    y: 57.15
    angle: 0
- position:
    x: 154.94
    y: 57.15
    angle: 0
- position:
    x: 129.54
    y: 57.15
    angle: 0
- position:
    x: 152.4
    y: 57.15
    angle: 0
- position:
    x: 196.85
    y: 44.45
    angle: 0
noConnects: []
busEntries: []
graphicalItems:
- type: wire
  points:
  - x: 144.78
    y: 81.28
  - x: 144.78
    y: 83.82
- type: wire
  points:
  - x: 196.85
    y: 27.94
  - x: 196.85
    y: 35.56
- type: wire
  points:
  - x: 129.54
    y: 95.25
  - x: 129.54
    y: 57.15
- type: wire
  points:
  - x: 175.26
    y: 27.94
  - x: 196.85
    y: 27.94
- type: wire
  points:
  - x: 139.7
    y: 95.25
  - x: 129.54
    y: 95.25
- type: wire
  points:
  - x: 129.54
    y: 57.15
  - x: 152.4
    y: 57.15
- type: wire
  points:
  - x: 118.11
    y: 57.15
  - x: 129.54
    y: 57.15
- type: wire
  points:
  - x: 191.77
    y: 99.06
  - x: 191.77
    y: 100.33
- type: wire
  points:
  - x: 113.03
    y: 27.94
  - x: 118.11
    y: 27.94
- type: wire
  points:
  - x: 152.4
    y: 57.15
  - x: 152.4
    y: 59.69
- type: wire
  points:
  - x: 175.26
    y: 52.07
  - x: 175.26
    y: 57.15
- type: wire
  points:
  - x: 152.4
    y: 67.31
  - x: 152.4
    y: 69.85
- type: wire
  points:
  - x: 175.26
    y: 27.94
  - x: 175.26
    y: 44.45
- type: wire
  points:
  - x: 113.03
    y: 27.94
  - x: 113.03
    y: 34.29
- type: wire
  points:
  - x: 189.23
    y: 67.31
  - x: 212.09
    y: 67.31
- type: wire
  points:
  - x: 152.4
    y: 57.15
  - x: 154.94
    y: 57.15
- type: wire
  points:
  - x: 144.78
    y: 69.85
  - x: 152.4
    y: 69.85
- type: wire
  points:
  - x: 200.66
    y: 99.06
  - x: 200.66
    y: 100.33
- type: wire
  points:
  - x: 177.8
    y: 83.82
  - x: 171.45
    y: 83.82
- type: wire
  points:
  - x: 144.78
    y: 69.85
  - x: 144.78
    y: 71.12
- type: wire
  points:
  - x: 152.4
    y: 69.85
  - x: 156.21
    y: 69.85
- type: wire
  points:
  - x: 113.03
    y: 57.15
  - x: 113.03
    y: 60.96
- type: wire
  points:
  - x: 171.45
    y: 80.01
  - x: 171.45
    y: 69.85
- type: wire
  points:
  - x: 200.66
    y: 85.09
  - x: 200.66
    y: 87.63
- type: wire
  points:
  - x: 207.01
    y: 72.39
  - x: 201.93
    y: 72.39
- type: wire
  points:
  - x: 139.7
    y: 95.25
  - x: 144.78
    y: 95.25
- type: wire
  points:
  - x: 196.85
    y: 44.45
  - x: 196.85
    y: 46.99
- type: wire
  points:
  - x: 212.09
    y: 27.94
  - x: 212.09
    y: 44.45
- type: wire
  points:
  - x: 196.85
    y: 57.15
  - x: 212.09
    y: 57.15
- type: wire
  points:
  - x: 139.7
    y: 93.98
  - x: 139.7
    y: 95.25
- type: wire
  points:
  - x: 207.01
    y: 44.45
  - x: 207.01
    y: 72.39
- type: wire
  points:
  - x: 200.66
    y: 99.06
  - x: 191.77
    y: 99.06
- type: wire
  points:
  - x: 196.85
    y: 54.61
  - x: 196.85
    y: 57.15
- type: wire
  points:
  - x: 139.7
    y: 67.31
  - x: 139.7
    y: 83.82
- type: wire
  points:
  - x: 154.94
    y: 27.94
  - x: 154.94
    y: 43.18
- type: wire
  points:
  - x: 196.85
    y: 44.45
  - x: 207.01
    y: 44.45
- type: wire
  points:
  - x: 185.42
    y: 83.82
  - x: 190.5
    y: 83.82
- type: wire
  points:
  - x: 189.23
    y: 72.39
  - x: 190.5
    y: 72.39
- type: wire
  points:
  - x: 118.11
    y: 27.94
  - x: 125.73
    y: 27.94
- type: wire
  points:
  - x: 171.45
    y: 69.85
  - x: 173.99
    y: 69.85
- type: wire
  points:
  - x: 184.15
    y: 60.96
  - x: 184.15
    y: 62.23
- type: wire
  points:
  - x: 184.15
    y: 77.47
  - x: 184.15
    y: 78.74
- type: wire
  points:
  - x: 154.94
    y: 27.94
  - x: 162.56
    y: 27.94
- type: wire
  points:
  - x: 163.83
    y: 69.85
  - x: 171.45
    y: 69.85
- type: wire
  points:
  - x: 196.85
    y: 43.18
  - x: 196.85
    y: 44.45
- type: wire
  points:
  - x: 154.94
    y: 53.34
  - x: 154.94
    y: 57.15
- type: wire
  points:
  - x: 190.5
    y: 80.01
  - x: 190.5
    y: 72.39
- type: wire
  points:
  - x: 139.7
    y: 48.26
  - x: 147.32
    y: 48.26
- type: wire
  points:
  - x: 200.66
    y: 110.49
  - x: 200.66
    y: 113.03
- type: wire
  points:
  - x: 143.51
    y: 27.94
  - x: 154.94
    y: 27.94
- type: wire
  points:
  - x: 144.78
    y: 93.98
  - x: 144.78
    y: 95.25
- type: wire
  points:
  - x: 171.45
    y: 80.01
  - x: 175.26
    y: 80.01
- type: wire
  points:
  - x: 212.09
    y: 77.47
  - x: 212.09
    y: 81.28
- type: wire
  points:
  - x: 196.85
    y: 27.94
  - x: 212.09
    y: 27.94
- type: wire
  points:
  - x: 154.94
    y: 57.15
  - x: 175.26
    y: 57.15
- type: wire
  points:
  - x: 212.09
    y: 57.15
  - x: 212.09
    y: 52.07
- type: wire
  points:
  - x: 133.35
    y: 27.94
  - x: 135.89
    y: 27.94
- type: wire
  points:
  - x: 180.34
    y: 80.01
  - x: 190.5
    y: 80.01
- type: wire
  points:
  - x: 113.03
    y: 57.15
  - x: 113.03
    y: 44.45
- type: wire
  points:
  - x: 171.45
    y: 83.82
  - x: 171.45
    y: 80.01
- type: wire
  points:
  - x: 139.7
    y: 48.26
  - x: 139.7
    y: 59.69
- type: wire
  points:
  - x: 170.18
    y: 27.94
  - x: 175.26
    y: 27.94
- type: wire
  points:
  - x: 200.66
    y: 97.79
  - x: 200.66
    y: 99.06
- type: wire
  points:
  - x: 175.26
    y: 57.15
  - x: 196.85
    y: 57.15
- type: wire
  points:
  - x: 194.31
    y: 72.39
  - x: 190.5
    y: 72.39
- type: wire
  points:
  - x: 190.5
    y: 83.82
  - x: 190.5
    y: 80.01
- type: wire
  points:
  - x: 113.03
    y: 57.15
  - x: 118.11
    y: 57.15
globalLabels: []
sheetInstances:
- instancePath: /
  page: '1'
