DOC12_WT56F216 EVB Operation Manual V1.1

WT56F216 EVB Operation Manual
WT56F216
Evaluation Board
Operation Manual
REV. 1.1
April 20, 2012
This document is Weltrend confidential information. Do not copy.
WT56F216 EVB Operation Manual
Version
1.0
1.1
Date
Applicant
Description
2012/1/10
Louis
1. Update the EVB parts and outline diagrams
2012/04/20 Louis
2. Schematic update
3. Added single wire programmer earphone jack
Interface instructions
4. BOM table updates
5. Remove RG441WT PKG Type instructions
This document is Weltrend confidential information. Do not copy.
2
WT56F216 EVB Operation Manual
Table of Contents
CHAPTER 1
WT56F216 EVB H/W DESCRIPTION ..............................................................................................................5
1.1 SYSTEM BLOCK DIAGRAM ....................................................................................................................................................5
1.2 EVB COMPONENT LOCATION ...............................................................................................................................................6
WT56F216-RG440WT PKG TYPE ...................................................................................................................................6
CHAPTER 2
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
DC INPUT CONNECTOR .........................................................................................................................................................7
BATTERY INPUT PORT ...........................................................................................................................................................7
VDD VOLTAGE SELECTOR ...................................................................................................................................................8
SWUT (SINGLE WIRE UART) INTERFACE PROGRAMMING PORT .........................................................................................8
SAMSUNG (S3F9488) PROGRAMMING PORT .........................................................................................................................9
SPI INTERFACE PORT ............................................................................................................................................................9
UART INTERFACE PORT .....................................................................................................................................................10
I2C INTERFACE ....................................................................................................................................................................10
SINGLE WIRE PROGRAMMER EARPHONE JACK INTERFACE PORT ........................................................................................11
WT6703 ISP INTERFACE ..................................................................................................................................................11
LCD DRIVER PORT ...........................................................................................................................................................12
CHAPTER 3
3.1
3.2
3.3
3.4
3.5
3.6
3.7
3.8
3.9
WT56F216 EVB OPERATION DESCRIPTION................................................................................................18
WT56F216 TEST AND DEMO PLATFORM ............................................................................................................................18
EVB OUTLINE (WT56F216-RG440WT PKG TYPE) ......................................................................................................18
LCD DISPLAY (DRIVER DESCRIPTION) ...............................................................................................................................19
ADC MEASURE (DRIVER DESCRIPTION).............................................................................................................................19
TIMER MODE (DRIVER DESCRIPTION) .................................................................................................................................20
TRIGGER COUNTER (DRIVER DESCRIPTION) .......................................................................................................................20
BUZZER (DRIVER DESCRIPTION) .........................................................................................................................................21
UART (DRIVER DESCRIPTION) ...........................................................................................................................................21
CHAPTER 5
5.1
5.2
5.3
5.4
5.5
5.6
5.7
5.8
WT56F216 EVB DIAGRAM DESCRIPTION ...................................................................................................13
MAIN POWER SYSTEM .........................................................................................................................................................13
VDD POWER OPTION ..........................................................................................................................................................13
POWER CIRCUIT ..................................................................................................................................................................14
RESET CIRCUIT ..................................................................................................................................................................14
SINGLE WIRE EARPHONE JACK INTERFACE CIRCUIT ............................................................................................................15
OSCILLATE CIRCUIT ............................................................................................................................................................15
BUTTON FUNCTION .............................................................................................................................................................16
BUZZER CIRCUIT ..............................................................................................................................................................16
WT6703 FREQUENCY GENERATOR PERIPHERAL CIRCUIT ..................................................................................................17
CHAPTER 4
4.1
4.2
4.3
4.4
4.5
4.6
4.7
WT56F216 EVB INPUT PORT DESCRIPTION .................................................................................................7
DRIVER MODULE.............................................................................................................................................22
DRIVER MODULE SUMMARY...............................................................................................................................................22
LCD DRIVER PROGRAM <API_LCD4COM.C>....................................................................................................................23
ADC DRIVER PROGRAM <DRV_ADC.C> ...........................................................................................................................23
CLOCK (RTC) DRIVER PROGRAM <API_RTC.C> ................................................................................................................24
TRIGGER COUNTER DRIVER <DRV_ENHANCE TIMER.C> ..................................................................................................24
BUZZER FRIVER <API_MUSIC.C>.......................................................................................................................................24
UART DRIVER <API_UARTDEBUG.C> ..............................................................................................................................25
KEY PAD DRIVER PROGRAM <API_DKEY.C> ..................................................................................................................25
This document is Weltrend confidential information. Do not copy.
3
WT56F216 EVB Operation Manual
CHAPTER 6
6.1
6.2
6.3
6.4
APPENDIX ..........................................................................................................................................................26
CIRCUIT ..............................................................................................................................................................................26
EVB CIRCUIT (WT56F216-RG440WT PKG TYPE)........................................................................................................26
BOM...................................................................................................................................................................................28
EVB BOM (WT56F216-RG440WT PKG TYPE)............................................................................................................28
LCD SPEC (4*18) ...............................................................................................................................................................29
ORDERING INFORMATION ...................................................................................................................................................30
This document is Weltrend confidential information. Do not copy.
4
WT56F216 EVB Operation Manual
Chapter 1 WT56F216 EVB H/W Description
1.1
System Block Diagram
WT56F216 is an 8052 Micro Controller with LCD Driver enhanced, the EVB was designed by QFP44 pin PKG type,
with the system structure as below.
WT56F216 EVB uses WT56F216-RG440WT PKG type (the pin count is the same as Samsung-S3F9488).
VDD
COM 0~7
SEG 0~19
SCL
VDD
47uF
Battery
Slave I2C
SDA
0.1uF
SCK
CS
20pF
XIN
SPI
MISO
24MHz
MOSI
XOUT
VDD
20pF
22pF
XTIN
32.768 kHz
XTOUT
WT56F216
22pF
BUZ
GPIOB6
VDD
10K
Jumper
4.7uF
RST / SWUT
WLINK-SWUT
ISP Board
This document is Weltrend confidential information. Do not copy.
5
GPIOB7
KEY 1
GPIOB5
KEY 2
GPIOA7
KEY 3
WT56F216 EVB Operation Manual
1.2
EVB Component Location

