Bolymin BEGV643A Series User manual

BEGV643A
USER MANUAL
LCD Embedded System,
Atmel ATmega644p MCU,
Graphic 320x240 STN LCD,
LED/white backlight,
RS232/RS422/RS485, I2C /SPI
64KB in-system programmable Flash
No Operating System required

BEGV643A User Manual Ver.02- 2 -
CONTENTS
Precaution P3
Packing Contents P4
Chapter 1 Introduction P5
1-1ʳFeatures P6
1-2ʳBoard Layout P6
1-3ʳBlock Diagram P7
1-4ʳMechanical Dimension P7
1-5ʳBoard Specifications P8
1-6ʳOrdering Information P8
Chapter 2 Installation P9
2-1ʳJumpers P10
2-1-1 Contrast adjust P10
2-1-2 Frame ground P11
2-1-3 RS-422/485 VDD/ground P11
2-1-4 Screw hole ground P12
2-2ʳConnectors P12
2-2-1 Connector & Pin Definition P12
2-2-2 Pin vs. Function Diagram P16
Chapter 3 MCU Port Mapping P19
3-1 MCU Pin Configuration P20
3-2 MCU Port Mapping P21
3-2-1 LCD Controller P21
3-2-2 Touch Panel P21
3-2-3 RS-232/RS-422/RS-485 P21
3-2-4 Enable Backlight P21
3-2-5 EEPROM/I2C P21
3-2-6 2-wire serial port P21
3-2-7 SPI P22
3-2-8 General I/O P22
Chapter 4 Software Development Tool & Utility P23
4-1 ATMEL ATmega644p Tool P24
4-1-1 Download software from AVR
studio website P24
4-1-2 Additional tool for C language P32
4-2 Execute AVR studio 4.16 on designer PC P36
4-3 In-system programmer AVR ISP mk II P44
4-4 Bolymin Free Software Utilities P62
4-4-1 Website links P62
4-4-2 Introduction of BOLYMIN
software utilities P63
4-4-3 Software utilities function
description P71
Appendix A: LCD Controller Specification
Appendix B: EEPROM Specification
Appendix C: ATMEL ATmega644p MCU Specification

BEGV643A User Manual Ver.02- 3 -
Precaution
FCC
This device is designed to meet the requirement in part 15 of the FCC rules. Operation is subject
to conditions ruled under FCC part 15.
WARNING
CAUTION

BEGV643A User Manual Ver.02- 4 -
Please check packing content upon receiving BEGV643A parcel, make sure that all materials
and options are packed inside parcel according to your order.
Packing Contents Check-List
ƑBEGV643A LCD Embedded module
ƑTouch panel
ƑSoftware Utility Disc
ƑISP Cable (option)
ƑATMEL software development tool

BEGV643A User Manual Ver.02- 5 -
Chapter 1 Introduction
Abstract
This chapter is to offer you basic information regarding
BEGV643A, to help you incorporate BEGV643A into your
system.
Contents include:
1-1 Features
1-2 Board Layout
1-3 Block Diagram
1-4 Mechanical Dimension
1-5 Board Specifications
1-6 Ordering information

BEGV643A User Manual Ver.02- 6 -
1-1 Features
This BEGV643A is designed based on ATmega644p microprocessor, which requires no operating system to run
on. Together with a 320x240 STN LCD and LED backlight built-in, this all-in-one LCD embedded system BEGV643A
help designer enhance a compact design with cost saving, space saving, and design phase saving.
Armed with RS232, RS422/485, I2C and SPI interface port, this BEGV643A communicates many devices and
peripherals. The BEGV643A is therefore suitable to sit as a industrial control panel for factory automation equipment,
electronics instrument, HMI (human-machine interface), office automation equipment, medical equipment, parking
system, ticketing system.. and so on.
There are five LCD colors among choices: STN/gray, STN/yellow-green, STN/blue, FSTN/Positive, and
FSTN/negative. All comes with LED/white backlight.
64KB in-system self-programmable Flash offers sufficient ROM size for designer to develop software, further to
control LCD, touch panel, and interfaces.
Designer may simply design this BEGV643A into your application as you are designing a ATMEL CPU board,
without worrying LCD module and other interfaces, since they are all on one board.
1-2 Board Layout
This layout shows the location of each important IC, connector and jumper. Please refer to chapter 2 for further
information on jumper and connector.
(Drawing 1.2)
1
:LCD controller
7
: CN2
2
:RS232
3
:CN1
4
:Microprocessor
5
:RS-485/422
6
:EEPROM
7
65 43
2
1

