Cover
Embest S3CEV40 EVB
User Guide
Version 2.1
Embest Info&Tech Co.,LTD. All rights reserved.
Room 210, Luohu Science&Technology Building,
#85 Taining Road, Shenzhen, Guangdong, China
Tel: +86-755-25635626/25635656/25631365 Fax: +86-755-25616057
E-mail: market@embedinfo.com
http://www.embedinfo.com
Copyright ©2001-2004 Embest Info&Tech Co.,LTD. All rights reserved.
support@embedinfo.com
Content
FOREWORD ..................................................................................................................3
CHAPTER I INTRODUCTION TO EMBEST S3CEV40 ................................................. 4
1.1 Overview........................................................................................................................4
1.2 Embest S3CEV40 Development Kit ..............................................................................5
1.3 Features of Embest S3CEV40........................................................................................6
CHAPTER II INSTALLATION AND USE ......................................................................7
2.1 Structure of Embest S3CEV40 Development Board......................................................7
2.2 Power Supply of Embest S3CEV40...............................................................................8
2.3 JTAG Connection...........................................................................................................9
2.4 Serial Port Connection .................................................................................................10
2.5 Hardware Testing ......................................................................................................... 11
CHAPTER III HARDWARE S TRUCTURE .......................................................................19
3.1 Electric circuit structure.................................................................................................19
3.2 Core Electric Circuit ......................................................................................................20
3.3 Embest S3CEV40 Communication Port Circuit ............................................................25
3.4 External Expanded Module............................................................................................28
3.5 I/O usage ........................................................................................................................33
3.6 Bus Expansion................................................................................................................37
CHAPTER IV SOFTWARE S YSTEM ...........................................................................38
4.2 Introduction to Start Program.........................................................................................42
4.3 µCOS-II..........................................................................................................................50
4.4 Example Codes ..............................................................................................................59
CHAPTER V CUSTOMER SERVICE ............................................................................61
APPENDIX A JUMPER AND SWITCH SET ..................................................................62
Copyright ©2001-2004 Embest Info&Tech Co.,LTD. All rights reserved. Page 2
Foreword
This manual is prepared for users of Embest S3CV40 development board of
Embest Info & Tech Co., Ltd. The manual contains the following chapters:
Chapter I Introduction to Embest S3CEV40
Chapter II Installation and Use
Chapter III Hardware Structure of Embest S3CEV40 Board
Chapter IV Software System of Embest S3CEV40
Chapter V After-sales Service and Technical Support
Appendix Jumper and Switch Setting
When using the Embest S3CEV40 development board and the Manual, the
user can also refer to the circuit diagram (included in the CD enclosed).
Due to the limited time, errors may exist in this manual. We are open to
any corrections from readers. Thank you!
Copywrite©2003 by Shenzhen Embest Info&Tech Co.,LTD.
All rights reserved.
No part of this document may be reproducted or transmitted in any form or
by any means without prior written consent of Embest Info&Tech Co.,LTD.
Embest
®
is registered trademarks of Embest Info&Tech Co.,LTD.
Copyright ©2001-2004 Embest Info&Tech Co.,LTD. All rights reserved. Page 3
Chapter I Introduction to Embest S3CEV40
1.1 Overview
Embest S3CEV40 development board is an all-purpose ARM development
board developed by Shenzhen Embest Info & Tech Co., Ltd. It is the best choice
for designing reference , development and application of Samsung S3C44B0x
processor(ARM7TDMI RISC CPU core). It is also an ideal platform for learning
& teaching of ARM and embedded software.
Embest S3CEV40 development board hardware system includes memory,
I/O, digital LED, LCD, touch screen, keyboard and audio output.
Communication interfaces include serial ports, Ethernet interface, USB
interface and I2C interface. Advanced extension includes IDE disk, CF card and
a Flash electronic disk. It is an all-purpose development board with a complete
set of interfaces.
Embest S3CEV40 development board has a multi-functional test program
and driver with uCOS-II and uCLinux real-time operating system already
installed. Embest S3CEV40 development board provides a standard 20-pin
JTAG interface with which the user can fully control CPU and test the program
via JTAG.
Copyright ©2001-2004 Embest Info&Tech Co.,LTD. All rights reserved. Page 4
1.2 Embest S3CEV40 Development Kit
A complete set of Embest S3CEV40 development kit includes:
Embest S3CEV40 development board
RS232 serial port line
5V DC power adapter
USB line
Embest S3CEV40 CD-ROM:
- Manual
- Circuit diagram
- Start program and functional module test programs
- All source programs of real-time operating system uCOS-II
When opening the package, please check if any of the above items is
missing. If so, please contact your distributor right away.
Copyright ©2001-2004 Embest Info&Tech Co.,LTD. All rights reserved. Page 5
1.3 Features of Embest S3CEV40
Hardware specification:
5.0V DC or USB power supply
2 M bytes 16-bit Flash
8 M bytes 16-bit SDRAM
4K bit EEPROM with IIC BUS
2x RS232
USB connecter
10M Ethernet interface connector
microphone input
IIS audio frequency output (speaker out)
16 M Bytes Nand Flash
External IDE port
LCD&TSP touch screen port
320×240 LCD * (optional)
4×4 keyboard * (optional)
Reset button
2 interrupt buttons and 2 LEDS
8 segment leds
20-pin JTAG interface connector
4 groups 2×20 PIN expansion connectors of CPU
Copyright ©2001-2004 Embest Info&Tech Co.,LTD. All rights reserved. Page 6
Chapter II Installation and Use
This chapter is mainly an introduction to how to install and connect the
Embest S3CEV40 development board, and how to conduct basic software and
hardware testing.
2.1 Structure of Embest S3CEV40 Board
Embest S3CEV40 development board consists of three parts: mainboard,
LCD sub-board and keyboard sub-board. The structure of the development
board is shown in Figure 2-1:
Main
Figure 2-1 Integral Diagram of Embest S3CEV40 Development Board
LCD
Keybo
Copyright ©2001-2004 Embest Info&Tech Co.,LTD. All rights reserved. Page 7
The structure of the mainboard of Embest S3CEV40 is shown in Figure
2-2:
8-SE
EARPhone
MicroPhon
Ethernet
USB
SW3
RTL8019AS
IDE
FLASH
SDRAM
UART1
SSFD
S3C44B0
UART0
SW1,SW2
LCD&TS
Keyboar
SW4~6
Power JTAG
RESET
SB2
LED1
LED2
SB3
Extend
Figure 2-2 Structure of Mainboard of Embest S3CEV40 Development
Board
2.2 Power Supply of Embest S3CEV40
Embest S3CEV40 development board uses nominal current of
500mA/5VDC. The board is assembled with a special-purpose DC adapater, so
that power can be supplied to the board via the adapater or an external.
Copyright ©2001-2004 Embest Info&Tech Co.,LTD. All rights reserved. Page 8
2.3 JTAG Connection
Figure 2-3 is the model of Embest S3CEV40 development board. The host
is connected to the development board via JTAG emulator. The operating and
developing environment of the host, e.g. Embest IDE, can be directly
downloaded with the emulator and then debugged.
Figure 2-3 Development Model of Embest S3CEV40
Embest S3CEV40 development board provides a standard 20-pin JTAG
interface. User can use the JTAG line attached to this board to connect the
emulator.
Copyright ©2001-2004 Embest Info&Tech Co.,LTD. All rights reserved. Page 9
2.4 Serial Port Connection
User can use the serial port line enclosed with the Embest S3CEV40
development board to connect the development board and the host. The host
communicates with the development board through the HyperTerminal (PC),
so as to facilitate preliminary hardware testing.
The serial port line connects port UART0 of the development board. The
HyperTerminal setting for host operating is serial port COM1 or COM2 and the
baud rate is 115200, as shown in Figure 2-4:
Figure 2-4 HyperTerminal Serial Port Setting
When correctly connected, the HyperTerminal will will be shown as in
Figure 2-5.
Copyright ©2001-2004 Embest Info&Tech Co.,LTD. All rights reserved. Page 10
2.5 Hardware Testing
A detailed hardware test program is provided by Embest Info & Tech Co.,
Ltd. Open the disk attached to the board, copy S3CEV40 routine file to
EmbestIDE Installation Directory\Samsung folder, run corrpesponding files in
the workspace and you can test any individual hardware of the board.
User can also use the testing program provided by Embest Info & Tech Co.,
Ltd to test the hardware of this board in following steps:
1. Use the S232 standard serial port line to connect the development board
and the host,
2. Turn on the power,
3. All the 8-segment Digit LEDs of the development board are on. LED1 and
LED2 flashes in turn,
4. LCD screen displays the information showed as Figure 2-21. The
HyperTerminal output is shown in Figure 2-5:
Embest S3C44B0X Evaluation Board(S3CEV40)
*==================================*
*= Embest Info&Tech Co.,LTD. =*
*==================================*
*========== R&D CENTER ==========*
*======= 86-755-25631365 ========*
*===== support@embedinfo.com ======*
*=== Version 2.1 ===*
Please select test item:
1: 8LED test 2: LCD test 3: Keyboard test
4: Sound test 5: Timer test 6: Ethernet DHCP test
7: Flash test 8: IIC test 9: Ethernet TFTP test
0: TouchScreen test
>
Figure 2-5 Power-On/Reset HyperTerminal Output
Copyright ©2001-2004 Embest Info&Tech Co.,LTD. All rights reserved. Page 11
User can use the PC keyboard to enter 0-9 to select and test any specific
hardware:
1 8LED Test: Enter “ 1 ” and the HyperTerminal output will be shown as in
Figure 2-6. Normally, the digit LED of the development board will count from
0 - F, and return back to the initial state after 0 – F is displayed.
> 1
Look at 8-segment Digit LED...
Figure 2-6 HyperTerminal for Digit LED Test
2 LCD Test: Enter “ 2 ” and the HyperTerminal output will be shown as in
Figure 2-7. The LCD screen displays a rectanglular frame and the name of
Embest Info & Tech Co., Ltd, as shown in Figure 2-8, an then returns back to
the initial state.
> 2
Look at LCD...
Figure 2-7 HyperTerminal for LCD Test
Embest Info&Tech Co.,LTD.
Figure 2-8 LCD Screen
3 Keyboard Test: Enter “ 3 ” and the HyperTerminal output will be shown
as in Figure 2-9:
> 3
Please press one key on KeyBoad(4 x 4) and look at LED ...
Figure 2-9 HyperTerminal for Keyboard Test
Copyright ©2001-2004 Embest Info&Tech Co.,LTD. All rights reserved. Page 12
User can use the small keyboard of the development board to enter 0-F
and the digit LED of the development board will automatically display the
corresponding value.
4 Sound Test: Enter “ 4 ” and the HyperTerminal output will be as shown
in Figure 2-10:
> 4
CODEC: Philips UDA1341 (U5)
Please listen to sound.
Press any key to exit...
Figure 2-10 HyperTerminal for Audio Test
When the audio output is normal, you can hear a continuous “ De-Dee ”.
Press any key on the PC keyboard and return to the initial state.
5 Timer Test: Enter “ 5 ” and the HyperTerminal output will be as shown
in Figure 2-11:
> 5
Timer Start, press any key to exit...
****
Figure 2-11 HyperTerminal for Timer Test
If the timer is normal, a “*” will be printed out at regular interval. Press any
key on the PC keyboard to return to the initial state.
Copyright ©2001-2004 Embest Info&Tech Co.,LTD. All rights reserved. Page 13
6 Ethernet DHCP: Dynamic configuration of the IP address. Before
Ethernet DHCP test, user must run the DHCP Server program or other similar
dynamic configuration tool on a local or networked PC. The DHCP Server
software used by this example is shared, so it is not available in the disk. User
may use any other similar tool software. Enter “ 6 ” into the PC HyperTerminal
after DHCP is conFigure d and parameter is set. If no dynamic IP configuration
software is running, or if the dynamic IP configuration software is running
abnormally, the HyperTerminal output will be as shown in Figure 2–12. Press
“ ESC ” and return to the initial state.
> 6
Waiting DHCP server to Respond.
Press any key to exit ...
Figure 2-12 Waiting for DHCP Server
When the IP address is successfully conFigure d, return to the conFigure d
IP. The output will be as shown in Figure 2-13.
Receive DHCP Message from server 192.192.192.88
Config local ip address 192.192.192.5
Figure 2-13 Output After Successful DHCP Configuration
7 Flash Test: Enter “ 7 ” and the HyperTerminal output will be as shown in
Figure 2-14.
> 7
SST39VF160-90 (U12)
Write 0x000-0xff to flash address 0x30000...
Flash Write and Check Success!
Figure 2-14 HyperTerminal for Flash Test
Copyright ©2001-2004 Embest Info&Tech Co.,LTD. All rights reserved. Page 14
Sequentially write 0x00-0xff into Flash address (0x30000). Read and
compare. When it is successful, the “ Success” prompt will be displayed. Press
any key on the PC to return to the initial state.
8 IIC Test: Enter “ 8 ” and the HyperTerminal output will be as shown in
Figure 2-15.
> 8
IIC Test using AT24C04 (U18)...
Write char 0-f into AT24C04
Read 16 bytes from AT24C04
0 1 2 3 4 5 6 7 8 9 a b c d e f
Figure 2-15 HyperTerminal for IIC Test
Th e te st p rog ram w ri t es 0-F int o c e rt a in add res s of AT 2 4C 04, and , f r om t he
same address, read the value out to the HyperTerminal.
9 Ethernet TFTP test: Enter “ 9 ” and the HyperTerminal output will be as
shown in Figure 2-18. User can run TFTPDown software or any other TFTP
download software on the host terminal to match development board
communications. TFTPDown software, whose name is TFTPDown.exe, can be
found in the disk attached to the development board. Before running, a static
IP address shall be conFigure d on the host. Usage Notes follows:
1.To set static IP address under MSDOS state:
arp -s 192.192.192.77 00-06-98-01-7e-8f
arp –a
Check if the configuration is successful
Set static IP
2. Congifure according to actual situation after running TFTPDown.exe.
The interface for host running TFTPDown is shown in Figure 2-16. Press
“ ESC ” on the PC keyboard to return to the initial state.
Copyright ©2001-2004 Embest Info&Tech Co.,LTD. All rights reserved. Page 15
allFF1K.bin is a test file. Other bin files may be used. User can self-define to
download the Flash address.
Figure 2-16 Operating Interface of TFTPDownload
After setting according to the parameters in the above diagram, click
“ Download ”. If TFTP is running correctly, the following prompt will be
displayed:
Figure 2-17 Successful Test of TFTP Download
Copyright ©2001-2004 Embest Info&Tech Co.,LTD. All rights reserved. Page 16
TFTP download file will give a download failure prompt when the network of
development board is not communicating normally or when the hardware of
development board is abnormal. User should check the network
communication before debugging.
> 9
Do you want to conFigure local IP ?
Y/y to conFigure local IP addr; D/d to use Default IP addr(192.168.0.200).
Press any key to continue ...
( y ) Please input IP address(xxx.xxx.xxx.xxx) then press ENTER: Press Y or
y to reset IP
192.192.192.77 Input the correct Enternet IP address
Manual Set local ip 192.192.192.77
Press any key to exit ... Then run TFTPDown.exe to download bin code to FLASH
Figure 2-18 Ethernet TFTP test Figure
0 TouchScreen Test: When this test is activated, the HyperTerminal
output will be as shown in Figure 2-19. The touch screen is divided into 16
panes and displays 0~F. When touched, the LCD touch screen outputs a
corresponding coordinate value at the HyperTerminal through the serial port,
and, (at the same time, outputs the previous touch coordinate, whose origin is
near the top left of a 4x4 keyboard) as shown in Figure 2-20. The touch
screen, theoretically, can identify 1 unit. An identification interval of 10 units is
suggested for touch-screen design. The ex-work test program only finished the
digital-analog conversion test on the touch screen. As to the coordinate
location, please refer to TouchScreen_Test routine. Press any key on the PC
keyboard to return to the initial state.
> 0
Touch Screen coordinate Rang in:
(Xmin,Ymin) is :(xxx,xxx)
(Xmax,Ymax) is :(xxx,xxx)
To use current settings. Press N/n key.
Want to Set Again(Y/N)? Y or y
Now press the diagonal point to ensure the coordinate
Copyright ©2001-2004 Embest Info&Tech Co.,LTD. All rights reserved. Page 17
Touch TSP's Cornor to ensure Xmax,Ymax,Xmax,Xmin
User touch coordinate(X,Y) is :(0239,0679) first diagonal point
User touch coordinate(X,Y) is :(0608,0303) second diagonal point
Touch Screen coordinate Rang in:
(Xmin,Ymin) is :(0239,0303) (x1,y1)
(Xmax,Ymax) is :(0608,0679) (x2,y2)
To use current settings. Press N/n key.
Want to Set Again(Y/N)? N or n
Now can get the coordinate value after press the key
* The Normal result (x2-x1) a little larger than 320 and (y2-y1) a little larger
than 240, otherwise press Y or y to ensure again.
Figure 2-19 HyperTerminal Output for Touch Screen Test
Pixel: 320 X 240. Coordinate Rang in: (0,0) - (320,240)
LCD TouchScreen Test Example(please touch LCD screen)
press any key to exit...
X-Posion[AIN1] is 0097 Y-Posion[AIN0] is 0132
X-Posion[AIN1] is 0117 Y-Posion[AIN0] is 0132
Figure 2-20 Coordinate Value Output for Touch Screen
After power up or Reset the board, LCD also print the info showed as:
( A Icon of mouse print here)
Embest S3C44B0X Evaluation Board(S3CEV40)
*==== Embest Info&Tech Co.,LTD. ====*
Please select test item:
1: 8LED test 2: LCD test 3: Keyboard test
4: Sound test 5: Timer test 6: Ethernet DHCP test
7: Flash test 8: IIC test 9: Ethernet TFTP test
0: TouchScreen test
>
Note: Please connect UART0(115.2K,8,N,1) to PC COMx
Figure 2-21 LCD pint infomations
The above are 10 basic functional tests for the development board. Should
you find any error, please contact the Market Department of Embest Info &
Tech Co., Ltd for assistance.
Copyright ©2001-2004 Embest Info&Tech Co.,LTD. All rights reserved. Page 18
Chapter III Hardware Structure
3.1 Electric circuit structure
Embest S3CEV40 Embest development board electric circuit structure is
shown in Figure 3-1. All main functions of this board is contained.
8-SEG
IIS Port
10M
RJ45
ethernet
LED
USB Port
power switch
8-SEG
Driver
IIS
controller
USB
IDE interface
Magnetic
SDRAM
controller
FLASH
ROM
MAC+PHY
DB9
UART 1
RS232
Driver
Nand Flash
MCU
S3C44B0X
DB9
UART 0
RS232
Driver
4×4keyboard
EEPROM
LCD&TSP port
Port
IIC
3.3V 2.5V
EBI
POWER
reset
LED
BUTTON
EBI
JTAG
Test Area
Figure 3-1 Structure of Embest S3CEV40
Copyright ©2001-2004 Embest Info&Tech Co.,LTD. All rights reserved. Page 19