Download Electronic Component Ordering R32C Web Server

Transcript
+3V3A
+1V8D
+1V8A
FB1
U5
1
D
1uH
6
R14
1k
D2
R15
1k
52
32
31
30
29
9
7
4
+3V3D
5
51
50
49
48
47
46
45
59
8
P10.0/AN0
P10.2/AN2
P7.0/TA0OUT/TXD2
P10.3/AN3
P7.1/TB5IN/TA0IN/RXD2
P10.4/AN4
P7.2/V/TA1OUT/V/CLK2
P10.5/AN5
P7.3/TA1IN/V
P10.6/AN6
P7.4/TA2OUT/W
P10.7/AN7
P7.7/TA3IN/CLK5
P8.3/INT1
60
WIZ_SCS
WIZ_CS
55
24
WIZ_MOSI
28
23
WIZ_MISO
27
22
WIZ_SCLK
30
SCS
29
21
20
0R
R8
WIZ_RD
58
17
WIZ_WR
57
13
WIZ_INT
56
SPI_EN
P3.0/TA0OUT/CLK3
P3.1/TA3OUT/RXD3
P3.2/TA1OUT/V/TXD3
P8.4/INT2
P3.3/TA1IN/V
P8.5/NMI
XIN
XOUT
P7.5/TA2IN/W
P7.6/TA3OUT/TXD5
P8.7/XCIN
P8.6/XCOUT
P8.0/TA4OUT/U
P8.1/TA4IN/U
P0.0/AN0.0
P8.2/INT0
P0.1/AN0.1
P0.2/AN0.2
P6.0/TB0IN
P0.3/AN0.3
P6.1/TB1IN/CLK0
P1.5/INT3
P6.2/TB2IN/RXD0
P1.6/INT4
P6.3/TXD0
P1.7/INT5
CTS1/P6.4
AVSS
P6.6/RXD1
VSS
P6.7/TXD1
P6.5/CLK1
31
12
54
11
53
52
U4.B
19
18
16
15
14
3
R11
1
51
4
50
49
48
47
46
45
36
35
34
42
+3V3D
41
40
33
39
28
38
27
26
25
DATA_3
SPD_LED
R5
3
&
3
&
70
RJ45
71
+3V3A
67
10
DATA_5
DATA_7
RXIP
CS
RXIN
MOSI
MISO
TXOP
SCLK
SCS
TXON
RSET_BG
SEN
NC_1
ADDR_0
NC_2
W5100
ADDR_1
ADDR_2
NC_3
NC_4
LQFP 80
ADDR_3
NC_5
ADDR_4
NC_6
ADDR_5
NC_7
ADDR_6
ADDR_7
TEST_MODE_3
ADDR_8
TEST_MODE_2
ADDR_9
TEST_MODE_1
ADDR_10
TEST_MODE_0
ADDR_11
ADDR_12
OPMODE_0
ADDR_13
OPMODE_1
ADDR_14
13 14 17 32 43 68
75
R1
76
4
OPMODE_2
2
6
1
4
KY
AY
KG
AG
PE_1
GREEN
1
TD+
75R
6
11
TD-
3
CT
8
RD+
8
2
3
60
61
75R
6
1n
2kV
R9
R10
R2
7
8
RD-
1
R6
4
5
9
3
75R
75R
9
INT
7
5
RD
WR
R4
YELLOW
DATA_4
DATA_6
LINK_LED
12k
VCC1V8A-2
VCC1V8A-1
VCC1V8D-4
VCC1V8D-3
VCC1V8D-2
1V8_OUT
19
VCC1V8D-1
20
D7
VCC3V3A_1
21
D6
37
VCC3V3D_3
D5
38
VCC3V3D_2
39
VCC3V3D_1
22
COL_LED
2
≥1
2
4
R3
PE_2
12k
D3
53
P10.1/AN1
D4
FDX_LED
DATA_2
1
73
U6
U7.B
5
U7.A
72
6
12k
1k
54
P2.7/AN2.7
40
TX_LED
DATA_1
66
12k
R13
P2.6/AN2.6
23
RX_LED
12k
D4
55
P2.5/AN2.5
D3
LINK_LED
12k
1k
56
CNVSS
P9.3/DA0/TB3IN
41
DATA_0
1
RJLBC-60TC1
5
62
78
79
80
R7
300R
R12
P2.4/AN2.4
24
74
GNDA_3
D5
NSD
25
D2
GNDA_2
57
P2.3/AN2.3
D1
42
7
GNDA_1
58
R32C111
43
RESET
XTLP
S3
VREF
P2.2/AN2.2
26
15 16 33 69
XTLN
3
63
P2.1/AN2.1
59
D0
GNDD_6
S2
P2.0/AN2.0
VDC1
RESET
GNDD_5
2
VDC0
6
44
GNDD_4
61
RESET
AVCC
GNDD_3
1
S1
VCC
GNDD_2
64
GNDD_1
62
4k7
10
11
1
U4.A
1
2
+3V3D
2
1uH
12 18 44
4
Q
CP
FB2
12k
+3V3D
C5
C3
C4
100n
100n
100n
34
35
36
37
63
U4 = 74LVC2G14
U5 = 74LVC1G79
U6 = 74LVC1G32
U7 = 74LVC2G08
64
65
10 77
1M
Q1
C2
C1
25MHz
27p
27p
A
090607 - 11
Figure 1. Schematic of the network module and R32C connection (for clarity the application board section shows only the LEDs and press switches, whilst the 3.3 V regulator and some passive components in the network module are not shown either).
This enabled Internet applications such as
web server, e-mail, FTP and plenty more
to be implemented even on small 8-bit
microcontrollers without the need for an
operating system. Users need not worry
about programming the PHY, MAC, IP and
TCP layers but can instead rely simply on
the built-in driver functions (see panel for
explanation of these abbreviations and [8]
for how these layers work).
Family connections
After the W3100 the company developed
several more chips, with varying levels of
integration. The W5100 that we are using
here is a 3-in-1 chip that combines the
TCP/IP, MAC and PHY functions in hardware and is controlled either by SPI bus
elektor
11-2009
or over an 8-bit parallel interface. Network modules in DIL form, comprising the
TCP/IP chip and an RJ-45 connector with
transformer, simplify the hook-up further.
In this project we employ the WIZ812MJ
module, which plugs very conveniently
into our R32C application board.
WIZnet’s product range also offers higher
performance Internet chips, handling
data rates up to 80 Mbit/s. These are for
demanding applications such as HD video
or image recognition. In the near future
the 4-in-1 chip W7100 will further enhance
the range; as well as the protocol functions
already mentioned this also includes an
8051 core, 64 kB of RAM and 64 kB + 128 kB
of flash memory.
The hardware
If the WIZ812MJ module is placed in the
socket already provided on the application
board [2] the R32C/111 can communicate with
the W5100 using SPI or an 8-bit parallel connection. In the latter case we must use the
so-called indirect mode. In contrast to direct
mode the full address bus is not used, which
saves a whole load of signal lines. Despite this
short cut the indirect mode is just as fast; to
read or write a block of data, only the start
address needs to be sent (over the data bus).
The W5100 now counts up the address independently in auto-increment mode. On the
address bus only the two lines A0 and A1 are
used. These define whether we have a data
byte or the high/low byte of the start address
on the data bus.
21