v1, targetting vdd

This commit is contained in:
Triss 2021-12-22 04:52:35 +01:00
commit d51f1f36e6
4 changed files with 632 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*-cache*
sym-lib-table
*-bak

1
glitcher.kicad_pcb Normal file
View File

@ -0,0 +1 @@
(kicad_pcb (version 4) (host kicad "dummy file") )

43
glitcher.pro Normal file
View File

@ -0,0 +1,43 @@
update=ma 06 dec 2021 23:35:12
version=1
last_client=kicad
[general]
version=1
RootSch=
BoardNm=
[pcbnew]
version=1
LastNetListRead=
UseCmpFile=1
PadDrill=0.600000000000
PadDrillOvalY=0.600000000000
PadSizeH=1.500000000000
PadSizeV=1.500000000000
PcbTextSizeV=1.500000000000
PcbTextSizeH=1.500000000000
PcbTextThickness=0.300000000000
ModuleTextSizeV=1.000000000000
ModuleTextSizeH=1.000000000000
ModuleTextSizeThickness=0.150000000000
SolderMaskClearance=0.000000000000
SolderMaskMinWidth=0.000000000000
DrawSegmentWidth=0.200000000000
BoardOutlineThickness=0.100000000000
ModuleOutlineThickness=0.150000000000
[cvpcb]
version=1
NetIExt=net
[eeschema]
version=1
LibDir=
[eeschema/libraries]
[schematic_editor]
version=1
PageLayoutDescrFile=
PlotDirectoryName=
SubpartIdSeparator=0
SubpartFirstId=65
NetFmtName=
SpiceAjustPassiveValues=0
LabSize=50
ERC_TestSimilarLabels=1

585
glitcher.sch Normal file
View File

