Professional Documents
Culture Documents
Osciloscopio GameBoy PDF
Osciloscopio GameBoy PDF
Osciloscopio GameBoy PDF
GBDSO
Gameboy Digital Sampling Oscilloscope (1)
The attraction of using a mass pro- port. The PC software is MS Win- entire screen of data is captured before it is
duced console soon becomes clear dows 95 compatible. displayed (standard mode). The number of
when the time and cost involved in The oscilloscope has two input samples captured per scan may be set to
producing a general purpose portable channels CHA/B, with independent either 240 or 600 points per channel, allowing
instrument with processor, LCD dis- software-controlled variable-gain the visible screen window to be moved rela-
play and user interface, not to men- amplifiers. The inputs have a 1-MΩ tive to the initial trigger. Sampling of the two
tion the moulded case, sound system input impedance so they can be con- input channels occurs simultaneously, except
and serial port, are considered. nected directly to 1:1 or 10:1 scope for the 10 and 5 µS/DIV ranges, when the
probes or to an audio jack lead. (lim- channels are sampled on alternate traces rel-
The Gameboy itations on size made BNC type con- ative to the trigger (alternate mode). CHA
nectors impractical). The amplifiers may also be saved as an on-screen reference,
Oscilloscope can be AC or DC coupled by means thus allowing a total of three traces to be dis-
The GameBoy ‘GB’ digital sampling of a switch. The variable-gain ampli- played at once.
oscilloscope ‘GBDSO’ converts a fiers give an input sensitivity of
GBpocket or GBcolour into a multi- 50 mV to 10 V per division with 10:1 Gateway: the ROM
purpose test instrument which probes and an input bandwidth of
should prove invaluable to the hobby DC to 100 kHz.
cartridge interface
designer. Design of GBDSO posed The displayed trace has two All the signals required for the oscilloscope
many contrasting requirements: high modes of operation. For low frequen- are available on the external ROM cartridge
speed, low power, low cost, small cies (100 s to 100 ms/DIV), a chart slot, so no modifications need be made to the
size and versatility. In order to sim- recorder style of display is produced GB console itself.
plify the hardware as much as pos- with the trace scrolling across from The oscilloscope cartridge plugs into a
sible, real-time software is used to the right hand side. For high fre- custom 32-pin card edge connector on the
perform the majority of control func- quencies (50 ms to 5 µs/DIV), an underside of the GB and interfaces directly to
tions e.g., triggering and variable-
rate sampling. Once captured, the
sampled data is displayed using a
standard oscilloscope 10 by 8 screen
format that is designed to maximise RAM_CS top view
RD RESET
screen use. A simple four-position WR AUDIO IN
A0 - A15 D0 - D7
menuing system (one for each key) ECLK GND
+5V
in combination with the joypad pro-
vides easy setting of the standard
scope functions. 1 32
A number of advanced options
are also possible for the more expe-
rienced user, these include FFT
analysis, XY mode, averaging and
reference storage. A serial data link GAME BOY 990082 - 11
D1
5V 5VA
2V5 IC5
2
4 D5 5VA
C3 3 1D
BAV199 R7 5VC
7
4k7
5 D6
1p8 C17 6
S1 R5 C5 C14
3 2V5 10
K1 470k R6 1% 100n 12 D7
1 11
CH B C2 R1 1% IC1a 4k7 100n 100n
6 2 5 24 15 8 8
1M 0V 5VA 1% C7 13 D4
R2 7 MODE 14 IC1 IC3
100n 1% IC1b 14 6 D0
REF+ D0 5VC 4 4
1M
5 C5 220p
7 D1 C4 C12
1% D1
C9 1 IC4 8 D2 R
1
15p IN4 D2
100n 100n
2 9 D3 C1 9
R4 R3 1V25 IN3 D3
100n
C1 IC1 = MC33182D 3 17 D4
IN2 D4 74HC175D
1M
4k7
16 13 4 18 D5
IN1 D5
18p W0 5V
MAX114 19 D6
12 11 1V25 D6
5V H0 L0 23 CAG 20 D7
PD D7
P1 10
IC2 RD 11
10 15 INT
DX 5V
COUT WR 15 1 RD
2V5 100k 2V5 2 6 0 0 K3
16 22
CW C8 NC RESET CS A0 14 0 2 WR
1 7 13 21 1 G
VB CLK REF– A1 13 7 3 A13 1
15 9 D1 2 2 +5V
D2 100n NC DQ 12
3 IC6 2 ECLK
5V 5VA SOUT
14
12 11 74HC138D 3
DS1267S100 4 WR
10 4 A14 4
C13 5 RD
BAV199 3 4 9 5 ECLK 5
H1 L1 D1 6 & RAM_CS
7 6 A15 A0 6
1p8 W1 7 A0
S2
R12 2V5 A1 7 A1
8 5
K2 470k C15 A2 8 A2
CH A C11 R8 1% R14 A3 9
2 A3
15p 5V
4k7
1M A4 10
R9 1 C18 A4
100n 1% IC3a 6 A5 11
A5
1M
3 R13
0V 7 1% A6 12
IC3b 4k7 100n A6
1%
5 A7 13
1% C16 2 32 A7
A8 14
R11 R10 VPP A8
C1 IC3 = MC33182D 220p 11 A0 A9 15
A0 A9
1M
4k7
5VA 10 A1 A10 16
A1 A10
18p
9 A2 A11 17
D0 13 A2 A11
D0 8 A3 A12 18
D1 14 A3 A12
P2 R15 C20 D1 IC7 7 A4 A13 19
D2 15 A4 A13
D2
15k
L3 6 A5 A14 20
100n
5VC D3 18 A5 A14
2V5 100k 2V5 D3 5 A6 A15 21
CW R17 D4 19 EPROM A6 A15
100µH D4 4 A7 D0 22
100k D5 20 A7 D0
D5 29 A8 D1 23
2 8 1% C33 D6 21 27C256 A8 D1
C24 R16 D6 28 A9 D2 24
1 6 D7 22 PLCC A9 D2
IC8a 100k 2V5 D7 24 A10 D3 25
3 7 10µ A10 D3
10µ 1% IC8b 6V 27 A11 D4 26
6V D3 5 A11 D4
5V 3 5 5V 5V 3 A12 D5 27
C19 4 A12 D5
C– C+ 30 A13 D6
L1 L2 28
5VA A13 D6
2 IC9 1 100n 2V5 31 A14 D7 29
A14 D7
100µH C21 100µH 30
MAX828 ZR25D01 OE CS RESET
EUK IC8 = TLC27L2CD 25 16 23
31
AUDIO _IN
100n 16 16
C28 C29 C30 C31 RD A15 32
C22 C23 C25 C26 C27 GND
4 IC5 IC6
10µ 8 100n 8 100n 10µ
10µ 100n 10µ 10µ 100n 6V 6V
6V 6V 6V 5V
990082 - 12
Figure 2. Circuit diagram of the GBDSO cartridge. Stop playing games — turn the Nintendo Gameboy into a sampling oscilloscope with
a large clear display!
the data and address busses of the GB Z80 (- Address decoding consists of a values simultaneously. Once
like) main processor. The pin functions of the 74HC138 1-of-8 decoder, IC6, that updated, the values are held until
card edge connector are shown in Figure 1. decodes the address range down to the next update or the power is
A000-BFFF and provides two enable removed. A condensed datasheet of
Circuit diagram signals: this interesting IC may be found
1. A000./RD at pin 9 accesses the elsewhere in this issue.
As you can see from the circuit diagram in ADC and reads CHA/B 8-bit data The GBDSO analogue circuitry
Figure 2, the GBDSO cartridge, despite its value while reinitialising the ADC for requires ±5 V to operate, so an
rather complex function, contains a relatively the next sample. inverting capacitive charge pump
small number of integrated circuits. 2. A000./WR at pin 10 accesses the circuit is used to provide the nega-
The GB is controlled by an 8-bit Z80-like 74HC175 quad latch and writes data tive supply. The device used for this
processor that gives a direct addressing to the DS1267 gain control circuit, or is a MAX828EUK (IC9) which has an
range of 64 kB. However internal devices e.g., selects the input sampling channel internal oscillator that operates at
LCD, RAM, sound etc. use most of the top of the ADC. 12 kHz. This allows relatively small
32 KB leaving 0000-7FFF available for exter- capacitors to be used for smoothing.
nal ROM and A000-BFFF for external RAM. The DS1267 from Dallas Semicon- However, to prevent any high fre-
The GBDSO program is stored in a low power ductor is a dual channel 10-kΩ digi- quency noise being passed to the
27C256 32 kB EPROM, IC7, occupying lower tal gain control potentiometer with sensitive input amplifiers, additional
memory at 0000 to 7FFF which is executed 256 wiper positions per channel. LC filters are used.
upon power-on. The ADC and input gain con- Data is transferred to the device As already mentioned, the CHA/B
trol chips occupy a single memory location at through a serial interface via the input amplifiers are designed to be
A000. 74HC175 latch, this updates both pot compatible with 1:1 or 10:1 (0 or
Standard menus
By pressing A/B/Start/Select, the appropriate
function will be highlighted on the bottom
Table 2. Advanced Menu Screens
line of the scope (note CHA is highlighted).
Once a function is highlighted, the joypad
control can be used to adjust the values asso- Function Key Advanced menu screens
ciated with that function, as shown in
Select
Table 1.
Start
Advanced menus
The function key menu provides a quick B Not used
means of changing the standard scope set-
tings with as few key presses as possible. A
However, if the highlighted function key is
pressed a second time then an advanced
menu will be displayed. The advanced menu
options may be found in Table 2.
Each advanced menu has three options
and an exit. When an option is selected with
the function key it will be enabled immedi- Time to XY
GBDSO
Gameboy Digital Sampling Oscilloscope (2)
Part 2: PC link, DSOGrab, construction and testing
Design by Steve Willis
K2 S2 K1 S1
C10
C1
R8
(C) ELEKTOR
C11 C2 R1 P1
C14
R10 C13 C5
C3 R4
C8 C9
R3
R12
P2 R5
R11
C30 D2 R2
C6
IC6 R9
C15
C12 IC3 C4 IC1
D1
IC5 IC2 R6 R7
C29 R13 R14 C20 C27
C26
R17 C31
L1
R15
C25
C19
L2
IC9
IC8 C24
C18 R16
C23
D3 C21 C33
C17
IC4 C22
C7
990082-1
IC7
L3
C16
C28
K3
Plastic Strip
990082- 19a
Cut Out
CHA DC : AC CHB DC : AC
Digital Sampling
Oscilloscope
990082 - 18
990082- 19b
Figure 9. ROM case cut outs, and home made Figure 10. Calibrating the 50 mV/DIV range on CHA and CHB
metal film.
Figure 12. Rear view of Gameboy console with GBDSO cartridge removed (left) and installed (right).