
Отладочная плата VX MEGA-128
..pdf
ÏриложениеП 1. ÎписàниеО а отлàдочнойа плàтыа VX-Mega128
VX-Mega128 : ATmega128 Microcontroller board documentation 1
VX-Mega128
ATmega128 Microcontroller board
1. Features
Support the ATmega128 with Flash memory of 128KB. Clock rate 14.7456MHz
34 I/O port of microcontroller are using INEX’s standard PCB-3 pin connector.
LCD16x2 module
4 of Button switches
Binary Switch
USB port with FT232RL USB to Serial converter circuit.
ATmega128 pre-programmed Boot loader, programmable via USB port.
8-ch. Analog input with 10-bit Analog to Digital Converter
32KB RAM / 32KB EEPROM memory module plug on top
Support In-system Programming via ISP connector with PX-400 Programmer
Supply voltage +9V from external. +5V 500mA on-board regulator.
Includes : ATmega128 Microcontroller board, Plugable Memory module, USB cable, CDROM and Documentation.

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ÏриложениеП |
1. ÎписàниеО а |
отлàдочнойа |
плàтыа |
VX-Mega128 |
|
|||||||
diagram schematiuc scetiob Microcontroller 1 Figure |
|
|
|
|
|
|
|
|
|
|
|
PB5 |
PB6 |
PB7 |
PE3 |
|
|
PE4 |
|
|
|
PE5 |
|
|
|
PB0 |
|
|
|
PB1 |
|
PB2 |
|
PB3 |
|
PB4 |
|
|
|
|
|
|
|
|
|
|
|
|
documentation board Microcontroller ATmega128 : Mega128-VX 2 |
|||||||||
|
|
|
|
|
|
|
|
|
|
|
(PWM5) (PWM4) (PWM3) (PWM2) (PWM1) (PWM0) |
|
|
(SS) |
|
|
(SCK) |
(MOSI) |
(MISO) |
(OC0) |
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
K3 |
|
|
|
|
|
|
|
|
|
|
|
||
|
|
|
|
|
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 (MISO) |
PB4 (OC0) |
|
PE1 (TXD0/PDO) |
PE0 (RXD0/PDI) |
PEN |
|
|
|
R6 |
|
|
|
|
|
|
|
|
|
PF0 |
|||||||||||
|
|
|
|
|
|
|
|
|
|
|
16V |
16V |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
22 |
|
|
|
|
|
|
|
|
10k |
|
|
|
|
|
|
|
|
|
(ADC0) |
||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
GND |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
|
|
|
|
|
|
|
|
(Optional) |
|
|
|
|
|
|
|
|
|
|
|
|||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
GND |
|
|
|
|
|
AREF |
62 |
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
GND |
|
|
|
|
|
|
|
|
|
+5V |
|
|
|
|
|
|
PF1 |
|||||||||||||||||||||||||||
|
|
+5V |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
C4 |
|
|
|
|
|
|
|
|
|
(ADC1) |
||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0.1µF |
|
|
|
|
|
|
|
|
|
|
|
|||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
|
|
|
|
|
|
|
|
16V |
|
|
|
|
|
|
|
|
|
|
|
|||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
RTCX1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
A13 40 |
A12 39 |
A11 38 |
A10 37 |
A9 36 |
A8 35 |
|
ALE 43 |
|
AD7 44 |
AD6 45 |
AD5 46 |
AD4 47 |
AD3 48 |
AD2 49 |
AD1 50 |
AD0 51 |
|
47 |
|
|
|
|
|
|
|
|
|
|
|
|||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
TxD |
|
|
|
|
|
|
|
|
|
||||||||||||||||||||||||||||
VR1 |
C9 |
|
|
|
|
|
|
|
RST |
|
|
|
|
|
|
|
|
|
5 |
|
RxD |
|
|
|
|
14 |
LED2 |
LED1 |
|
|
||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||||||||||||||||||
10k |
0.1µF |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
POWEREN |
|
|
|||||||||||||||||||||||||||||||||
of |
LCD |
16V |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 3V3 OUT |
|
|
|
12 |
USB |
DATA |
|
|
|
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TXLED |
|
|
|
|
|
||||||||
CONTRAST |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
|
|
|
|
||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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|
|
|
|
|
|
|
|
|
|
18 GND |
|
|
|
|
|
|
|
|
|
||||||
VX-Mega128GND |
16 CHAR. X 2 LINES |
AD4 |
AD5 |
AD6 |
AD7 |
|
|
|
|
|
|
|
GND GND |
SCL SDA |
WR RD |
A8 A9 |
A10 A11 |
A12 A13 |
A14 A15 |
RST ALE |
AD7 AD6 |
AD5 AD4 |
AD3 AD2 |
AD1 AD0 |
+5V +5V |
|
|
|
K4 |
|
|
|
|
|
|
|
|
|
27 |
|
|
|
|
|||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
K1 |
|
|
||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ATmega128 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
EXPANSION BUS |
|
|
|
|
|
IC1 |
|
|
|
|
USB |
|
|
||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FT232RL |
|
|
|
|
|
|
|
||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||||||||||||||||||
board |
AVR Microcontroller |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
to I/O section |
|
|
|
|
|
|
|
|
|
|
||||
Part 1 : Main section |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