BEGV643A User Manual Ver.02- 7 -
1-3 Block Diagram
(Drawing 1.3)
1-4 Mechanical Dimension
(Drawing 1.4)

BEGV643A User Manual Ver.02- 8 -
1-5 Board Specifications
(Table 1.5)
1-6 Ordering Information
(Table 1.6)
Part No. Description RS232-A RS232-B RS422 RS485
BEGV643A Dual RS232 ϩϩ
BEGV643A1 One RS232 ϩ
BEGV643A2 One RS232/One RS422 ϩϩ
BEGV643A3 One RS232/One RS485 ϩϩ
Display: FSTN/Positive LCD,LED/White Backlight(Default)
MCU High-performance, Low-power AVR
®
8-bit microprocessor
ATMEL ATmega644P
Memory 64K Bytes In-System Self-Programmable Flash
2K Bytes Internal EEPROM
4K Bytes Internal SRAM
3 x 64K Bytes External EEPROM(optional)
Display Support 8-bit single-scan resolution 320 x 240 monochrome STN LCD, with
edge LED white backlight only
Touch Panel(optional)Support four-wired resistive touch panel
Serial Ports Support 1 x RS232 port, and 1 x RS232/RS422(isolated)/RS485(isolated)
co-shared port
Support 1 x full-duplex, three-wired synchronous data transfer SPI port
Support 1 x two-wired serial interface to 250 KHz data transfer speed

BEGV643A User Manual Ver.02- 9 -
Chapter 2 Installation
Abstract
This chapter is to offer designer fundamental information
of BEGV643A jumpers and connectors, in order to help
designer configure correct setting and connection between
BEGV643A and system application.
Contents include:
2-1 Jumpers
2-2 Connectors

BEGV643A User Manual Ver.02- 10 -
2-1 Jumpers
This section is to indicate location and function of each jumper on BEGV643A, which user can arrange according
to the needs of different application desired. Be careful when setting jumper, user maybe need tool such as
needle-nose pliers to help setting. Please note, jumpers not described here are intended to keep as factory default
setting. Please consult Bolymin before trying to change default setting.
The table listed below describes location and function of each available jumper.
Jumpers: (Table 2.1)
Label Function
VR LCD contrast control
RG Frame ground
S2,S3 RS-422/RS-485 VDD/ground
JHG Screw hole ground
Detail location and function of each jumper is illustrated below.
2-1-1 Contrast Adjust
(Drawing 2.1.1)
VR Contrast adjust
10K ohm Inside default
N/A Outside

BEGV643A User Manual Ver.02- 11 -
2-1-2 Frame Ground
(Drawing 2.1.2)
RG Frame ground
short Connect metal frame with GND
open Not connected metal frame with ground default
2-1-3 RS-422/RS-485 VDD/Ground
(Drawing 2.1.3)
S2 S3 RS-422/RS-485 VDD/Ground
short short internal VDD/ground for isolated RS-422/485
open open External VDD/ground for isolated RS-422/485 default

BEGV643A User Manual Ver.02- 12 -
2-1-4 Screw hole ground
(Drawing 2.1.4)
JHG Frame ground
short Connect screw hole with GND
open Not connected screw hole with ground default
2-2 Connectors
Connectors are the key link between BEGV643A and external devices. Detail locations and functions of available
connectors are tabled and illustrated below.
Connectors: (Table 2.2)
Label Pin No. Function
CN1 32 Connector
2-2-1 Connectors & Pin Definition
z
Connector CN1 (Drawing 2.2cn1)