@ -0,0 +1,585 @@
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 Device:C C1
U 1 1 61AF08B8
P 6250 4450
F 0 "C1" H 6365 4496 50 0000 L CNN
F 1 "0.47..1 uF" H 6365 4405 50 0000 L CNN
F 2 "" H 6288 4300 50 0001 C CNN
F 3 "~" H 6250 4450 50 0001 C CNN
1 6250 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 4500
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 4950 2600 4950
Wire Wire Line
1800 5050 1900 5050
Wire Wire Line
1900 4850 1750 4850
Text Label 2550 4950 0 50 ~ 0
Vdd_GLITCH
Wire Wire Line
6250 4650 6250 4600
Wire Wire Line
6250 4650 6800 4650
Wire Wire Line
5750 4250 6800 4250
$Comp
L 4xxx:4053 U3
U 1 1 61C6D280
P 3850 4850
F 0 "U3" H 3850 5931 50 0000 C CNN
F 1 "MAX4619CPE" H 3850 5840 50 0000 C CNN
F 2 "Package_DIP:DIP-16_W7.62mm" H 3850 4850 50 0001 C CNN
F 3 "http://www.intersil.com/content/dam/Intersil/documents/cd40/cd4051bms-52bms-53bms.pdf" H 3850 4850 50 0001 C CNN
1 3850 4850
1 0 0 -1
$EndComp
Wire Wire Line
6800 4850 6700 4850
Wire Wire Line
2600 4950 3000 4950
Connection ~ 2600 4950
Wire Wire Line
8500 5300 7650 5300
Wire Wire Line
7650 5300 7650 6200
Wire Wire Line
7650 6200 3200 6200
Wire Wire Line
3200 6200 3200 5450
Wire Wire Line
3200 5450 3350 5450
Text Label 8000 5300 0 50 ~ 0
GLITCH_OUT
Wire Wire Line
6700 4950 6700 4850
Connection ~ 6700 4850
Wire Wire Line
6700 4850 4450 4850
$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 61CB2E8C
P 5950 4600
F 0 "#PWR?" H 5950 4350 50 0001 C CNN
F 1 "GND" H 5955 4427 50 0000 C CNN
F 2 "" H 5950 4600 50 0001 C CNN
F 3 "" H 5950 4600 50 0001 C CNN
1 5950 4600
1 0 0 -1
$EndComp
Wire Wire Line
6800 4750 6100 4750
Wire Wire Line
6100 4750 6100 4500
Wire Wire Line
6100 4500 5950 4500
Wire Wire Line
5950 4500 5950 4600
Wire Wire Line
6250 4300 5950 4300
Wire Wire Line
5950 4300 5950 4500
Connection ~ 5950 4500
$Comp
L power:GND #PWR?
U 1 1 61CB7E43
P 3900 5850
F 0 "#PWR?" H 3900 5600 50 0001 C CNN
F 1 "GND" H 3905 5677 50 0000 C CNN
F 2 "" H 3900 5850 50 0001 C CNN
F 3 "" H 3900 5850 50 0001 C CNN
1 3900 5850
1 0 0 -1
$EndComp
Wire Wire Line
3850 5750 3850 5800
Wire Wire Line
3850 5800 3900 5800
Wire Wire Line
3950 5800 3950 5750
Wire Wire Line
3900 5850 3900 5800
Connection ~ 3900 5800
Wire Wire Line
3900 5800 3950 5800
$Comp
L power:GND #PWR?
U 1 1 61CBEA1A
P 3200 5150
F 0 "#PWR?" H 3200 4900 50 0001 C CNN
F 1 "GND" V 3205 5022 50 0000 R CNN
F 2 "" H 3200 5150 50 0001 C CNN
F 3 "" H 3200 5150 50 0001 C CNN
1 3200 5150
0 1 1 0
$EndComp
Wire Wire Line
3350 5150 3200 5150
Wire Wire Line
3350 5350 3200 5350
Wire Wire Line
3200 5350 3200 5450
Connection ~ 3200 5450
Wire Wire Line
3350 5250 3200 5250
Wire Wire Line
3200 5250 3200 5350
Connection ~ 3200 5350
Wire Wire Line
4350 4250 4450 4250
Wire Wire Line
4450 4250 4450 4550
Connection ~ 4450 4850
Wire Wire Line
4450 4850 4350 4850
Wire Wire Line
4350 4550 4450 4550
Connection ~ 4450 4550
Wire Wire Line
4450 4550 4450 4850
Wire Wire Line
3000 4650 3350 4650
Connection ~ 3000 4950
Wire Wire Line
3000 4950 3350 4950
Wire Wire Line
3350 4350 3000 4350
Wire Wire Line
3000 4350 3000 4650
Connection ~ 3000 4650
Wire Wire Line
3000 4650 3000 4950
Wire Wire Line
3300 3700 3300 3900
Wire Wire Line
3300 4250 3350 4250
Wire Wire Line
3850 3950 3850 3900
Wire Wire Line
3850 3900 3300 3900
Connection ~ 3300 3900
Wire Wire Line
3300 3900 3300 4250
Wire Wire Line
3300 4250 3300 4550
Wire Wire Line
3300 4550 3350 4550
Connection ~ 3300 4250
Wire Wire Line
3350 4850 3300 4850
Wire Wire Line
3300 4850 3300 4550
Connection ~ 3300 4550
$Comp
L Amplifier_Operational:LM358 U4
U 1 1 61AE8DAA
P 2200 4950
F 0 "U4" H 2200 5317 50 0000 C CNN
F 1 "AS358P-E1" H 2200 5226 50 0000 C CNN
F 2 "Package_DIP:DIP-8_W7.62mm" H 2200 4950 50 0001 C CNN
F 3 "http://www.ti.com/lit/ds/symlink/lm2904-n.pdf" H 2200 4950 50 0001 C CNN
1 2200 4950
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
6200 4500 6200 5650
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 5800 5800 0 50 ~ 0
this is the REGC cap,\nRL78 needs it to work
Text Notes 4200 5350 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)
Text Notes 6850 5750 0 50 ~ 0
bypass/decoupling\ncap for testing how\ngood the glitching\nis. tweak value, but\nDO NOT PLACE\nwhen beginning
$Comp
L power:GND #PWR?
U 1 1 61CC6698
P 6700 5350
F 0 "#PWR?" H 6700 5100 50 0001 C CNN
F 1 "GND" H 6705 5177 50 0000 C CNN
F 2 "" H 6700 5350 50 0001 C CNN
F 3 "" H 6700 5350 50 0001 C CNN
1 6700 5350
1 0 0 -1
$EndComp
Wire Wire Line
6700 5250 6700 5350
$Comp
L Device:C C2
U 1 1 61C24226
P 6700 5100
F 0 "C2" H 6815 5146 50 0000 L CNN
F 1 "Ctest, DNP" H 6815 5055 50 0000 L CNN
F 2 "" H 6738 4950 50 0001 C CNN
F 3 "~" H 6700 5100 50 0001 C CNN
1 6700 5100
1 0 0 -1
$EndComp
Text Label 4550 4850 0 50 ~ 0
Vdd_TO_RL78
Text Notes 1550 5950 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
Wire Wire Line
1800 5600 1800 5050
Wire Wire Line
2600 4950 2600 5600
Wire Wire Line
2600 5600 1800 5600
Wire Wire Line
2100 5350 2100 5250
$Comp
L power:GND #PWR?
U 1 1 61D135B5
P 2100 5350
F 0 "#PWR?" H 2100 5100 50 0001 C CNN
F 1 "GND" H 2105 5177 50 0000 C CNN
F 2 "" H 2100 5350 50 0001 C CNN
F 3 "" H 2100 5350 50 0001 C CNN
1 2100 5350
1 0 0 -1
$EndComp
$Comp
L Amplifier_Operational:LM358 U4
U 3 1 61AEA01B
P 2200 4950
F 0 "U4" H 2158 4950 50 0001 L CNN
F 1 "AS358P-E1" H 2158 4905 50 0001 L CNN
F 2 "Package_DIP:DIP-8_W7.62mm" H 2200 4950 50 0001 C CNN
F 3 "http://www.ti.com/lit/ds/symlink/lm2904-n.pdf" H 2200 4950 50 0001 C CNN
3 2200 4950
1 0 0 -1
$EndComp
Connection ~ 2100 5250
Connection ~ 2100 4550
Wire Wire Line
2100 4550 2100 4450
Wire Wire Line
2100 4650 2100 4550
Text Notes 600 5200 0 50 ~ 0
trimpot to select\n"low"/glitch voltage\n(regular voltage is 3.3V)
Wire Wire Line
1600 5250 2100 5250
Wire Wire Line
1600 5000 1600 5250
Wire Wire Line
1600 4550 1600 4700
Wire Wire Line
2100 4550 1600 4550
$Comp
L Device:R_POT_TRIM RV1
U 1 1 61AED5E8
P 1600 4850
F 0 "RV1" H 1530 4896 50 0000 R CNN
F 1 "R_POT_TRIM" H 1530 4805 50 0000 R CNN
F 2 "" H 1600 4850 50 0001 C CNN
F 3 "~" H 1600 4850 50 0001 C CNN
1 1600 4850
1 0 0 -1
$EndComp
$Comp
L power:+3.3V #PWR?
U 1 1 61D0B772
P 2100 4450
F 0 "#PWR?" H 2100 4300 50 0001 C CNN
F 1 "+3.3V" H 2115 4623 50 0000 C CNN
F 2 "" H 2100 4450 50 0001 C CNN
F 3 "" H 2100 4450 50 0001 C CNN
1 2100 4450
1 0 0 -1
$EndComp
$Comp
L power:+3.3V #PWR?
U 1 1 61CFB76A
P 3300 3700
F 0 "#PWR?" H 3300 3550 50 0001 C CNN
F 1 "+3.3V" H 3315 3873 50 0000 C CNN
F 2 "" H 3300 3700 50 0001 C CNN
F 3 "" H 3300 3700 50 0001 C CNN
1 3300 3700
1 0 0 -1
$EndComp
$EndSCHEMATC