ÏриложениеП 1. ÎписàниеО а отлàдочнойа плàтыа VX-Mega128
VX-Mega128 : ATmega128 Microcontroller board documentation 3
2. Circuit and Memory map
The VX-Mega128 microcontroller board schematic diagram is splited to 3 sections. The microcontroller section schematic diagram is shown in figure 1. Input/Output port and external device interface schematic diagram is shown in figure 2 and figure 3 shows the circuit of Memory extension module.
|
|
|
|
|
|
|
|
|
|
|
|
|
+5V |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
C10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0.1µF |
|
|
|
|
|
|
|
|
|
|
to MAIN section |
|
|
|
|
|
16 |
|
50V |
|
|
|
|
|
|||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
WR |
|
|
|
1 |
A0 |
Y0 |
15 |
0XF000 WR |
|
|
|
|
||
|
|
|
|
|
|
|
|
A10 |
|
|
|
2 |
A1 |
Y1 |
14 |
0XF000 RD |
|
|
|
|
||
|
|
|
|
|
|
|
|
A11 |
|
+5V |
|
3 |
A2 |
Y2 |
13 |
0XF400 WR |
|
|
|
|
||
|
|
+5V |
|
|
|
|
|
|
|
|
|
|
Y3 |
12 |
0XF400 RD |
|
|
|
+5V |
|||
|
|
|
|
|
|
|
|
|
14 |
|
|
|
|
11 |
0XF800 WR - PORT D.OUT |
|
||||||
|
|
|
|
|
|
|
|
RD |
4 |
|
|
|
Y4 |
|
|
|||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
6 |
6 |
|
10 |
0XF800 RD - PORT D.IN |
|
|
|||||||
D.IN0 |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11 |
AD7 |
|
|
|
|
|
|
|
1000µF |
|
||||
|
|
|
|
|
|
I7 |
D7 |
|
|
|
|
|
|
|
|
|
|
220µF |
|
6.3V |
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
25V |
|
|
||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
|
OE1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
GND |
OE2 |
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IC6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74AC541 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
D.OUT0
D.OUT1
D.OUT2
D.OUT3
D.OUT4
D.OUT5
D.OUT6
D.OUT7
+5V
R21
510
LED3
POWER
VX-Mega128
AVR Microcontroller SW1 SW2
SW3
SW4
Part 2 : I/O section
and power supply
Figure 2 I/O port and external device interface schematic diagram of VXMega128 microcontroller board