WT56F216-RG440WT PKG type
U4
WT56F216
JP2
COM 0~7
SEG 0 ~18
JP7
P2
Single-wire
UART Interface
Programming Port
Port
SWB3
Mode / Enter Key
J6
Single-wire
Programming
Earphone socket
interface port
SWB1
WT56F216
Reset
JP3
Samsung 9488
Programming Port
SWB4
UP Option Key
Down Option Key
JP5
SPI Interence Port
VR3
Adjust Duty
VR
JP4
I2C Interface Port
VR2
Adjust Frequency
VR
VR1
Adjust Voltage
VR
JP1
J2
BTA1
Voltage Selection
DC 12 V Power 9V Battery Input
Jump (5V / 3.3V)
SWB1
WT6703 Reset
U3
WT6703
This document is Weltrend confidential information. Do not copy.
6
P1
WT6703
ISP Interface Port
WT56F216 EVB Operation Manual
Chapter 2
2.1
WT56F216 EVB Input Port Description
DC Input Connector
Component Location (J2)
EVB DC voltage input port (support voltage: DC 7V ~ 18V)
2.2
Pad Number
Description
1
positive pin input
2
--
3
negative pin input
Battery Input Port
Component Location (BTA1)
External Battery port (Battery Voltage Input range: 7V ~ 18V)
Pitch (2.54 mm)
Pad Number
Description
1
positive battery input
2
negative battery input
This document is Weltrend confidential information. Do not copy.
7
WT56F216 EVB Operation Manual
2.3
VDD Voltage Selector
Component Location (JP1)
The VDD Voltage Selector is for WT56F216, voltage can support 2.2V ~ 5.5V, the Selector input is 3.3V or 5V
voltage or use the external power to support (External Power should be under 5.5V, according to the spec definition)
pitch (2.54 mm)
2.4
Pad Number
Description
1
5V (Jump 1-2 short)
2
VDD (external power input pin)
3
3.3V (Jump 2-3 short)
Jump (2.54 mm)
SWUT (Single Wire UART) Interface Programming Port
Component Location (JP7)
WT56F216 Single Wire Programming Port
pitch (1.25 mm)
Pad Number
Description
1
VDD
2
SWUT
3
GND
This document is Weltrend confidential information. Do not copy.
8
WT56F216 EVB Operation Manual
2.5
Samsung (S3F9488) Programming Port
Component Location (JP3)
WT56F216-RG440WT pin to pin with Samsung (S3F9488) programming port
Pitch
(2.54 mm)
2.6
Pad Number
Description
Pad Number
Description
1
GND
4
SDA
2
VDD
5
VPP
3
SCL
6
RST
SPI Interface Port
Component Location (JP5)
This is SPI serial interface.
pitch (1.25 mm)
Pad Number
Description
Pad Number
Description
1
VDD
4
MOSI
2
SCK
5
CS
3
MISO
6
GND
This document is Weltrend confidential information. Do not copy.
9
WT56F216 EVB Operation Manual
2.7
UART Interface Port
Component Location (P2)
This is UART serial transmission interface.
Pitch (1.25 mm)
2.8
Pad Number
Description
1
5V
2
RXD
3
TXD
4
GND
I2C Interface
Component Location (JP4)
I2C Interface for SLAVE
pitch (1.25 mm)
Pad Number
Description
1
VDD
2
Slave_SCL
3
Slave_SDA
4
GND
This document is Weltrend confidential information. Do not copy.
10
WT56F216 EVB Operation Manual
2.9
Single Wire Programmer Earphone Jack Interface port
Component Location (J6)
Single wire programmer (SWUT) Earphone Jack interface port
Pad Number
Description
Pad Number
Description
1
GND
5
SWUT
2
VDD
6
NC
3
NC
7
NC
4
RESET
8
NC
2.10
WT6703 ISP Interface
ISP Port for internal testing
ISP programming Port for WT6703F
pitch (1.25 mm)
Pad Number
Description
1
VDD
2
DSCL
3
DSDA
4
GND
This document is Weltrend confidential information. Do not copy.
11
WT56F216 EVB Operation Manual
2.11
LCD Driver Port
Component Location (JP2)
LCD Driver Port:
Pitch (2.54 mm)
Pad Number
Description
Pad Number
Description
1
COM 0
15
SEGMENT 6
2
COM 1
16
SEGMENT 7
3
COM 2
17
SEGMENT 8
4
COM 3
18
SEGMENT 9
5
COM 4
19
SEGMENT 10
6
COM 5
20
SEGMENT 11
7
COM 6
21
SEGMENT 12
8
COM 7
22
SEGMENT 13
9
SEGMENT 0
23
SEGMENT 14
10
SEGMENT 1
24
SEGMENT 15
11
SEGMENT 2
25
SEGMENT 16
12
SEGMENT 3
26
SEGMENT 17
13
SEGMENT 4
27
SEGMENT 18
14
SEGMENT 5
28
SEGMENT 19
This document is Weltrend confidential information. Do not copy.
12
WT56F216 EVB Operation Manual
Chapter 3
3.1
WT56F216 EVB Diagram Description
Main Power system
There are three options for WT56F216 EVB main Power to choose:
1. External DC-12 V (J2) input: Through regulator and produce DC power 5V and 3.3V.
2. Battery (BTA1) input: Through regulator and produce DC power 5V and 3.3V.
3. VDD input: There are no input for main power, please see below [VDD Power Option] description.
WT56F216 EVB Main Power Circuit:
3.2
VDD Power Option
There are four options for WT56F216 VDD power, the operation voltage is 5V, 3.3V or external input.
(External input power must not exceed Max. 5.5V as spec definition).
1. Pad JP1 1-2 connect: means WT56F216 VDD voltage is 5 V.
2. Pad JP1 2-3 connect: means WT56F216 VDD voltage is 3.3V.
3. WLINK-SWUT Adapter VDD: Using WLINK-SWUT Adapter VDD for WT56F216 VDD power.
4. External VDD: It can input from pad J5 (positive), J4 (negative), external input VDD must not exceed
Max. 5.5V as spec. definition.
If power is normal operation, DB1, DB2, DB3 LED will light.
WLINK-SWUT
This document is Weltrend confidential information. Do not copy.
13
WT56F216 EVB Operation Manual
3.3
Power Circuit
VDD input needs filter capacitor, this is best that layout is close to the pin.
3.4
RESET circuit
WT56F216 RESET circuit and SWUT single wire programming use the same pin, the circuit is as follows.
When SWUT on programming the JP6 JUMP should be power down and the RC RESET should disconnect from it,
if the REST functions had been used, when programming is finished, the JP6 JUMP needs to plug again.
This document is Weltrend confidential information. Do not copy.
14
WT56F216 EVB Operation Manual
3.5
Single wire earphone Jack interface Circuit
Since reset WT56F216 circuit and SWUT single wire programming both used the same pin, for update easily when
mass production, design the below circuit, when plugs the earphone programming line, the RESET / SWUT (4-5)
will break, and start to program, after programming finished, removes the earphone programming line, the springs
of earphone jack let RESET / SWUT(4-5) short, and RC will go back to RESET state.
3.6
Oscillate Circuit
WT56F216 12 MHz and 32.768 kHz oscillator circuit are as bellow:
This document is Weltrend confidential information. Do not copy.
15
WT56F216 EVB Operation Manual
3.7
Button Function
WT56F216 EVB reserves three function buttons.
1. Mode/Confirm (Enter)
Mode (3~4 seconds press) / Confirm (Short press)
2. UP
3. Down
3.8
BUZZER Circuit
BUZZER Circuit is as below.
This document is Weltrend confidential information. Do not copy.
16
WT56F216 EVB Operation Manual
3.9
WT6703 Frequency Generator Peripheral Circuit
WT56F216 EVB insides WT6703 IC, it used for frequency generator. When the external resistor was adjusted,
Duty-ADC Pin can produce 0V ~ 3.3V voltage input. According to the different voltages, WT6703 will produce 30
kHz ~ 60 kHz input to Freq_ADC Pin for WT56F216 count test.
This document is Weltrend confidential information. Do not copy.
17
WT56F216 EVB Operation Manual
Chapter 4
4.1
WT56F216 EVB Operation Description
WT56F216 Test and Demo Platform
There are six function modes in WT56F216 EVB:
Mode:
Button Operation:
1. LCD Display
1. Mode/ Confirm (KEY1)
2. ADC measure
Mode (Press and Hold 3~4 seconds) / Confirm (Short Press)
3. Timer
2. Up Option (KEY2)
4. Trigger Counter
3. Down Option (KEY3)
5. Buzzer
6. UART

