DOC27_WT56F108 Starter Kit Board Operation Manual V1.0

WT56F108 Starter Kit Board Operation Manual
WT56F108
Starter Kit Board
Operation Manual
REV. 1.0
January 31, 2013
This document is Weltrend's confidential information , don't copy or print without any permission.
WT56F108 Starter Kit Board Operation Manual
Ver.
1.0
Date
2013/01/31
Applicant
Louis 1st version
Description
This document is Weltrend's confidential information, don't copy or print without any permission.
2
WT56F108 Starter Kit Board Operation Manual
Table of Contents
CHAPTER 1
WT56F108 STARTER KIT BOARD HARDWARE DESCRIPTION........................................................4
1.1 SYSTEM BLOCK DIAGRAM ....................................................................................................................................................4
1.2 EVB COMPONENTS LOCATION DESCRIPTION .......................................................................................................................5
CHAPTER 2
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
WT56F108 STARTER KIT BOARD CONNECTING PORT DESCRIPTION ........................................6
DC INPUT CONNECTOR .........................................................................................................................................................6
DC INPUT VOLTAGE SELECTION ...........................................................................................................................................6
SWUT (SINGLE WIRE UART) INTERFACE PROGRAMMING PORT .........................................................................................7
UART INTERFACE CONNECTOR PORT ..................................................................................................................................7
I2C INTERFACE PORT.............................................................................................................................................................8
EXTERNAL OSCILLATOR INPUT PIN SELECTION ....................................................................................................................8
WT56F108 PIN OUTPUT PORT ..............................................................................................................................................9
LCD PIN OUTPUT PORT ......................................................................................................................................................11
CHAPTER 3
WT56F108 STARTER KIT BOARD CIRCUIT DESCRIPTION...............................................................13
3.1 VDD POWER SELECTION: ...................................................................................................................................................13
3.2 POWER CIRCUIT ..................................................................................................................................................................13
3.3 RESET CIRCUIT .................................................................................................................................................................14
CHAPTER 4
WT56F108 STARTER KIT BOARD OPERATION MANUAL ...............................................................15
4.1 WT56F108 TEST AND DEMONSTRATION PLATFORM ..........................................................................................................15
4.2 LED DISPLAY .....................................................................................................................................................................16
CHAPTER 5
5.1
5.2
5.3
5.4
5.5
5.6
DRIVER MODULE...........................................................................................................................................17
DRIVER MODULE SUMMARY...............................................................................................................................................17
MAIN PROGRAMS <MAIN.C> ..............................................................................................................................................18
ADC DRIVER <DRV_ADC.C> ............................................................................................................................................18
LED DISPLAY PROGRAM <API_LED.C>.............................................................................................................................18
WATCH TIMER PROGRAM SETUP <API_RTC.C> ..................................................................................................................19
INTERRUPT SUB PROGRAM <INTERRUPT.C> ........................................................................................................................19
CHAPTER 6
APPENDIX.........................................................................................................................................................20
6.1 CIRCUIT ..............................................................................................................................................................................20
6.2 BOM...................................................................................................................................................................................22
6.3 ORDERING INFORMATION ...................................................................................................................................................23
This document is Weltrend's confidential information, don't copy or print without any permission.
3
WT56F108 Starter Kit Board Operation Manual
Chapter 1
1.1
WT56F108 Starter Kit Board Hardware Description
System Block Diagram
WT56F108 is an enhanced 8052 micro controller with LCD driver function, and the Starter Kit Board
used 64-pin LQFP type IC to design and demonstrate its functions. System structure is as the figure below.
WT56F108-RG64AWT PKG Type

VDD
VDD
VDD
47uF
0.1uF
Jump
10K
WT56F108
( RG64AWT )
4.7uF
SWUT / RESET
20pF
GPIOA0
32.768KHz
XTOUT
20pF
SWUT
XTIN
VDD
GPIOA1
GPIOB1
GPIOB4
LED
GPIOB5
GPIOB6
GPIOB7
GPIOF4
This document is Weltrend's confidential information, don't copy or print without any permission.
4
WT56F108 Starter Kit Board Operation Manual
1.2
EVB Components Location Description