BEGV643A User Manual Ver.02- 13 -
z
Pin Definition: BEGV643A-Dual RS232 (Table 2.2.1a)
z
Pin Definition: BEGV643A1-One RS232 (Table 2.2.1b)
.
Pin Types
I =Input
O =Output
Bi =Input / Output (Bi-Directional)
U =User defined
P =Power
Pin No. Signal Pin No. Signal
1 GND 2 EEPSDA
3 VDD 4 EEPSCL
5 NC 6 EEPWP
7 NC 8 IOB
9 /Reset 10 NC
11 /SS 12 NC
13 MOSI 14 NC
15 MISO 16 NC
17 SCK 18 NC
19 RX0 20 NC
21 TX0 22 NC
23 RX1 24 NC
25 TX1 26 NC
27 SDA 28 NC
29 SCL 30 NC
31 IOA 32 NC
Pin No. Signal Pin No. Signal
1 GND 2 EEPSDA
3 VDD 4 EEPSCL
5 NC 6 EEPWP
7 NC 8 IOB
9 /Reset 10 NC
11 /SS 12 NC
13 MOSI 14 NC
15 MISO 16 NC
17 SCK 18 NC
19 RX0 20 NC
21 TX0 22 NC
23 NC 24 NC
25 NC 26 NC
27 SDA 28 NC
29 SCL 30 NC
31 IOA 32 NC

BEGV643A User Manual Ver.02- 14 -
z
Pin Definition: BEGV643A2-One RS232/One RS422 (Table 2.2.1c)
z
Pin Definition: BEGV643A3-One RS232/One RS485 (Table 2.2.1d)
2-2-1-1 Power & Ground (Table 2.2.1.1)
Signal Type Pin No.
Description
GND P 1 Logic power supply (ground)
VDD P 3 Logic power supply (+5V)
VDD2 P 20 External Power for isolated RS-422/485(+5V)
VDD2 P 22 External Power for isolated RS-422/485(+5V)
GND2 P 24 External Ground for isolated RS-422/485(ground2)
GND2 P 26 External Ground for isolated RS-422/485(ground2)
Pin No. Signal Pin No. Signal
1 GND 2 EEPSDA
3 VDD 4 EEPSCL
5 NC 6 EEPWP
7 NC 8 IOB
9 /Reset 10 NC
11 /SS 12 422RP
13 MOSI 14 422RN
15 MISO 16 422TP
17 SCK 18 422TN
19 RX0 20 VDD2
21 TX0 22 VDD2
23 NC 24 GND2
25 NC 26 GND2
27 SDA 28 NC
29 SCL 30 NC
31 IOA 32 NC
Pin No. Signal Pin No. Signal
1 GND 2 EEPSDA
3 VDD 4 EEPSCL
5 NC 6 EEPWP
7 NC 8 IOB
9 /Reset 10 NC
11 /SS 12 NC
13 MOSI 14 NC
15 MISO 16 485P
17 SCK 18 485N
19 RX0 20 VDD2
21 TX0 22 VDD2
23 NC 24 GND2
25 NC 26 GND2
27 SDA 28 EN485
29 SCL 30 NC
31 IOA 32 NC

BEGV643A User Manual Ver.02- 15 -
2-2-1-2 Serial I/O (Table 2.2.1.2)
2-2-1-3 General I/O (Table 2.21.3)
Signal Type Pin No.
Description
/SS U 11 SPI Chip select
MOSI U 13
MOSI is the mater data output line, when SPI on module is
configured as a master. When SPI is configured as a slave. This
pin reverse the role.
MISO U 15
MISO is the master data input line, when SPI is configured master.
When SPI Is configured as a slave. This pin reverse the role.
SCK U 17 SPI clock
RX0 I 19 Receiver of first RS232 with driver
TX0 O 21 Transmitter of first RS232 with driver
RX1 I 23 Receiver of second RS232 with driver
TX1 O 25 Transmitter of second RS232 with driver
SDA U 27 Data of 2-wire serial interface, it can be programmed as IO.
SCL U 29 Clock of 2-wire serial interface, it can be programmed as IO.
EEPSDA Bi 2 Data of 2-wire serial interface for additional EEPROM update.
EEPSCL Bi 4 Clock of 2-wire serial interface for additional EEPROM update
EEPWP I 6 Write protect of additional EEPROM
422RP I 12 no inverting receiver of RS422
422RN I 14 inverting receiver of RS422
422TP/485P Bi 16 When it configured as RS422 it act as no inverting transmitter,
When is configured as RS 485 it acts as positive differential IO.
422TN/485N Bi 18 When it configured as RS422 it acts as inverting transmitter, When
is configured as RS 485 it acts as negative differential IO.
EN485 O 28 Enable RS-485
Signal Type Pin No.
Description
/Reset I 5 Auxiliary moment reset for external input
IOA U 31 I/O port (ATmega644P portA.4)
IOB U 8 I/O port (ATmega644P portA.7)