ÏриложениеП 1. ÎписàниеО а отлàдочнойа плàтыа VX-Mega128
4 VX-Mega128 : ATmega128 Microcontroller board documentation
|
+5V |
|
|
|
|
|
C17 |
|
|
|
|
|
|
0.1µF |
|
|
|
GND |
GND |
|
50V |
|
8 |
|
|
||
|
|
SCL |
SDA |
|
||
|
|
VCC |
|
|
||
1 |
|
|
|
|
|
|
A0 |
SDA |
5 |
WR |
RD |
|
|
2 |
A1 |
A8 |
A9 |
|
||
SCL |
6 |
|
||||
3 |
A2 |
A10 |
A11 |
|
||
7 |
WP |
|
A12 |
A13 |
|
|
4 |
GND |
|
A14 |
A15 |
|
|
|
|
|
|
RST |
ALE |
|
|
|
IC8 |
|
D7 |
D6 |
|
|
24C256 |
|
D5 |
D4 |
|
|
|
(32K X 8BIT) |
|
|
|||
|
|
D3 |
D2 |
|
||
|
|
|
|
|
||
|
|
|
|
D1 |
D0 |
|
|
|
|
|
+5V |
+5V |
+5V |
|
|
|
|
|
|
|
|
|
|
|
|
K4 |
|
|
|
|
|
ATMEGA128 |
|
|
|
|
|
|
EXPANSION BUS |
|
|
|
+5V |
|
|
|
|
|
|
|
|
C18 |
|
|
|
|
|
0.1µF |
|
|
20 |
|
|
50V |
|
|
|
|
|
|
AD0 |
2 |
D0 |
Q0 |
19 |
A0 |
AD1 |
3 |
D1 |
Q1 |
18 |
A1 |
AD2 |
4 |
D2 |
Q2 |
17 |
A2 |
AD3 |
5 |
D3 |
Q3 |
16 |
A3 |
AD4 |
6 |
D4 |
Q4 |
15 |
A4 |
AD5 |
7 |
D5 |
Q5 |
14 |
A5 |
AD6 |
8 |
D6 |
Q6 |
13 |
A6 |
AD7 |
9 |
D7 |
Q7 |
12 |
A7 |
ALE |
11 |
LE |
|
|
IC9 |
|
|
|
|
74AHC573 |
|
|
|
OE |
|
|
|
|
|
1 |
10 |
|
|
+5V
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
C19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0.1µF |
A0 |
10 |
|
|
|
|
24 |
|
|
|
|
|
|
|
50V |
||||||
|
|
|
|
|
|
|
|
|
|
|
||||||||||
|
|
|
|
|
|
|
|
11 |
AD0 |
|||||||||||
A0 |
|
|
|
D0 |
||||||||||||||||
A1 |
9 |
|
|
|
12 |
AD1 |
||||||||||||||
A1 |
|
|
|
D1 |
||||||||||||||||
A2 |
8 |
|
|
|
13 |
AD2 |
||||||||||||||
A2 |
|
|
|
D2 |
||||||||||||||||
A3 |
7 |
|
|
|
15 |
AD3 |
||||||||||||||
A3 |
|
|
|
D3 |
||||||||||||||||
A4 |
6 |
|
|
|
16 |
AD4 |
||||||||||||||
A4 |
|
|
|
D4 |
||||||||||||||||
A5 |
5 |
|
|
|
17 |
AD5 |
||||||||||||||
A5 |
|
|
|
D5 |
||||||||||||||||
A6 |
4 |
|
|
|
18 |
AD6 |
||||||||||||||
A6 |
|
|
|
D6 |
||||||||||||||||
A7 |
3 |
|
|
|
19 |
AD7 |
||||||||||||||
A7 |
|
|
|
D7 |
||||||||||||||||
A8 |
25 |
|
|
|
|
|
|
|
||||||||||||
A8 |
|
|
|
|
|
|
|
|
|
|
||||||||||
A9 |
24 |
|
|
|
|
|
|
|
|
|
|
|||||||||
A9 |
|
|
|
|
|
|
|
|
|
|
||||||||||
A10 |
21 |
|
|
|
|
|
|
|
|
|
|
|||||||||
A10 |
|
|
|
|
|
|
|
|
|
|
||||||||||
A11 |
23 |
|
|
|
|
|
|
|
|
|
|
|||||||||
A11 |
|
|
|
|
|
|
|
|
|
|
||||||||||
A12 |
2 |
|
|
|
|
|
|
|
|
|
|
|||||||||
A12 |
|
|
|
|
|
|
|
|
|
|
||||||||||
A13 |
26 |
|
|
|
|
|
|
|
|
|
|
|||||||||
A13 |
|
|
|
|
|
|
|
|
|
|
||||||||||
A14 |
1 |
|
|
|
|
|
|
|
|
|
IC10 |
|||||||||
A14 |
|
|
|
|
|
|
|
|
|
|||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SRAM |
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62256 |
|
WR |
|
27 |
|
|
|
|
|
|
|
|
|
|
|
(32K X 8BIT) |
|||||
WR |
|
|
|
|
|
|
||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
RD |
|
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OE |
|
|
|
|
|
|
|
|
|
|
|||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||
|
|
A15 |
20 |
|
|
|
|
|
|
|
|
|
|
|
||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||
|
CE |
|
|
|
|
|
|
|
|
|
|
|||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Figure 3 Data memory extension module schematic diagram
ATmega128 operates with clock frequency 14.7546MHz from external crystal circuit. The crystal 32.768kHz is connectede to ATmega128 for setting the clock frequency to support internal Real-time counter. Supply voltage +5V comes from external DC adaptor +9V (+16V maximum) via +5V regulator circuit with 78R05 ICs.
VX-Mega128 supports both in Single chip microcontroller mode and Microprocessor mode. ATmega128 interfaces with all external device via address assignment. In figure 4 shows the memory and I/O map of VX-Mega128 board.
External device that connected with ATmega128 are assigned in address F000H to FFFFH included :
(1) LCD module 16x2 : connect 8-bit data bus with AD0 to AD7 of ATmega128. It causes reading and writing via data bus instead direct interface.
(2) 4 of Input Switches (SW1 to SW4) : address at upper nibble of FC00H. Signal is buffered via 74AC541 IC.
(3) 4-bit binary Switch : trhis switch gives 4 binary bits. It means 16 different data 0000 to 1111 in binary base or 0 to 15 in decimal and 0 to F in HEX. Data from Binary switch are tranfered to data bus ; AD0 to AD3 via 74AC541 buffer IC and assigned at lowewr nibble of FC00H.

