EESchema Schematic File Version 4 EELAYER 30 0 EELAYER END $Descr A4 11693 8268 encoding utf-8 Sheet 1 1 Title "" Date "" Rev "" Comp "" Comment1 "" Comment2 "" Comment3 "" Comment4 "" $EndDescr $Comp L Device:D D2 U 1 1 61AEEF48 P 6000 3950 F 0 "D2" H 6000 4167 50 0000 C CNN F 1 "1N4148" H 6000 4076 50 0000 C CNN F 2 "" H 6000 3950 50 0001 C CNN F 3 "~" H 6000 3950 50 0001 C CNN 1 6000 3950 1 0 0 -1 $EndComp $Comp L Device:D D1 U 1 1 61AEF64D P 5500 4450 F 0 "D1" H 5500 4667 50 0000 C CNN F 1 "1N4001" H 5500 4576 50 0000 C CNN F 2 "" H 5500 4450 50 0001 C CNN F 3 "~" H 5500 4450 50 0001 C CNN 1 5500 4450 1 0 0 -1 $EndComp $Comp L misc-mcus:R5F1054AASP U2 U 1 1 61AF17B2 P 7300 4500 F 0 "U2" H 7300 5115 50 0000 C CNN F 1 "R5F1054AASP" H 7300 5024 50 0000 C CNN F 2 "Package_SO:SSOP-16_4.4x5.2mm_P0.65mm" H 7300 4000 50 0001 C CNN F 3 "https://www.renesas.com/us/en/document/dst/rl78g11-datasheet-rev240?language=en&r=1054276" H 7100 4050 50 0001 C CNN 1 7300 4500 1 0 0 -1 $EndComp $Comp L MCU_RaspberryPi_and_Boards:Pico U1 U 1 1 61AF49FE P 9200 4350 F 0 "U1" H 9200 5565 50 0000 C CNN F 1 "Pico" H 9200 5474 50 0000 C CNN F 2 "RPi_Pico:RPi_Pico_SMD_TH" V 9200 4350 50 0001 C CNN F 3 "" H 9200 4350 50 0001 C CNN 1 9200 4350 1 0 0 -1 $EndComp NoConn ~ 9900 3500 NoConn ~ 9900 3400 NoConn ~ 9900 3700 NoConn ~ 9900 3900 NoConn ~ 9900 5000 NoConn ~ 9900 4900 NoConn ~ 9900 4800 NoConn ~ 9900 4700 NoConn ~ 9900 4300 NoConn ~ 9900 4200 NoConn ~ 9900 4000 NoConn ~ 8500 3700 NoConn ~ 8500 3800 NoConn ~ 8500 3900 NoConn ~ 8500 4000 NoConn ~ 8500 4200 NoConn ~ 8500 4300 NoConn ~ 8500 4400 NoConn ~ 8500 4500 NoConn ~ 8500 4700 NoConn ~ 8500 4800 NoConn ~ 8500 4900 NoConn ~ 8500 5000 NoConn ~ 9100 5500 NoConn ~ 9300 5500 NoConn ~ 7800 4850 NoConn ~ 7800 4750 NoConn ~ 7800 4650 NoConn ~ 7800 4550 NoConn ~ 7800 4450 NoConn ~ 7800 4350 NoConn ~ 7800 4250 NoConn ~ 6800 4550 NoConn ~ 6800 4450 NoConn ~ 6800 4350 Wire Wire Line 7800 4150 8100 4150 Wire Wire Line 8100 4150 8100 5200 Wire Wire Line 6150 3950 6200 3950 Wire Wire Line 6200 3950 6200 4150 Wire Wire Line 5850 3950 5750 3950 Connection ~ 6200 4150 Wire Wire Line 5750 4150 6200 4150 Text GLabel 5250 4450 0 50 Input ~ 0 nRESET_OUT Text GLabel 5750 4150 0 50 Input ~ 0 TOOL0_RX Text GLabel 5750 3950 0 50 Input ~ 0 TOOL0_TX Wire Wire Line 5350 4450 5250 4450 Wire Wire Line 5750 4250 5750 4450 Wire Wire Line 5750 4450 5650 4450 Text Label 5800 4250 0 50 ~ 0 nRST Text Label 7850 4150 0 50 ~ 0 P2.0 Text Label 8150 5200 0 50 ~ 0 TRIG_IN Wire Wire Line 8100 5200 8500 5200 Text GLabel 10000 5300 2 50 Input ~ 0 nRESET_OUT Wire Wire Line 9900 5300 10000 5300 Wire Wire Line 9900 5200 10000 5200 Text GLabel 10000 5200 2 50 Input ~ 0 TOOL0 Wire Wire Line 2500 4750 2600 4750 Wire Wire Line 1800 4850 1900 4850 Wire Wire Line 1900 4650 1750 4650 Text Label 2650 4750 0 50 ~ 0 Vreg_GLITCH Wire Wire Line 5750 4250 6800 4250 $Comp L 4xxx:4053 U3 U 1 1 61C6D280 P 3850 4950 F 0 "U3" H 3850 4950 50 0000 C CNN F 1 "MAX4619CPE" H 3850 4750 50 0000 C CNN F 2 "Package_DIP:DIP-16_W7.62mm" H 3850 4950 50 0001 C CNN F 3 "http://www.intersil.com/content/dam/Intersil/documents/cd40/cd4051bms-52bms-53bms.pdf" H 3850 4950 50 0001 C CNN 1 3850 4950 1 0 0 -1 $EndComp Connection ~ 2600 4750 Wire Wire Line 8500 5300 7650 5300 Wire Wire Line 7650 5300 7650 6300 Wire Wire Line 7650 6300 3200 6300 Wire Wire Line 3200 6300 3200 5550 Wire Wire Line 3200 5550 3350 5550 Text Label 8000 5300 0 50 ~ 0 GLITCH_OUT $Comp L power:GND #PWR? U 1 1 61C9B5BE P 9200 5650 F 0 "#PWR?" H 9200 5400 50 0001 C CNN F 1 "GND" H 9205 5477 50 0000 C CNN F 2 "" H 9200 5650 50 0001 C CNN F 3 "" H 9200 5650 50 0001 C CNN 1 9200 5650 1 0 0 -1 $EndComp Wire Wire Line 9200 5500 9200 5650 $Comp L power:GND #PWR? U 1 1 61C9DFBB P 10600 4350 F 0 "#PWR?" H 10600 4100 50 0001 C CNN F 1 "GND" V 10605 4222 50 0000 R CNN F 2 "" H 10600 4350 50 0001 C CNN F 3 "" H 10600 4350 50 0001 C CNN 1 10600 4350 0 -1 -1 0 $EndComp Wire Wire Line 9900 3600 10500 3600 Wire Wire Line 10500 4350 10600 4350 Wire Wire Line 9900 4600 10500 4600 Wire Wire Line 10500 4600 10500 4350 Wire Wire Line 9900 5100 10500 5100 Wire Wire Line 10500 5100 10500 4600 Connection ~ 10500 4600 Wire Wire Line 9900 4100 10500 4100 Wire Wire Line 10500 3600 10500 4100 Connection ~ 10500 4100 NoConn ~ 9900 4400 $Comp L power:+3.3V #PWR? U 1 1 61CA3F60 P 10050 3800 F 0 "#PWR?" H 10050 3650 50 0001 C CNN F 1 "+3.3V" V 10065 3928 50 0000 L CNN F 2 "" H 10050 3800 50 0001 C CNN F 3 "" H 10050 3800 50 0001 C CNN 1 10050 3800 0 1 1 0 $EndComp Wire Wire Line 10050 3800 9900 3800 Connection ~ 10500 4350 Wire Wire Line 10500 4100 10500 4350 Wire Wire Line 8500 3400 8400 3400 Wire Wire Line 8500 3500 8400 3500 Text GLabel 8400 3400 0 50 Input ~ 0 PICO_STDIO_UART_TX Text GLabel 8400 3500 0 50 Input ~ 0 PICO_STDIO_UART_RX $Comp L power:GND #PWR? U 1 1 61CAD843 P 8150 3850 F 0 "#PWR?" H 8150 3600 50 0001 C CNN F 1 "GND" V 8155 3722 50 0000 R CNN F 2 "" H 8150 3850 50 0001 C CNN F 3 "" H 8150 3850 50 0001 C CNN 1 8150 3850 0 1 1 0 $EndComp Wire Wire Line 8500 3600 8350 3600 Wire Wire Line 8350 3600 8350 3850 Wire Wire Line 8350 4100 8500 4100 Wire Wire Line 8500 4600 8350 4600 Wire Wire Line 8350 4600 8350 4100 Connection ~ 8350 4100 Wire Wire Line 8500 5100 8350 5100 Wire Wire Line 8350 5100 8350 4600 Connection ~ 8350 4600 Wire Wire Line 8150 3850 8350 3850 Connection ~ 8350 3850 Wire Wire Line 8350 3850 8350 4100 $Comp L power:GND #PWR? U 1 1 61CB7E43 P 3900 5950 F 0 "#PWR?" H 3900 5700 50 0001 C CNN F 1 "GND" H 3905 5777 50 0000 C CNN F 2 "" H 3900 5950 50 0001 C CNN F 3 "" H 3900 5950 50 0001 C CNN 1 3900 5950 1 0 0 -1 $EndComp Wire Wire Line 3850 5850 3850 5900 Wire Wire Line 3850 5900 3900 5900 Wire Wire Line 3950 5600 3950 5550 Wire Wire Line 3900 5950 3900 5900 Connection ~ 3900 5900 Wire Wire Line 3900 5900 3950 5900 $Comp L power:GND #PWR? U 1 1 61CBEA1A P 3200 5250 F 0 "#PWR?" H 3200 5000 50 0001 C CNN F 1 "GND" V 3205 5122 50 0000 R CNN F 2 "" H 3200 5250 50 0001 C CNN F 3 "" H 3200 5250 50 0001 C CNN 1 3200 5250 0 1 1 0 $EndComp Wire Wire Line 3350 5250 3200 5250 Wire Wire Line 3350 5450 3200 5450 Wire Wire Line 3200 5450 3200 5550 Connection ~ 3200 5550 Wire Wire Line 3350 5350 3200 5350 Wire Wire Line 3200 5350 3200 5450 Connection ~ 3200 5450 $Comp L Amplifier_Operational:LM358 U4 U 1 1 61AE8DAA P 2200 4750 F 0 "U4" H 2200 5117 50 0000 C CNN F 1 "AS358P-E1" H 2200 5026 50 0000 C CNN F 2 "Package_DIP:DIP-8_W7.62mm" H 2200 4750 50 0001 C CNN F 3 "http://www.ti.com/lit/ds/symlink/lm2904-n.pdf" H 2200 4750 50 0001 C CNN 1 2200 4750 1 0 0 -1 $EndComp Connection ~ 6250 4150 Wire Wire Line 6200 4150 6250 4150 Wire Wire Line 6250 4150 6800 4150 Wire Wire Line 6250 3600 6250 3500 $Comp L power:+3.3V #PWR? U 1 1 61CF17E5 P 6250 3500 F 0 "#PWR?" H 6250 3350 50 0001 C CNN F 1 "+3.3V" H 6265 3673 50 0000 C CNN F 2 "" H 6250 3500 50 0001 C CNN F 3 "" H 6250 3500 50 0001 C CNN 1 6250 3500 1 0 0 -1 $EndComp Wire Wire Line 6250 3900 6250 4150 $Comp L Device:R R1 U 1 1 61AEFF98 P 6250 3750 F 0 "R1" H 6320 3796 50 0000 L CNN F 1 "47k" H 6320 3705 50 0000 L CNN F 2 "" V 6180 3750 50 0001 C CNN F 3 "~" H 6250 3750 50 0001 C CNN 1 6250 3750 1 0 0 -1 $EndComp Text Label 6300 4150 0 50 ~ 0 TOOL0 Text Notes 6350 3600 0 50 ~ 0 TOOL0 needs a pullup, it\ngoes low when glitching Text Notes 7550 3300 0 50 ~ 0 UART stdio for debug Text Notes 8050 3000 0 50 ~ 0 use a Pico to control the glitching process: monitor TRIG_IN for\nwhen glitching should happen, use GLITCH_OUT to do a glitch,\nand use TOOL0 and ~RESET~ to control the MCU Text Notes 10550 3900 0 50 ~ 0 Pico is also the\npower source\nfor everything Wire Notes Line 5150 4250 5150 3850 Wire Notes Line 5450 4250 5150 4250 Wire Notes Line 6000 3700 6000 3550 Wire Notes Line 6000 3550 5600 3550 Text Notes 4900 3850 0 50 ~ 0 protection diodes to\navoid short-circuits.\nuse TOOL_TX/RX if\nyou use a normal\nUART, or use TOOL0\ndirectly when you\nhave a specific impl Text Notes 4200 5600 0 50 ~ 0 use MAX4619CPE to select between\nnormal & low/glitch voltage. use 3\ncircuits at once to minimize the\nparasitic resistance (I don't have\nenough wires for that so I didn't) $Comp L Amplifier_Operational:LM358 U4 U 3 1 61AEA01B P 2200 3600 F 0 "U4" H 2158 3600 50 0001 L CNN F 1 "AS358P-E1" H 2158 3555 50 0001 L CNN F 2 "Package_DIP:DIP-8_W7.62mm" H 2200 3600 50 0001 C CNN F 3 "http://www.ti.com/lit/ds/symlink/lm2904-n.pdf" H 2200 3600 50 0001 C CNN 3 2200 3600 1 0 0 -1 $EndComp $Comp L power:GND #PWR? U 1 1 61D135B5 P 2100 4000 F 0 "#PWR?" H 2100 3750 50 0001 C CNN F 1 "GND" H 2105 3827 50 0000 C CNN F 2 "" H 2100 4000 50 0001 C CNN F 3 "" H 2100 4000 50 0001 C CNN 1 2100 4000 1 0 0 -1 $EndComp Wire Wire Line 2100 4000 2100 3900 $Comp L Device:R_POT_TRIM RV1 U 1 1 61AED5E8 P 1600 4650 F 0 "RV1" H 1530 4696 50 0000 R CNN F 1 "R_POT_TRIM" H 1530 4605 50 0000 R CNN F 2 "" H 1600 4650 50 0001 C CNN F 3 "~" H 1600 4650 50 0001 C CNN 1 1600 4650 1 0 0 -1 $EndComp Wire Wire Line 1600 4800 1600 5050 Text Notes 600 5000 0 50 ~ 0 trimpot to select\n"low"/glitch voltage\n(regular voltage is 3.3V) $Comp L Amplifier_Operational:LM358 U4 U 2 1 61B23D3D P 2200 3600 F 0 "U4" H 2350 3850 50 0000 C CNN F 1 "AS358P-E1" H 2400 3750 50 0000 C CNN F 2 "" H 2200 3600 50 0001 C CNN F 3 "http://www.ti.com/lit/ds/symlink/lm2904-n.pdf" H 2200 3600 50 0001 C CNN 2 2200 3600 1 0 0 -1 $EndComp Wire Wire Line 2500 3600 2600 3600 Wire Wire Line 1850 3700 1900 3700 Wire Wire Line 2600 5050 1800 5050 Wire Wire Line 2600 4750 2600 5050 Wire Wire Line 1800 5050 1800 4850 Text Notes 1600 5600 0 50 ~ 0 opamp needed: my trimpot is 10k,\n3.3V/10k = 0.3mA to MCU...\nopamp in buffer mode fixes this\n& gives MCU all current it wants Text Label 4550 4650 0 50 ~ 0 Vreg_TO_RL78 Wire Wire Line 2100 3300 2100 3200 $Comp L power:+3.3V #PWR? U 1 1 61BB3DF3 P 2100 3200 F 0 "#PWR?" H 2100 3050 50 0001 C CNN F 1 "+3.3V" H 2115 3373 50 0000 C CNN F 2 "" H 2100 3200 50 0001 C CNN F 3 "" H 2100 3200 50 0001 C CNN 1 2100 3200 1 0 0 -1 $EndComp $Comp L power:GND #PWR? U 1 1 61BDCD61 P 6150 4750 F 0 "#PWR?" H 6150 4500 50 0001 C CNN F 1 "GND" V 6155 4622 50 0000 R CNN F 2 "" H 6150 4750 50 0001 C CNN F 3 "" H 6150 4750 50 0001 C CNN 1 6150 4750 0 1 1 0 $EndComp Wire Wire Line 6150 4750 6300 4750 Wire Wire Line 2600 4750 3350 4750 Wire Wire Line 4350 4950 5500 4950 Wire Wire Line 5500 4950 5500 4850 Wire Wire Line 5500 4850 6800 4850 $Comp L power:GND #PWR? U 1 1 61C4209C P 3200 5050 F 0 "#PWR?" H 3200 4800 50 0001 C CNN F 1 "GND" V 3205 4922 50 0000 R CNN F 2 "" H 3200 5050 50 0001 C CNN F 3 "" H 3200 5050 50 0001 C CNN 1 3200 5050 0 1 1 0 $EndComp Wire Wire Line 3350 5050 3200 5050 $Comp L power:GND #PWR? U 1 1 61C483D6 P 1600 5050 F 0 "#PWR?" H 1600 4800 50 0001 C CNN F 1 "GND" H 1605 4877 50 0000 C CNN F 2 "" H 1600 5050 50 0001 C CNN F 3 "" H 1600 5050 50 0001 C CNN 1 1600 5050 1 0 0 -1 $EndComp Text Label 2650 4650 0 50 ~ 0 Vreg Wire Wire Line 3350 4650 2600 4650 Wire Wire Line 2600 4650 2600 4300 $Comp L power:+3.3V #PWR? U 1 1 61B24B40 P 3200 4950 F 0 "#PWR?" H 3200 4800 50 0001 C CNN F 1 "+3.3V" V 3215 5078 50 0000 L CNN F 2 "" H 3200 4950 50 0001 C CNN F 3 "" H 3200 4950 50 0001 C CNN 1 3200 4950 0 -1 -1 0 $EndComp Wire Wire Line 3200 4950 3350 4950 Text Label 4550 4950 0 50 ~ 0 Vdd_TO_MCU Wire Wire Line 3850 4050 3850 3950 $Comp L power:+3.3V #PWR? U 1 1 61B376F1 P 3850 3950 F 0 "#PWR?" H 3850 3800 50 0001 C CNN F 1 "+3.3V" H 3865 4123 50 0000 C CNN F 2 "" H 3850 3950 50 0001 C CNN F 3 "" H 3850 3950 50 0001 C CNN 1 3850 3950 1 0 0 -1 $EndComp NoConn ~ 3350 4450 NoConn ~ 3350 4350 NoConn ~ 4350 4350 Wire Wire Line 1600 4300 2600 4300 Wire Wire Line 1600 4300 1600 4500 $Comp L Device:C C1 U 1 1 61B6379E P 1450 3700 F 0 "C1" H 1565 3746 50 0000 L CNN F 1 "100uF" H 1565 3655 50 0000 L CNN F 2 "" H 1488 3550 50 0001 C CNN F 3 "~" H 1450 3700 50 0001 C CNN 1 1450 3700 1 0 0 -1 $EndComp Wire Wire Line 1450 3550 1450 3500 Wire Wire Line 1450 3500 1900 3500 $Comp L power:GND #PWR? U 1 1 61B6DAE2 P 1450 3950 F 0 "#PWR?" H 1450 3700 50 0001 C CNN F 1 "GND" H 1455 3777 50 0000 C CNN F 2 "" H 1450 3950 50 0001 C CNN F 3 "" H 1450 3950 50 0001 C CNN 1 1450 3950 1 0 0 -1 $EndComp Wire Wire Line 1450 3950 1450 3850 Wire Wire Line 1450 3100 1300 3100 Text GLabel 1300 3100 0 50 Input ~ 0 PWM_Vreg Wire Wire Line 2600 3600 2600 4250 Connection ~ 2600 4300 Wire Wire Line 1850 4250 2600 4250 Wire Wire Line 1850 3700 1850 4250 Connection ~ 2600 4250 Wire Wire Line 2600 4250 2600 4300 Text GLabel 10000 4500 2 50 Input ~ 0 PWM_Vreg Wire Wire Line 10000 4500 9900 4500 $Comp L Device:R R2 U 1 1 61C0A2AC P 1450 3300 F 0 "R2" H 1520 3346 50 0000 L CNN F 1 "47Ω" H 1520 3255 50 0000 L CNN F 2 "" V 1380 3300 50 0001 C CNN F 3 "~" H 1450 3300 50 0001 C CNN 1 1450 3300 1 0 0 -1 $EndComp Wire Wire Line 1450 3500 1450 3450 Connection ~ 1450 3500 Wire Wire Line 1450 3150 1450 3100 Text Notes 600 3750 0 50 ~ 0 Filter incoming\nPWM signal used\nfor Vreg generation.\nVreg=3V3*DC\nf_RC=1/(2pi*R*C)\n =34 Hz $Comp L Device:C C2 U 1 1 61C30DBD P 6300 4550 F 0 "C2" H 6415 4596 50 0000 L CNN F 1 "1uF" H 6415 4505 50 0000 L CNN F 2 "" H 6338 4400 50 0001 C CNN F 3 "~" H 6300 4550 50 0001 C CNN 1 6300 4550 1 0 0 -1 $EndComp Wire Wire Line 6300 4700 6300 4750 Connection ~ 6300 4750 Wire Wire Line 6300 4750 6800 4750 Wire Wire Line 6800 4650 6650 4650 Wire Wire Line 6650 4650 6650 4350 Wire Wire Line 6650 4350 6300 4350 Wire Wire Line 6300 4350 6300 4400 Wire Wire Line 6300 4350 5850 4350 Wire Wire Line 5850 4350 5850 4650 Wire Wire Line 5850 4650 4350 4650 Connection ~ 6300 4350 $EndSCHEMATC