EVB Outline (WT56F216-RG440WT PKG type)
This document is Weltrend confidential information. Do not copy.
18
WT56F216 EVB Operation Manual
4.2
LCD Display (Driver Description)
When power on, LCD display【do 1】, and press『Mode/Confirm』, then LCD executes 000000000~999999999.
(Press and hold『Mode/Confirm』3~4 seconds, then back to main figure【do 1】)
4.3
ADC Measure (Driver Description)
In main figure【do 1】, and press『UP Option』, then LCD display【do 2】; press again『Mode/Confirm』, then
LCD displays 4 characters. Adjust ADC voltage button, and have voltage 0V ~ 3.3V, and LCD will make voltage
transfer to 12-Bit (0000~4094).
(Press and hold『Mode/Confirm』3~4 seconds, it can back to main figure【do 1】)
This document is Weltrend confidential information. Do not copy.
19
WT56F216 EVB Operation Manual
4.4
Timer mode (Driver Description)
In main figure【do 1】, press『Up Option』, and LCD display【do 3】; press『Mode/ Confirm』then
LCD display hour-minute-second formats. Press 『Mode/ Confirm』, and second will show “Flicker” status then press
『Up Option』or『Down Option』, it can set up seconds. After setting up, please press『Mode/ Confirm』, it can set up
minutes, and so on. After setting up hour-minute-second, press『Mode/ Confirm』then finish.
(Press and hold『Mode/ Confirm』3~4 seconds, and back to main figure【do 1】)
4.5
Trigger Counter (Driver Description)
In main figure【do 1】, press『Up Option』, LCD display【do 4】, and press『Mode/Confirm』, then
LCD displays 5 characters. Adjust frequency button to make WT6703 produce 30K ~ 60K frequency and
transfer to WT56F216 counters.
After counting, the values all display in LCD.
(Press and hold『Mode/ Confirm』3~4 seconds and back to main figure【do 1】)
This document is Weltrend confidential information. Do not copy.
20
WT56F216 EVB Operation Manual
4.6
Buzzer (Driver Description)
In main figure【do 1】, press『Up Option』, LCD display【do 5】, and press『Mode/Confirm』, then Buzzer will be
automatically issued by the seven scales.
(Press and hold『Mode/ Confirm』3~4 seconds and back to main figure【do 1】)
4.7
UART (Driver Description)
In main figure【do 1】, press『Up Option』, LCD display【do 6】, and press『Mode/Confirm』, then LCD displays
2 characters. Connect WT56F216 EVB and PC by UART cable, then Key in 8 bit data in PC (Use Terminal Tool), and
LCD displays this 8 bit data.
(Press and hold『Mode/ Confirm』3~4 seconds and back to main figure【do 1】)
This document is Weltrend confidential information. Do not copy.
21
WT56F216 EVB Operation Manual
Chapter 5
5.1
Driver Module
Driver Module Summary
Please refer to the following program module:
This document is Weltrend confidential information. Do not copy.
22
WT56F216 EVB Operation Manual
5.2
5.3
LCD Driver Program <API_LCD4com.c>
Function
Description
void API_LCDInitital(void)
Initialized LCD, and set 4 Com LCD
1/3 bias, 1/4 duty
void API_ClearLCD(void)
Clear LCD mapped RAM
void API_DemoLCD(BYTE dNumber)
LCD demos program: LCD will continue to show 0 to 9
void API_DisplayM4567(void)
LCD2 demo program: LCD shows 12:00
void API_DisplaySleep(void)
Saving power demo program: LCD shows ”SLEEP” and
MCU enters into saving power mode
void API_ShowADCValue(WORD adc_val)
ADC demo program: AD will show 0 to 4095 according to
external voltage input
void API_ShowCounter(WORD freq)
Counter demo program: count external pin, count range 0 to
65535 Hz
void API_ShowDoNumber(BYTE
DoNumber)
Main figure demo program: display do1 ~ do8
void API_ShowRTC(void)
Clock Program: shows time: minute: second
void Dis_Num(BYTE *add,BYTE val)
Load LCD TABLE to LCD BUFFER
void Lcd_Display(void)
Load LCD BUFFER to LCD RAM and input LCD
void API_8ComLcdInitital(void)
Initialize LCD and set 8 Com LCD 1/3 bias, 1/8 duty
ADC Driver Program <DRV_Adc.c>
Function
Description
WORD API_AverageADCData
(BYTE ADC_Channel)
ADC average data for sampling 16 times
void DRV_AnalogKeyInitial(void)
Initialization of the ADC
WORD DRV_ReadAnalogChannel
(BYTE AD_Channel)
ADC in specific channel
This document is Weltrend confidential information. Do not copy.
23
WT56F216 EVB Operation Manual
5.4
Clock (RTC) Driver Program <API_rtc.c>
Function
5.5
Description
void API_SwRTCInitial(void)
Initialize real-time Timer every 0.5 seconds to
generate INT0 interrupt
void INT0_ISR_Entry(void) interrupt 0
INT0 interrupted, including RTC automatic timing
Trigger Counter Driver <DRV_Enhance Timer.c>
Function
5.6
Description
void API_MathCaptureTotal(void)
Count “Enhance Timer/Counter” capture data, and
transfer to real frequency
Void DRV_EnhanceTimerCaptureInitial(void)
Initialize “Enhanced Timer/Counter”
Buzzer Friver <API_Music.c>
Function
Description
void Init_OS_Timer2(void)
Initialize ”Timer 2”
void KeyMusic_Play(void)
Key Voice
void LoadMusicTable(BYTE MusicIndex)
Take out musical corresponding to count value
void Music_Play(void)
Play music to produce Do, Re, Mi; Fa, So, La, Si
void Timer2 (void) interrupt 5
”Timer 2” interrupt solution
This document is Weltrend confidential information. Do not copy.
24
WT56F216 EVB Operation Manual
5.7
UART Driver <API_UartDebug.c>
Function
5.8
Description
void API_UartDebugInitial(void)
Initialize the debug side, according to
UART_DEBUG_PORTchoosed UART0 or UART1
void DRV_Uart0Inital(void)
Initialize UART0 as 115200, n, 8, 1
void DRV_Uart1Initial(void)
Initialize UART1 as 115200, n, 8, 1
void SelectUart0Baudrate(BYTE BitRateIndex)
Set UART0 baud rate as 1200 to 230400
void SelectUart1Baudrate(BYTE BitRateIndex)
Set UART1 baud rate as 1200 to 230400
void DRV_IntToStr(U16 u16Val, U8 u8Base, char
*pBuf, U8 u8Length)
Sub program will change value to word
void DRV_Printf(char *pFmt, U16 u16Val)
Type transfer: 0xAAF for 1234
void DRV_PutChar(char u8Char)
Data output from UART
void DRV_PutStr(char *pFmt)
String output from UART
void UART0_interrupt (void) interrupt 4
UART0 interrupt receiving sub program
KEY PAD Driver Program <API_Dkey.c>
Function
Description
void API_DigitalKey0Routine(void)
Detecting Down key if work
void API_DigitalKey1Routine(void)
Detecting Up key if work
void API_DigitalKey2Routine(void)
Detecting Enter key if work
void API_DigitalKey10mS(void)
Key delay and bouncing
void API_DigitalKeyInitial(void)
Initialize the GPIO to input and can promote the
resistance
void Check_Key(void)
Sub program detect three key (Down, Up, Enter
Keys)
void Key_Process(void)
Sub program for key function
This document is Weltrend confidential information. Do not copy.
25
WT56F216 EVB Operation Manual
Chapter 6
6.1