WT56F108-RG64AWT PKG Type
WT56F108
64 pin
Output Port
WT56F108
LCD Pin
Output Port
SWB4
WT56F108
Reset
J12
SWUT
Programming
Interface Port
J8
UART Port
VR1
Adjust Voltage
VR
J10 / J11
Ext oscillator
Input pin select
J2
DC IN
(5V~12V)
J5
I2C Port
J1
DC voltage input
Select
This document is Weltrend's confidential information, don't copy or print without any permission.
5
WT56F108 Starter Kit Board Operation Manual
Chapter 2
2.1
WT56F108 Starter Kit Board Connecting Port Description
DC Input Connector
Components Location (J2)
This is EVB DC voltage input connector port (supporting voltage DC 5V~12V)
2.2
Pad Number
Description
1
Positive Input Pin
2
--
3
Negative Input Pin
DC Input Voltage Selection
Components Location (J1)
This is DC input voltage selection socket. Transformer:
1. When DC is 5V (Jump1-2 short)
2. When DC is 9V~12V (Jump 3-4 short)
pitch (2.54 mm)
Pad Number
Description
1-2
DC 5V INPUT (Jump 1-2 short)
3-4
DC 9V~12V INPUT (Jump 3-4 short)
Jump (2.54 mm)
This document is Weltrend's confidential information, don't copy or print without any permission.
6
WT56F108 Starter Kit Board Operation Manual
2.3
SWUT (Single Wire UART) Interface Programming Port
Components Location (J12)
This is WT56F108 single wire programming port
pitch (1.25 mm)
2.4
Pad Number
Description
1
VDD
2
SWUT
3
GND
UART Interface Connector Port
Components Location (J8)
This is UART serial transmission interface connector port
pitch (1.25 mm)
Pad Number
Description
1
5V
2
RXD
3
TXD
4
GND
This document is Weltrend's confidential information, don't copy or print without any permission.
7
WT56F108 Starter Kit Board Operation Manual
2.5
I2C Interface Port
Components Location (J5)
This is SLAVE I2C Interface port
pitch (1.25 mm)
2.6
Pad Number
Description
1
VDD
2
Slave_SCL
3
Slave_SDA
4
GND
External Oscillator Input Pin Selection
Components Location (J10 / J11)
This is input pin selection socket that is for external oscillator. WT56F108 offers two sets input pin for
external oscillator.
Starter Kit Board reserved socket it can offer external oscillator input pin.
pitch (2.54 mm)
Jump (2.54 mm)
J10
J11
Pad Number
Description
Pad Number
Description
1
MOSCI 1
1
MOSCO 1
2
MOSCI
2
MOSCO
3
MOSCI 2
3
MOSCO 2
This document is Weltrend's confidential information, don't copy or print without any permission.
8
WT56F108 Starter Kit Board Operation Manual
2.7
WT56F108 Pin Output Port
Components Location (J6 /J13 /J7 /J4)
This is WT56F108 pin output port, it is for customer’s external testing use.
WT56F108-RG64AWT PKG Type
J6
J13
Pad Number
Description
Pad Number
Description
1-2
GPIOG0/SEG0
1-2
GPIOA3DH/PWM0B/IRQ1/ETMIB
3-4
GPIOG1/SEG1
3-4
GPIOA4DH/MOSCO1
5-6
GPIOG2/SEG2
5-6
GPIOA5DH/MOSCI1
7-8
GPIOG3/SEG3
7-8
VDD
9-10
GPIOG4/SEG4
9-10
GPIOA6DH/TXA
11-12
GPIOG5/SEG5
11-12
GPIOA7DH/RXA/P00/IRQ0/ETMIA
13-14
GPIOG6/SEG6
13-14
VSS
15-16
GPIOG7/SEG7
15-16
NRST/SWUT
17-18
GPIOF5/SEG8
17-18
VLCD3
19-20
GPIOF6/SEG9
19-20
VLCD2
21-22
GPIOF7/SEG10
21-22
VA
23-24
GPIOE0/SEG11
23-24
VB
25-26
GPIOE1/SEG12
25-26
GPIOF0/COM0/MOSCI2
27-28
GPIOE2/SEG13
27-28
GPIOF1/COM1/MOSCO2
This document is Weltrend's confidential information, don't copy or print without any permission.
9
WT56F108 Starter Kit Board Operation Manual
J6
J13
Pad Number
Description
Pad Number
Description
29-30
GPIOE3/SEG14
29-30
GPIOF2/COM2
31-32
SEG15
31-32
GPIOF3/COM3
J7
J4
Pad Number
Description
Pad Number
Description
1-2
GPIOA2DH/VREF/PWM0A/P01/IRQ2
1-2
GPIOC3/SEG31
3-4
GPIOA1DH/ADC11/PWM1A/P02/IRQ3/
ETMIC
3-4
GPIOC2/SEG30
5-6
GPIOA0DH/ADC10/P03/IRQ4/ETMO
5-6
GPIOC1/SEG29
7-8
GPIOB7DH/ADC9/PWM1B/IRQ5
7-8
GPIOC0/SEG28
9-10
GPIOB6DH/ADC8
9-10
GPIOD7/SEG27
11-12
GPIOB5DH/ADC7/IRQ6
11-12
GPIOD6/SEG26
13-14
GPIOB4DH/ADC6/PWM0C/IRQ7
13-14
GPIOD5/SEG25
15-16
GPIOF4/ADC5
15-16
GPIOD4/SEG24
17-18
GPIOB3/SEG39/ISP_SCL/RXB
17-18
GPIOD3/SEG23
19-20
GPIOB2/SEG38/ISP_SDA/TXB
19-20
GPIOD2/SEG22
21-22
GPIOB1/SEG37/ADC4
21-22
GPIOD1/SEG21
23-24
GPIOB0/SEG36/ADC3
23-24
GPIOD0/SEG20
25-26
GPIOC7/SEG35/ADC2
25-26
GPIOE7/SEG19
27-28
GPIOC6/SEG34/ADC1
27-28
GPIOE6/SEG18
29-30
GPIOC5/SEG33/ADC0
29-30
GPIOE5/SEG17
31-32
GPIOC4/SEG32
31-32
GPIOE4/SEG16
This document is Weltrend's confidential information, don't copy or print without any permission.
10
WT56F108 Starter Kit Board Operation Manual
2.8
LCD Pin Output Port
Components Location (J9)
The port is WT56F108 supporting LCD pin output port, it’s for customer’s external testing use.
J9
Pad Number
Description
Pad Number
Description
1
SEG0
2
SEG1
3
SEG2
4
SEG3
5
SEG4
6
SEG5
7
SEG6
8
SEG7
9
SEG8
10
SEG9
11
SEG10
12
SEG11
13
SEG12
14
SEG13
15
SEG14
16
SEG15
17
SEG16
18
SEG17
19
SEG18
20
SEG19
21
SEG20
22
SEG21
23
SEG22
24
SEG23
25
SEG24
26
SEG25
This document is Weltrend's confidential information, don't copy or print without any permission.
11
WT56F108 Starter Kit Board Operation Manual
J9
Pad Number
Description
Pad Number
Description
27
SEG26
28
SEG27
29
SEG28
30
SEG29
31
SEG30
32
SEG31
33
SEG32
34
NC
35
COM0
36
COM1
37
COM2
38
COM3
This document is Weltrend's confidential information, don't copy or print without any permission.
12
WT56F108 Starter Kit Board Operation Manual
Chapter 3 WT56F108 Starter Kit Board Circuit Description
3.1
VDD Power Selection:
There are three options for WT56F108 Starter Kit Board VDD power.
(External input power must not exceed Max. 3.6V as spec. definition).
1. J1 DC Jack: Means the power can supply from transformer, DC input voltage (5V~12V), from LDO
offers WT56F108 VDD power. (The options way: please refer to the 2.2 DC input voltage
selection)
2. WLINK-SWUT VDD: Use VDD of WLINK-SWUT as WT56F108 VDD power.
3. External VDD: You can input from PO3 pin (positive), PO4 is negative power , external VDD input
don’t exceed the definition of specification.(Max. 3.6V)
3.2
Power Circuit
VDD power input must have filter capacitance, its position more closed the pin is better.
This document is Weltrend's confidential information, don't copy or print without any permission.
13
WT56F108 Starter Kit Board Operation Manual
3.3
RESET Circuit
WT56F108 RESET circuit and SWUT (single-wire programming) use the same pin, the related circuit as
the figure below:
When SWUT on programming the J14 JUMP should be removed, and disconnect from the external
RC RESET .
After programming finished, J14 should be plugged back, if the REST function had been used.
This document is Weltrend's confidential information, don't copy or print without any permission.
14
WT56F108 Starter Kit Board Operation Manual
Chapter 4
4.1
WT56F108 Starter Kit Board Operation Manual
WT56F108 Test and Demonstration Platform
WT56F108 Starter Kit Board built-in a single and easy LED flash to display functions, and Starter Kit Board
reserve some pin for testing usage.

