DOC24_WT51F104 Starter Kit Board Operation Manual V1.0

WT51F104 Starter Kit Board Operation Manual
WT51F104 EVB
Starter Kit Board
Operation Manual
REV. 1.0
April 26, 2012
This document is Weltrend confidential information, do not copy.
WT51F104 Starter Kit Board Operation Manual
Ver.
1.0
Date
2012/04/26
Applicant
Louis
Description
st
1 version
This information is Weltrend confidential information, do not copy.
2
WT51F104 Starter Kit Board Operation Manual
Table of Contents
CHAPTER 1
1.1
1.2
SYSTEM BLOCK DIAGRAM ....................................................................................................................................4
STARTER KIT BOARD COMPONENTS LOCATION .....................................................................................................5
CHAPTER 2
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
DRIVER MODULE............................................................................................................................ 19
DRIVER MODULE SUMMARY................................................................................................................................19
LED DRIVER MODULE <LED.C>........................................................................................................................19
CHAPTER 6
6.1
6.2
6.3
WT51F104 STARTER KIT BOARD OPERATION MANUAL .......................................................... 17
WT51F104 TESTING AND DEMONSTRATE PLATFORM..........................................................................................17
LED DISPLAY ....................................................................................................................................................18
CHAPTER 5
5.1
5.2
WT51F104 STARTER KIT BOARD CIRCUIT DESCRIPTION ........................................................ 13
MAIN POWER SYSTEM ........................................................................................................................................13
POWER SELECTION ............................................................................................................................................13
POWER CIRCUIT .................................................................................................................................................14
RESET CIRCUIT ................................................................................................................................................14
SINGLE WIRE EARPHONE JACK INTERFACE CIRCUIT ............................................................................................15
OSSCILLE CIRCUIT .............................................................................................................................................15
BUTTON FUNCTION .............................................................................................................................................16
BUZZER CIRCUIT .............................................................................................................................................16
CHAPTER 4
4.1
4.2
WT51F104 STARTER KIT BOARD PORT DESCRIPTION ...............................................................6
DC INPUT CONNECTOR (J2) .................................................................................................................................6
BATTERY INPUTS CONNECTOR (BTA1).................................................................................................................6
VDD POWER SELECTION (JP1)............................................................................................................................7
SWUT (SINGLE WIRE UART) INTERFACE PROGRAMMING PORT (P3)....................................................................7
I2C INTERFACE PORT ..........................................................................................................................................8
MICROCHIP PIC16F6XX PROGRAMMING PORT (P1) .............................................................................................8
UART INTERFACE PORT (P2)...............................................................................................................................9
BUZ/LED FUNCTION SELECTION (JP6).................................................................................................................9
EXTERNAL PWM INPUT PORT (JP5) ...................................................................................................................10
RW (LCM) / LED FUNCTION SELECTION (JP10)................................................................................................10
SINGLE WIRE PROGRAMMING EARPHONE JACK INTERFACE PORT .......................................................................11
TESTING PINS AND DAUGHTER BOARD INTERFACE (JP2) ....................................................................................11
CHAPTER 3
3.1
3.2
3.3
3.4
3.5
3.6
3.7
3.8
WT51F104 STARTER KIT BOARD HARDWARE DESCRIPTION ....................................................4
APPENDIX........................................................................................................................................ 20
CIRCUIT .............................................................................................................................................................20
BOM.................................................................................................................................................................22
ORDERING INFORMATION ....................................................................................................................................23
This information is Weltrend confidential information, do not copy.
3
WT51F104 Starter Kit Board Operation Manual
Chapter 1 WT51F104 Starter Kit Board Hardware Description
1.1
System Block Diagram
WT51F104 is an enhanced 8052 Micro Controller with a variety of peripheral functions, the Starter Kit Board
is designed for 20-pin SSOP PKG type, the functions display and the system structure diagram as below.
VDD
VDD
47uF
SCL
I2C
SDA
0.1uF
10pF
RX
TX
OSCI
32.768KHz
UART
OSCO
10pF
VDD
WT51F104
VDD
BUZ
10K
RST / SWUT
4.7uF
GPIOB0
LED
SWUT
5V
VDD
KEY 1
AD_KEY
ADC 1
AD_ADJ
ADC 0
KEY 2
KEY 3
KEY 4
KEY 5
This information is Weltrend confidential information, do not copy.
4
5V
VR
WT51F104 Starter Kit Board Operation Manual
1.2
Starter Kit Board Components Location
This information is Weltrend confidential information, do not copy.
5
WT51F104 Starter Kit Board Operation Manual
Chapter 2
2.1
WT51F104 Starter Kit Board Port Description
DC Input connector (J2)
This is DC input connector for Starter Kit Board (supporting voltage: DC 7V~18V).
2.2
Pad Number
Description
1
Positive Input Pin
2
--
3
Negative Input Pin
Battery Inputs Connector (BTA1)
This is an external 9V battery compartment connector (supporting voltage DC 7V~18V).
Pitch (2.54 mm)
BTA1
9V Battery IN
Pad Number
Description
1
Positive Input Pin
2
Negative Input Pin --
This information is Weltrend confidential information, do not copy.
6
WT51F104 Starter Kit Board Operation Manual
2.3
VDD Power Selection (JP1)
This is VDD voltage selection socket, WT51F104 can support input voltage2.2V ~ 5.5V, the socket can input voltage
3.3V, 5V, or provide by external power supply (External power input cannot exceed Max. 5.5V as spec definition).
Pitch (2.54 mm)
2.4
Pad Number
Description
1
5V (Jump1-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 (P3)
This port is for WT51F104 single wire programming.
Pitch (1.25 mm)
Pad Number
Description
1
VDD
2
SWUT
3
GND
This information is Weltrend confidential information, do not copy.
7
WT51F104 Starter Kit Board Operation Manual
2.5
I2C Interface Port
Components Location (JP4)
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
Microchip PIC16F6XX Programming Port (P1)
WT51F104 is compatible with Microchip PIC16F6XX series the programming port can support PIC16F6XX.
Pitch (1.25 mm)
Pad Number
Description
Pad Number
Description
1
5V
4
GND
2
SCL
5
NRST
3
SDA
-
-
This information is Weltrend confidential information, do not copy.
8
WT51F104 Starter Kit Board Operation Manual
2.7
UART Interface Port (P2)
This is UART serial transmission interface.
Pitch (1.25 mm)
2.8
Pad Number
Description
1
5V
2
TXD
3
RXD
4
GND
BUZ/LED function selection (JP6)
This is BUZ / LED functions selection.
Pitch (2.54 mm)
Pad Number
Description
1
BUZZER (Jump1-2 short)
2
BUZ / LED (GPIOB0)
3
LED (Jump 2-3 short)
This information is Weltrend confidential information, do not copy.
9
Jump (2.54 mm)
WT51F104 Starter Kit Board Operation Manual
2.9
External PWM Input port (JP5)
This is PWM Input Port.
Pitch (2.54 mm)
2.10
Pad Number
Description
1
External PWM Input
2
GND
RW (LCM) / LED Function Selection (JP10)
This is LCM RW controller / LED functions selection socket.
Pitch (2.54 mm)
Pad Number
Description
1
LED (Jump1-2 short)
2
RW / LED (GPIOB3)
3
RW (LCM Controller, Jump2-3 short)
This information is Weltrend confidential information, do not copy.
10
Jump (2.54 mm)
WT51F104 Starter Kit Board Operation Manual
2.11
Single Wire Programming Earphone Jack Interface Port
Components Location (J6)
This is single wire (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.12
Testing Pins and Daughter Board Interface (JP2)
This is signal measuring pin and daughter board interface.
Pitch (2.54 mm)
This information is Weltrend confidential information, do not copy.
11
WT51F104 Starter Kit Board Operation Manual
Pad Number
Description
Pad Number
Description
1
VDD
11
GPIOC2
2
GPIOA5 / ADC15 / OSCI / PWM1B
12
GPIOC1 / ADC7
3
GPIOA4 / ADC14 / OSCO / PWM0B
13
GPIOC0 / ADC6
4
GPIOA3 / ADC13 / NRST / SWUT
14
GPIOB2 / ADC5 / STB / PWM0D
5
GPIOB5 / ADC12 / RXA / PWM1A
15
GPIOB1 / ADC4 / MOSI / SCK
6
GPIOB4 / ADC11 / TXA / PWM1D
16
GPIOB0 / ADC3
7
GPIOB3 / ADC10 / PWM0A
17
GPIOA2 / ADC2 / PWM1C
8
GPIOC5 / ADC9
18
GPIOA1 / ADC1 / RXB / SCL
9
GPIOC4 / ADC8
19
GPIOA0 / ADC0 / TXB / SDA / PWM0C
10
GPIOC3
20
VSS
This information is Weltrend confidential information, do not copy.
12
WT51F104 Starter Kit Board Operation Manual
Chapter 3 WT51F104 Starter Kit Board Circuit Description
3.1
Main Power System
There are three main power options for WT51F104 Starter Kit Board.
1. External DC 12V (J2) Input: Through regulator and produce DC power 5V and 3.3V.
2. Battery (BTA1) Input: Through regulator and produce 5V and 3.3V.
3. VDD Input: There are no inputs for main power, please see below “VDD Power option” description.
WT51F104 Starter Kit Board Main Power System Circuit:
3.2
Power Selection
There are four options for WT51F104 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 that WT51F104VDD operation voltage is 5 V.
2. Pad JP1 2-3 connect: means that WT51F104 VDD operation voltage is 3.3V.
3. WLINK-SWUT VDD: Use WLINK-SWUT VDD for WT51F104 VDD power.
4. External VDD: It can input from J5 (Positive), J4 (Negative), external input VDD do not exceed Max. 5.5V as
spec. definition.
If power is in normal operation, DB1, DB2, and DB3 LED will light.
This information is Weltrend confidential information, do not copy.
13
WT51F104 Starter Kit Board 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
WT51F104 RESET circuit and SWUT (single wire programming) use the same pin, the related circuit as below:
When SWUT is on programming, JP9 JUMP should be removed, and do not connect with external RC RESET.
If the RESET functions had been used, when programming is finished, JP6 JUMP needs to plug again.
This information is Weltrend confidential information, do not copy.
14
WT51F104 Starter Kit Board Operation Manual
3.5
Single Wire Earphone Jack Interface Circuit
Since reset WT56F216 circuit and SWUT single wire burning 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
Osscille Circuit
WT51F104 oscillate circuit as below:
This information is Weltrend confidential information, do not copy.
15
WT51F104 Starter Kit Board Operation Manual
3.7
Button function
1.
2.
3.
4.
5.
3.8
WT51F104 Starter Kit Board reserve five function buttons (AD_KEY).
Up (UP/SWB2)
Left (LEFT/SWB3)
Mode/Enter (Enter/SWB4) Mode (3~4 seconds press)/Enter (short press)
Right (RIGHT/SWB5)
Down (Down/SWB6)
BUZZER Circuit
BUZZER Circuit as below.
This information is Weltrend confidential information, do not copy.
16
WT51F104 Starter Kit Board Operation Manual
Chapter 4 WT51F104 Starter Kit Board Operation Manual
4.1
WT51F104 Testing and Demonstrate Platform
WT51F104 Starter Kit Board built in a single and easy led flash to display function and reserve some pin for testing
development.
This information is Weltrend confidential information, do not copy.
17
WT51F104 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.
Adjust AD
Voltage VR
LED
(VR1)
Display
This information is Weltrend confidential information, do not copy.
18
WT51F104 Starter Kit Board Operation Manual
Chapter 5
5.1
Driver Module
Driver Module Summary
Please refer to the driver module display, as below:
5.2
LED Driver Module <LED.C>
Function
Description
void
INIT_LED(void)
Initializes “LED” (driver level)
void
LED_SHIFT (void)
Turn run “LED” light (application level)
This information is Weltrend confidential information, do not copy.
19
WT51F104 Starter Kit Board Operation Manual
Chapter 6
6.1
Appendix
Circuit
1. Power
This information is Weltrend confidential information, do not copy.
20
WT51F104 Starter Kit Board Operation Manual
2. WT51F104 (MCU)
This information is Weltrend confidential information, do not copy.
21
WT51F104 Starter Kit Board Operation Manual
6.2
BOM
This information is Weltrend confidential information, do not copy.
22
WT51F104 Starter Kit Board Operation Manual
6.3
Ordering information
1.
WT51F104 Development Kit
Kit
WT51F104
Development Kit
Product Name
Number
WLINK-SWUT x 1
WA000
Development and Demo Board (WT51F104 EVB With LCM
Module) x 1
WB001
SWUT Programming Cable x 1
2.
WT51F104 Starter Kit
Kit
WT51F104
Starter Kit
Product Name
Number
WLINK-SWUT x 1
WA000
(WT51F104 Starter Kit Board) x 1
WB006
SWUT Programming Cable x 1
3.
WT51F104 Development and Demo Board
Kit
WT51F104
Development
and Demonstrate
Board
4.
Product Name
Number
Development and Demo Board (WT51F104 EVB With LCM
Module)
WB001
EVB Operation Manual
DOC13
WT51F104 Starter Kit Board (simple version)
Kit
WT51F104
Simple version
Product Name
Number
Simple version (WT51F104 Starter Kit Board)
WB006
EVB Operation Manual
DOC24
This information is Weltrend confidential information, do not copy.
23
WT51F104 Starter Kit Board Operation Manual
5.
Single Wire Programming Board (WLINK-SWUT)
Kit
Product Name
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
This information is Weltrend confidential information, do not copy.
24
DOC2