Professional Documents
Culture Documents
Application board
Base camp for high endeavours
Gunther Ewald
and Burkhard Kainka
D5 IC2
JP11
1N4002 7805 POWER
K1
EXT USB
+5V +5V
C10 C11 C12 C13
F1
R11
220µ 100n 100n 10µ Polyfuse P1
25V 16V
33k
100mA JP1
ANALOG
+5V 10k +5V JP2
+5V +5V +5V PROG
R9 R10 R17 +5V
JP12 K9 LCD
4k7
4k7
10k
R8
POWER D7 1
K5 K6 K7 K8 VSS
4k7
LC DISPLAY 2 x 16
S1 XOUT P0.3 5
C18 R/W
VSS MODE CONTRAST 10k 6
E
D6 100n XIN P0.4 7
D0
RESET VCC P0.5 8
D1
P1.7 P0.6 9
+5V D2
P1.6 P0.7 10
D3
R3 JP6 RXD0 IVCC 11
D3 D4
1k TXD0 P3.0 12
D5
R2 JP4 P1.3 AVSS 13
D2 C1 D6
1k P1.2 P3.1 14
D7
R4 JP5 P1.1 AVCC
D4 100n
1k P1.0 P3.2
R1 JP3 P4.5 P3.3
D1 16 17
1k +5V
TXD0 TXD1
RXD0
SERIAL RXD1 C3
PROGRAMMING R5
C7 C4
K4
1k5
+5V 100n
1 C15 10µ 16V 100n
4 8 17 24
6 4µ7
VDD
JP7
VDD_PLL
VDD_3V3
VDD_233
2 1 19
TXD RST
7 25V USB 5 20
2 RXD VDD
3 K4
V+
8 1 16 12 IC1 9 R13 C9
PROG.
C8
C14 C1+ SHTD_N DSR_N 220k
4 JP8 13 10 R14
EE_CLK DCD_N 220k
9 3 IC3 14 11 R12 10µ 16V 100n
4µ7 C1– K4 EE_DATA CTS_N 220k
5 25V 14 11
T1OUT T1IN USB PL2303 R16
13 12 2 15
R1IN R1OUT DTR_N DP 27 Ω
8 9 3 16
SUB D9 R2IN R2OUT JP9 RTS_N DM
7 10 6 3 K2
T2OUT T2IN RI_N R15
COM 4 C2 USB 22 2 USB-B
PORT C17 C2+ TRI_MODE 27 Ω
MAX232 K4 26 23 1
K3 PLL_TEST LD_MODE
5 15 100n
4µ7
SER.
1 C2–
25V JP10 7 25 6 4 5
6 V- GND GND_PLL
21 18
2 6 K4 GND GND_3V3
C16
7 USB OSC1 OSC2
3 27 28
4µ7 R6 X1
8 25V
47k
4
C6 C5
9
5 10p 10p
12MHz
050179 - 3 - 11
SUB D9
Figure 1. The circuitry on the application board provides two serial ports, a USB interface and an LC display to connect the R8C daughter board to the outside world.
Driver installation
LIST IC3 = MAX232
Miscellaneous:
You may have already used a Prolific Resistors: JP3-JP6,JP12 = jumper
USB adapter with your system. In that R1-R4,R7 = 1kΩ JP7-JP11 = 3-way SIL pinheader
case, the interface will be recognised R5 = 1kΩ5 K1 = 2-way PCB terminal block, lead
as soon as the board is connected to R6 = 47kΩ pitch 5mm
the PC. If it isn’t, or if you experience R8,R9,R10 = 4kΩ7 K2 = USB socket, type B for PCB
R11 = 33kΩ mounting
problems using the USB port, you R12,R13,R14 = 220kΩ K3,K4 = 9-way sub-D socket, angled
should install the latest version of the R15,R16 = 27Ω pins, PCB mount
driver. You can obtain the driver by R17 = 10kΩ K5-K8 = 16-way SIL pinheader
downloading the file 050179-3-11.zip P1,P2 = 10kΩ K9 = LCD module, 2x16 characters
from the Elektor Electronics website S1 = pushbutton with 1 make contact
Capacitors: (e.g. TS695)
(www.elektor-electronics.co.uk). It con- C1-C4,C8,C11,C12,C18 = 100nF F1 = 100 mA Polyfuse
tains the file ‘PL-2303 Driver C5,C6 = 10pF X2 = 12MHz quartz crystal
Installer.exe’. C7,C9,C13 = 10µF 16V radial PCB, bare, order code 050179-1
Run the driver installer file before con- C10 = 220µF 25V PCB, ready-assembled and tested, order
necting the board. Any older version of C14-C17 = 4µF7 25V radial code 050179-92
the driver present in the PC will be LCD with backlight, order code
Semiconductors: 030451-72
deleted automatically when the new D1-D4,D6 = LED Poly-LED display, order code
driver is installed. The next time the D5 = 1N4002 030451-73
board is connected (or another inter-
050179-1
JP1
Prog. Analog
K1
JP2
R11 R17
Reset
LCD1
C18
RxD1 TxD1
CNVSS P0.1
D7
R10
res P0.2
R9
D5
Xout P0.3
R8 Vss mod
R2 Xin P0.4
C10
Vcc P0.5
R3
P1.7 P0.6
C11
JP3JP5JP4JP6
P1.6 P0.7
D1 D4 D2 D3
RxD0 IVcc
IC2
TxD0 P3.0
P1.3 AVss
P1.2 P3.1
C1
P1.1 AVcc
P1.0 P3.2
R1 P4.5 P3.3 C12
C13
R4
K7
K5
K6
K8
C14 JP11
ext
Power
100mA
C17 X1
F1
K3 USB C9
USB
C7
C3
JP9
C6
C5
ser.
IC3 JP10 C4
IC1
JP8 R13
K2
Serial prog.
COM port K4 R12
programming
C8
JP7
C2 R14
K4 USB
JP12
R16
R15
K3 C15
R6
R5
C16
P2
R7
Power LED
D6 Contrast LCD
Figure 6. The fully assembled prototype board. The component overlay is slightly different from the production version shown in Figure 5.
Board assembly
The printed circuit board (Figure 5) is
also available fully assembled so
readers with relatively little soldering
experience don’t have to worry about JP 11:
problems with the Prolific IC (IC1), toward K7/K8
which is only available in a 28-lead (‘ext’ position,
SMD package (SSOP-28). If you assem- with power coming
ble the circuit board yourself, you from an external supply)
should start with this IC because it’s JP 3–6: fitted (LEDs
easier to solder if the board is other- connected)
wise empty. JP 12: fitted (‘Power’ LED
connected)
Numerous Elektor Electronics SMD JP 2: fitted (debug mode) KD30 debugger
projects have shown that they can be JP 7–10: toward IC3 (both interfaces Up to now, we’ve only described how
soldered without using special SMD via RS232) to download finished programs into
tools. Start by soldering two diagonally the microcontroller and run them.
opposite leads in place, after first care- You should check the supply voltage on When you’re developing a program,
fully positioning the IC. A check with the board before plugging in the especially one that’s relatively com-
a loupe will show whether you have a R8C/13 daughterboard, in order to plex, it’s helpful to use a debugger.
steady hand. If necessary, you can still avoid any risk to the microcontroller. That allows you to interrupt the pro-
adjust the position relatively easily at LED D6 should light up after you con- gram at any desired location, view
this stage. Continue by soldering an nect an AC adapter with 9-V DC out- memory contents, execute single
entire row of leads with a sufficient put. The voltage measured on K6 steps, and much more.
amount of solder. Any excess solder between pin 5 VSS (Pin 5) and pin 7 The microcontroller must always be in
can be easily removed afterwards with (VCC) must have a value of +5 V. After debug mode when you use the debug-
a length of solder wick. If your final verifying this, disconnect the AC ger, which means that jumper JP2
inspection with a loupe does not reveal adapter and plug in the daughter board must remain fitted. The Reset button
any solder bridges, everything is OK. while no power is applied to the board. isn’t necessary in this case, because
The author has also found that strong Now comes the most exciting moment! you can only use software commands
reading glasses (3 dioptre) are an Reconnect the 9-V AC adapter. The from the debugger to start and stop
excellent alternative to a loupe. ‘Power’ LED will light up. Connect K4 your program.
They’re almost as good as stereo to the COM1 serial port of the PC. You We’ve prepared an extensive descrip-
microscope, at only a fraction of the can immediately download a program tion of how to get started with the
price. now, because JP2 is configured for debugger and placed it on the Elektor
debug mode. Use the FDT program as Electronics website at www.elektor-
The remaining components shouldn’t described in the February 2006 issue of electronics.co.uk. Deeopnding on the
present any special difficulties. You Elektor Electronics. A good choice for amount of feedback we get, a special
can omit the pin headers (K5 and K8) if your first download is the ‘port_toggle’ R8C activity page may also be created,
desired. If you wish, you can later con- program. The programming tool will so check out the website.
nect flat cable here or wire only the indicate whether the download (050179-3)
connections you actually need to the process completed successfully.
prototyping area. A socket header has Next, remove jumper JP2 and briefly References:
proven to work well as an LCD connec- press the Reset button. The four LEDs www.glyn.com
tor. The matching LCD module can connected to Port P1 should start www.glyn.de
then be fitted with long pin headers blinking. E-mail: elektor-r8c@glyn.de
and simply plugged into the board. If you want to use the USB interface, fit
JP7 and JP8 in the proper positions
R8C forum:
(toward the USB connector). That will
Initial test connect RXD1 and TXD1 to the USB
For hints and tips about using the
R8C/13 board, check out the ‘R8C 16-
Before using the board for the first converter IC. After that, you must con- bit Micro Starter Kit’ topic in our Forum
time, you should re-inspect the compo- figure FDT to use the virtual COM menu at www.elektor-electronics.co.uk.
nent assembly and solder joints and fit interface. Everything else works Naturally, we would be pleased if you
the necessary jumpers. The following exactly the same as with a real RS232 post your own tips and tricks on this
jumper settings are important: interface. forum for the benefit of other readers.