Starter Kit Board outline (WT56F108-RG64AWT PKG Type)
Function Test Area
WT56F108
LCD Pin
Output Port
WT56F108
64 Pin
Output Port
SWUT
Programming
Interface Port
Adjust Voltage
VR
DC Input
LED
This document is Weltrend's confidential information, don't copy or print without any permission.
15
WT56F108 Starter Kit Board Operation Manual
4.2
LED Display
After power on, LED will alternately blink on the EVB board. Meanwhile adjusting VR1 can change LED
blinking speed.
This document is Weltrend's confidential information, don't copy or print without any permission.
16
WT56F108 Starter Kit Board Operation Manual
Chapter 5
5.1
Driver Module
Driver Module Summary
Please refer to the driver module display, as below:
This document is Weltrend's confidential information, don't copy or print without any permission.
17
WT56F108 Starter Kit Board Operation Manual
5.2
Main Programs <Main.c>
Function
5.3
Description
Function
Description
void DelayWhile(WORD ms)
NOP Delay sub program
void DRV_InitPowerOn(void)
Call Timer 0 and ADC to initialize the functions
void Init_OS_Timer0(void)
Initialize Timer 0 count 10ms generate an interrupt
VoidSelectMicroSourceClock(BYTE
MicroClock)
MCU Source clock chooses internal IRC 12 MHz and
enable external oscillator 32.768 kHz
void SYS_InitialPort(void)
All GPIO initialized to the input port and Enable
internal pull-up resistor
void SYS_LoadCalibrationData(void)
Load Default IRC 12 MHz correction value to register
void SYS_RoscCalibration(BYTE retry_cnt)
Auto calibration internal IRC 12 MHz ±2%
void Timer0 (void) interrupt 1
Timer 0 interrupt sub program
void Timer0Service(void)
Timer 0service program
ADC Driver <DRV_Adc.c>
Function
5.4
Description
WORD
API_AverageADCData(BYTE ADC_Channel)
Sampling analog to digital average (16 times)
void DRV_AnalogKeyInitial(void)
Initialize Analog to Digital convert
WORD
DRV_ReadAnalogChannel(BYTE
AD_Channel)
Assign channel executing Analog to Digital
LED Display Program <API_Led.c>
Function
Description
void API_LedGpioInitial(void)
Initialize LED pins as the output port
void DisplayLedGroup(BYTE LedData)
LED Display Producers
This document is Weltrend's confidential information, don't copy or print without any permission.
18
WT56F108 Starter Kit Board Operation Manual
5.5
Watch Timer Program setup <Api_rtc.c>
Function
5.6
Description
void API_LoadDayLimit(void)
Counts of the number of days of the calendar Leap
void API_SwRTCInitial(void)
Initialize Watch Timer
void API_UpdateSwRTC(void)
Calendar counting program
Interrupt sub Program <Interrupt.c>
Function
void INT0_ISR_Entry(void) interrupt 0
Description
Watch Timer interrupt sub program
This document is Weltrend's confidential information, don't copy or print without any permission.
19
WT56F108 Starter Kit Board Operation Manual
Chapter 6
6.1
Appendix
Circuit