ÏриложениеП 1. ÎписàниеО а отлàдочнойа плàтыа VX-Mega128
VX-Mega128 : ATmega128 Microcontroller board documentation 5
FFFFH |
|
|
|
|
|
FFFFH |
|
FFFFH |
|
I/O address |
|
Not used |
|
Switch |
|
||
F000H |
|
|
|
|
||||
|
|
|
Input |
|
||||
EFFFH |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FC00H |
|
FC00H |
|
|
|
|
|
|
FBFFH |
|
FBFFH |
|
|
|
|
|
|
|
||
|
Not used |
|
Digital port |
|
Digital port |
|
||
|
|
|
|
|
||||
|
|
|
data Output |
|
data Input |
|
||
8000H |
|
|
|
|
|
F800H |
|
F800H |
7FFFH |
|
|
|
|
|
F7FFH |
|
F7FFH |
|
|
|
|
|
|
|||
|
28KB from 62256 |
|
Not used |
|
Not used |
|
||
|
|
|
|
|
|
|
|
|
|
external RAM |
|
|
|
|
F400H |
|
F400H |
|
|
|
|
|
|
F3FFH |
|
F3FFH |
|
|
|
|
|
|
|
||
1000H |
|
|
|
|
|
|
|
|
0FFFH |
|
|
Not used |
|
Not used |
|
||
Internal 4KB of |
|
|
|
|||||
|
|
|
|
|
|
|
|
|
0000H |
ATmega128 |
|
|
|
|
F000H |
|
F000H |
|
|
|
|
|
|
|
|
|
|
ATmega128 |
|
|
|
|
|
|
|
|
R/W = "0" |
R/W = "1" |
||||||
|
|
|
||||||
|
|
|
Write mode |
Read mode |
Figure 4 Memory and Input Output port organization of VX-Mega128 micrcocontroller board
Also the digital input and output port of VX-Mega128 board are assigned via address map system as follows :
Digital input port D.IN0 to D.IN7 are assigned at F800H address.
Digital output port D.OUT0 to D.OUT7 are assigned at F800H address too.
but active with WR signal insterad.
All interface port include Analog to Dital converter module input are connect to INEX 3-pin PCB connector. User can connect with INEX many sensors and modules.
VX-Mega128 board supports 8-channel of Analog to digital converter. User can select supply voltage and reference for ADC module with 2 jumpers JP1 and JP2. If fit all, selects ADC module to use supply and reference voltage at +5V. If remove all, user can apply the voltage at these points. The limitation is reference voltage must lower or equal the supply voltage of ADC module. Normally, fit both jumpers on the board.
Computer interface of VX-Mega128 board via USB. The heart of this function is FT232RL the USB to Serial converter chip. Thus, interface signal is serial and connect to UART1 module in ATmega128. The programming shall be easier and supports all modern computer includes labtop which not serial port available.
Addition user can program microcontroller’s flah memory via USB interface. Because ATmega128 microcontroller will be pre-programmed the bootloader ready. It means this microcontroller baord can program the flash 2 ways. One is via ISP connector with external In-System Programmer such as PX-400. Another is via USB with bootloader (Atmega128 must pre-rpogrammed ready).
ÏриложениеП 1. ÎписàниеО а отлàдочнойа плàтыа VX-Mega128
6 VX-Mega128 : ATmega128 Microcontroller board documentation
3. How to program the VX-Mega128 board
Flash programming ATmega128 on VX-Mega128 board has 2 methods.
(1) via ISP connector with external In-System Programmer : The suggession programmer is INEX’s PX-400 amd Atmel’s AVR ISP In-System Programmer
(2) via USB with bootloader : This method ATmega128 must pre-programmed bootloader firmware. INEX prepare ready to using. However user can re-program the bootloader with yourself by external programmer via ISP connector. In CD-ROM contain the HEX file of this bootloader. On VX-Mega128 board has FT232RL USB to Serial converter chip to interface the USB but in software will look as COM port. Signal from FT232RL are connected to SPI programming pin PDI (PE0) and PDO (PE1) of ATmega128. With this method, user no need the external programer to flash programming. Only plug USB cable between baord and computer. Open the suitable software. You can work with this microcontroller board.
4. Extension memory board
The memory board of VX-Mega128 is 64KB. Divides 2 parts. One is Static RAM 32KB ; 62256. However user can work only lower 28KB. Because upper 4KB is reserved by internal RAM data memory of ATmega128. Interfacing of this RAM work via the EXPANSION BUS. This bus provides 8-bit data/address lines; AD0 to AD7 and Address line A8 to A15, and all control signal.
Another memory part is serial EEPROM 32KB; 24C256. ATmega128 interfaces via I2C bus or Two-Wire Interface (TWI).
If you need to use this memeory board with VX-Mega128 board, must plug this module on top at EXPANSION connector.
5. Software in VX-Mega128 board
The related software work with VX-Mega128 microcontroller board that suggession has 4 softwares as follows :
(1) IDE development tool - introduce AVR Studio. It support both Assembly and C programming. Download the latest version at www.atmel.com
(2) C compiler - suggess WinAVR. It is powerful GCC compiler and important Free of charge. It can work with AVR Studio. User can develop C program under AVR Studio and use WinAVR to compile. Download the latest version at http:// sourceforge.net/projects/winavr