BEGV643A User Manual Ver.02- 16 -
2-2-2 Pin vs. Function Diagram
2-2-2-1 Power/LCD/Backlight
Diagram of system power supply, and contrast adjustment.
2-2-2-2 In-System Programming
BEGV643A offers in-system software burn-in function, which allows designer to write software into
ATmega644p via ATMEL AVR ISP MKII writer without taking ATmega644p IC off board.
Please visit following website for more information on AVR ISP MKII writer.
http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3808
2-2-2-3 RS-232
BEGV643A offers RS-232 port to contact PC or other RS232 device directly without ICL232.
BEGV643A
VDD
GND
Vadj
Vout
GND
+5V
A
K
/Reset
BEGV643A
VDD
GND
GND
+5V
SCK
MOS I
MI S O
/Reset
BEGV643A
VDD
GND
GND
+5V
RX0
TX0
2
3
5
RS232 Host/Sl ave
DB9

BEGV643A User Manual Ver.02- 17 -
2-2-2-4 SPI
BEGV643A offers SPI port. Designer has to define this port as SPI by software, or to use Bolymin SPI
driver (free utility).
2-2-2-5 I2C/EEPROM
BEGV643A offers I2C port. Via this I2C port, designer may control 64Kbytes x 3 EEPROM in-system
and external I2C devices.
BEGV643A
VDD
GND
GND
+5V
EEPSCL
EEPSDA
EEPWP
EEPROM EEPROM
Microprocessor
BEGV643A
VDD
GND
+5V
SCK
MOS I
M I S O
SS
VDD
GND
GND
+5V
SCK
MOS I
M I S O
SS
Mas t er
Slav e
BEGV643A
VDD
GND
+5V
SCK
MOS I
M I S O
SS
VDD
GND
GND
+5V
SCK
MOS I
M I S O
SS
Mas t er Slav e

BEGV643A User Manual Ver.02- 18 -
2-2-2-6 RS-422
BEGV643A offers 1 x RS-422(isolated) port.
2-2-2-7 RS-485
BEGV643A offers 1 x RS-485(isolated) port.
BEGV643A
VDD
GND
GND
+5V
RS-422 Recever -
RS-422 Recever +
RS-422 Transmitter -
RS-422 Transmitter +
RS-422 Transmitter -
RS-422 Transmitter +
RS-422 Recever -
RS-422 Recever +
VDD2
RS-422 isolated power
GND2
RS-422 isolated ground
BEGV643A
VDD
GND
GND
+5V
RS-485 Transmitter/Recever -
RS-485 Transmitter/Recever +RS-485 Transmitter/Recever -
RS-485 Transmitter/Recever +
VDD2
RS-485 isolated power
GND2
RS-485 isolated ground

BEGV643A User Manual Ver.02- 19 -
Chapter 3 MCU port mapping
Abstract
This chapter explains ATmega644p MCU pin
configuration and port mapping toward key
elements such as LCD, Touch Panel, RS-232,
RS-422, RS-485, LED Backlight, EEPROM/I2C,
2-wire serial port, SPI, and General I/O.

BEGV643A User Manual Ver.01- 20 -
3-1 MCU Pin Configuration
(Drawing 3.1, ATmega644p MCU)
This manual suits for next models
3
Table of contents
Popular Control Unit manuals by other brands

Bosch
Bosch Rexroth IndraControl XM21 operating instructions

Pfeiffer Vacuum
Pfeiffer Vacuum TPG 366 MAXIGAUGE operating instructions

resideo
resideo Braukmann L5 Series quick start guide

Texas Instruments
Texas Instruments LP8863EVM user guide

Dakota Digital
Dakota Digital BIM-01-2-AEM quick start guide

Panasonic
Panasonic CF-BAV0512U operating instructions

ARTERY
ARTERY AT32F421 Series Reference manual

Allen-Bradley
Allen-Bradley ControlLogix 1756-HYD02 installation instructions

Carrier
Carrier INDUCTION AIR TERMINALS 36S installation instructions

Yellowtec
Yellowtec intellimix Getting started

Pari
Pari 041F05 Instructions for use

Danfoss
Danfoss iC7 Series installation guide