Starter Kit Board circuit (WT56F108-RG64AWT PKG Type)
1. Power
This document is Weltrend's confidential information, don't copy or print without any permission.
20
WT56F108 Starter Kit Board Operation Manual
2. MCU WT56F108
This document is Weltrend's confidential information, don't copy or print without any permission.
21
WT56F108 Starter Kit Board Operation Manual
6.2
BOM

Starter Kit Board BOM (WT56F108-RG64AWT PKG Type)
This document is Weltrend's confidential information, don't copy or print without any permission.
22
WT56F108 Starter Kit Board Operation Manual
6.3
Ordering Information
1. WT56F108 Starter Kit
Kit
WT56F108
Starter Kit
Product Number
Number
WLINK-SWUT x 1
WA000
Development and Demo Board ( WT56F108 Starter Kit
Board ) x 1
WB007
SWUT Programming Wire x 1
2.
WT56F108 Starter Kit Board
Kit
WT56F108
Starter Kit Board
3.
Product Number
Number
WT56F108 Starter Kit Board
WB007
EVB Operation Manual
DOC27
Single Wire Programming Board (WLINK-SWUT)
Kit
Product Number
Single-wire Programming Board PL-2303 (WLINK-SWUT)
Single-wire
Programming Board
(WLINK-SWUT)
Number
WA000
Single-wire Programming Board CP-2102 (WLINK-SWUT)
WLINK-SWUT Operation Manual
DOC2
This document is Weltrend's confidential information, don't copy or print without any permission.
23