ÏриложениеП 1. ÎписàниеО а отлàдочнойа плàтыа VX-Mega128
VX-Mega128 : ATmega128 Microcontroller board documentation 7
(3) Flash programming software - suggess 2 softwares; AVR Prog and AVROSP II. The AVR Prog will install with AVR Studio. Avr-Osp II is separated. But user can add Avr-OSP II into AVR Studio for easier to using. Download the latest version at http:// esnips.com/web/AtmelAVR
(4) Boot loader - It is small firmware that program into Flash program memory of ATmega128. Its function is write the HEX code with itself via controlling from computer via serial port. Programming this code into ATmga128 must use external In-System Programmer in first time. However the manufacturer pre-program the bootloader ready.
The installation must do following these step as follows
(1)Install AVR Studio
(2)Install WinAVR compiler
(3)Install Virtual COM port (VCP) driver
(4)Install Avr-Osp II software if require
5.1AVR Studio installation
5.1.1Insert the AVR CD-ROM and look for this file in the AVR Studio directory; aStudio4b460.exe. Double-click this file.
5.1.2Enter the Installation Wizard. Click on the Next button to continue.
5.1.3 In the license agreement window, Select the box : I accept the terms of the license agreement and Click on the Next button.

ÏриложениеП 1. ÎписàниеО а отлàдочнойа плàтыа VX-Mega128
8 VX-Mega128 : ATmega128 Microcontroller board documentation
5.1.4 Choose Destination Location windows will appear. You can change the path by clicking on the Change button and setting a new path. After this, click on the
Next button.
5.1.5The Driver USB Upgrade window will now appear. Click on the Next button to pass this step.
5.1.6In the begin installation window, click on the Install button to start installation.
5.1.7 After the installation is complete, click on the Finish button to end the installation of AVR Studio.

ÏриложениеП 1. ÎписàниеО а отлàдочнойа плàтыа VX-Mega128
VX-Mega128 : ATmega128 Microcontroller board documentation 9
5.1.8 Next step is updating the software with service pack 4. Open CD-ROM . Enter to Software folder AVR Studio 4.12. Look for this file in the Update folder ; aStudio412SP4b497.exe. Double-click this file. The welcome installation windows will appear. Click the Next button to continue.
5.1.9 The Select Features window appear. Click the Next button to install the update files.

ÏриложениеП 1. ÎписàниеО а отлàдочнойа плàтыа VX-Mega128
10 VX-Mega128 : ATmega128 Microcontroller board documentation
5.1.10 The Setup Status window appear and shows the installation progress bar. Wait until finish.
5.1.11 After installation complete, click the Finish button.