Appendix
Circuit
EVB Circuit (WT56F216-RG440WT PKG type)
1. Power
This document is Weltrend confidential information. Do not copy.
26
WT56F216 EVB Operation Manual
2. WT56F216 (MCU)
This document is Weltrend confidential information. Do not copy.
27
WT56F216 EVB Operation Manual
6.2

BOM
EVB BOM (WT56F216-RG440WT PKG type)
This document is Weltrend confidential information. Do not copy.
28
WT56F216 EVB Operation Manual
6.3
LCD Spec (4*18)
This document is Weltrend confidential information. Do not copy.
29
WT56F216 EVB Operation Manual
6.4
Ordering Information
1. WT56F216 Development Kit
Kit
WT56F216
Development Kit
Product Name
Number
WLINK-SWUT x 1
WA000
Development and Demo board (WT56F216 EVB With LCD
Module) x 1
WB000
SWUT Programming Wire x 1
2. WT56F216 Starter Kit
Kit
WT56F216
Starter Kit
Product Name
Number
WLINK-SWUT x 1
WA000
Development and Demo Board (WT56F216 Starter Kit Board)
x1
WB005
SWUT Programming Wire x 1
3.
WT56F216 Evaluation Board Development and Demo Board
Kit
WT56F216
Development and
Demo Board
4.
Product Name
Number
Development and Demo Board (WT56F216 EVB)
WB000
EVB operation manual
DOC12
WT56F216 Starter Kit Board (simple version )
Kit
WT56F216
simple version
Product Name
Number
Simple version (WT56F216 Starter Kit Board)
WB005
EVB Operation Manual
DOC23
This document is Weltrend confidential information. Do not copy.
30
WT56F216 EVB Operation Manual
5.
Single Wire Programming Board (WLINK-SWUT)
Kit
Product Name
Single Wire Programming Board PL-2303 (WLINK-SWUT)
Single Wire
Programmer
Board
WLINK-SWUT
Number
WA000
Single Wire Programming Board CP-2102 (WLINK-SWUT)
WLINK-SWUT Operation Manual
This document is Weltrend confidential information. Do not copy.
31
DOC2