MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
Preface
Acronym for Register Type
R/W
RO
RC
WO
W1S
W1C
Capable of both read and write access
Read only
Read only. After reading the register bank, each bit which is HIGH(1) will be cleared to LOW(0 )
automatically.
Write only
Write only. When writing data bits to register bank, each bit which is HIGH(1) will cause the
corresponding bit to be set to 1. Data bits which are LOW(0) has no effect on the corresponding bit.
Write only. When writing data bits to register bank, each bit which is HIGH(1) will cause the
corresponding bit to be cleared to 0. Data bits which are LOW(0) has no effect on the corresponding bit.
5/ 418 MediaTek Inc. Confidential
Page 6
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
6/ 418 MediaTek Inc. Confidential
Page 7
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
1. System Overview
The revolutionary MT6219 is a leading edge single -chip
solution for GSM/GPRS mobile phones targeting the
emerging applications in digital audio and video. Based on
32-bit ARM7EJ-STM RISC processor, MT6219 not only
features high performance GPRS Class 12 MODEM, but
also provides comprehensive and advanced solutions for
handheld multi-media.
Typical application is shown in Figure 1.
Multi-media Subsystem
The MT6219 multi-media subsystem provides connection
to CMOS image sensor and supports resolution up to 1.3M
pixels. With it s advanced image signal and data processing
technology, MT6219 allows efficient processing of image
and video data. It also has built -in JPEG CODEC and
MPEG-4 CODEC, thus enabling real -time creation and
playback of high -quality images and video. In addition to
advanced image and video features, MT6219 also utilizes
high resolution DAC, digital audio, and audio synthesis
technology to provide superior audio features for all future
multi -media needs.
In order to provide more flexibility and bandwidth for
multi -media products, an additional 8-bit parallel interface
is incorporated. This interface ena bles connection to LCD
panels as well as connection to NAND flash devices to
allow for multi- media data storage capabilities.
External Memory Interface
Providing the greatest capacity for expansion, MT6219
supports up to 8 state-of-the-art devices through its 16-bit
host interface. Devices such as burst/page mode Flash,
page mode SRAM, Pseudo SRAM, Color/Parallel LCD,
and multi-media companion chip are all supported through
this interface. To minimize power consumption and ensure
low noise, this interface is designed for flexible I/O voltage
and allows lowering of supply voltage down to 1.8V. The
driving strength is configurable for signal integrity
adjustment. The data bus also employs retention
technology to prevent the bus from floating during turn
over.
7/ 418 MediaTek Inc. Confidential
User Interface
To provide complete user interface, MT6219 brings
together all the necessary peripheral blocks for
multi-media GSM /GPRS phone. The peripheral blocks
consists of the Keypad Scanner with the capability to
detect multiple key presses, SIM Controller, Alerter, Real
Time Clock, PWM, Serial LCD Controller, and General
Purpose Programmable I/Os. For connectivity and data
storage, the MT6219 supports UART, IrDA, USB 1.1
Slave and MMC/SD/MS/MS Pro. Furthermore, for large
amount of data transfer, high performance DMA (Direct
Memory Access) and hardware flow control are
implemented, which greatly enhances the performance and
reduces MCU processing load.
Audio Interface
Using a highly integrated mixed-signal Audio Front-End,
the MT6219 architecture allows for easy audio interfacing
with direct connection to the audio transducers. The audio
interface integrates D/A and A/D Converters for Voice
band, as well as high resolution Stereo D/A Converters for
Audio band. In addition, MT6219 also provides Stereo
Input and Analog Mux. Overall, MT6219’s audio features
provide a rich platform for multi-media applications.
Radio Interface
MT6219 integrates a mixed-signal Baseband front -end in
order to provide a well-organized radio interface with
flexibility for efficient customization. It contains gain and
offset calibration mechanisms, and filters with
programmable coefficients for comprehensive
compatibility control on RF modules. This approach also
allows the usage of a high resolution D/A Converter for
controlling VCXO or crystal, thus reducing the need for
expensive TCVCXO . MT6219 achieves great MODEM
performance by utilizing 14-bit high resolution A/D
Converter in the RF downlink path. Furthermore, to reduce
the need for extra external current -driving component, the
driving strength of some BPI outputs is designed to be
configurable.
Debug Function
Page 8
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
The JTAG interface enables in-circuit debugging of
software program with the ARM7EJ-S core. With this
standardized debugging interface, the MT6219 provides
developers with a wide set of options in choosing ARM
development kits from different third party vendors.
Power Management
The MT6219 offers various low-power features to help
reduce system power consumption. These features include
Pause Mode of 32KHz clocking at Standby State, Power
Down Mode for individual peripherals, and Processor
Sleep Mode. In addition, MT6219 is also fabricated in
advanced low leakage CMOS process, hence providing an
overall ultra low leakage solution.
Package
The MT6219 device is offered in a 13mm×13mm, 293-ball,
0.65 mm pitch, TFBGA package.
8/ 418 MediaTek Inc. Confidential
Page 9
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
FLASH
SRAM
PSRAM
DEBUGGER
JTAG
SPEECH/AUDIO
INPUT
SPEECH/AUDIO
OUTPUT
FM STEREO
RADIO INPUT
HIFI STEREO
OUTPUT
ALERTER
PWM
SIM
EXTERNAL MEMORY
INTERFACE
SERIAL
LCD
SERIAL
LCD
Figure 1 Typical application of MT6219
MELODY
LCD
USB
SENSOR
IMAGE INPUT
MT6219
UART
IRDA
CMOS
MMC/SD/MS
MSPRO
NAND
FLASH
8-BIT PARALLEL
INTERFACE
LCD
SYSCLK
AFC
APC
TX I/Q
RX I/Q
BPI
BSI
B2PSI
AUXADC
SUPPLY
VOLTAGES
KEYPAD
123
456
789
0#
*
TCVCXO
RF
MODULE
POWER
MANAGEMENT
CIRCUITRY
9/ 418 MediaTek Inc. Confidential
Page 10
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
1.1 MODEM Features
n General
l Integrated voice-band, audio -band and base-band
analog front ends
l TFBGA 13mm×13mm, 293-ball, 0.65 mm pitch
package
n MCU Subsystem
l ARM7EJ-S 32-bit RISC processor
l High performance multi-layer AMBA bus
l Java hardware acceleration for fast Java- based
games and applets
l Operating frequency: 26/52 MHz
l Dedicated DMA bus
l 14 DMA channels
l 512K Bytes zero-wait-state on-chip SRAM
l On-chip boot ROM for Factory Flash
Programming
l Watchdog timer for system crash recovery
l 2 sets of General Purpose Timer
l Circuit Switch Data coprocessor
l Division coprocessor
n External Memory Interface
l Supports up to 8 external devices
l Supports 8- bit or 16-bit memory components with
maximum size of up to 64M Bytes each
l Supports Flash and SRAM with Page Mode or
Burst Mode
l Supports Pseudo SRAM
l Industry standard Parallel LCD Interface
l Supports multi-media companion chips with 8/16
bits data width
l Flexible I/O voltage of 1.8V ~ 2.8V for memory
interface
10/418 MediaTek Inc. Confidential
l Configurable driving strength for memory
interface
n Audio and Modem CODEC
l Dial tone generation
l Voice Memo
l Noise Reduction
l Echo Suppression
l Advanced Sidetone Oscillation Reduction
l Digital sidetone generator with programmable
gain
l Two programmable acoustic compensation filters
l GSM/GPRS quad vocoders for adaptive multirate
(AMR), enhanced full rate (EFR), full rate (FR)
and half rate (HR)
l GSM channel coding, equalization and A5/1 and
A5/2 ciphering
l GPRS GEA and GEA2 ciphering
l Programmable GSM /GPRS Modem
l Packet Switched Data with CS1/CS2/CS3/CS4
coding schemes
l GSM Circuit Switch Data
l GPRS Class 12
n User Interfaces
l 6-row × 7-column keypad controller with
hardware scanner
l Supports multiple key presses for gaming
l SIM/USIM Controller with hardware T=0/T=1
protocol control
l 3 UART s with hardware flow control and speed up
to 921600 bps
l IrDA modulator/demodulator with hardware
framer
Page 11
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
l Real Time Clock (RTC) operating with a separate
power supply
l Serial LCD Interface with 8/9 bit format support
l General Purpose I/Os (GPIOs)
l 2 Sets of Pulse Width Modulation (PWM) Output
l Alerter Output with Enhanced PWM or PDM
l Six external interrupt lines
n Audio Interface and Audio Front End
l Two microphone inputs sharing one low noise
amplifier with programmable gain
l Two Voice power amplifiers with programmable
gain
l 2nd order Sigma-Delta A/D Converter for voice
uplink path
l D/A Converter for voice downlink path
l Supports half- duplex hands-free operation
l Compliant with GSM 03.50
n Radio Interface and Baseband Front End
l GMSK modulator with analog I and Q channel
outputs
l 10-Pin Baseband Parallel Interface (BPI) with
programmable driving strength
l Multi-band support
n Power Management
l Power Down Mode for analog and digital circuits
l Processor Sleep Mode
l Pause Mode of 32KHz clocking at Standby State
l 7-channel Auxiliary 10-bit A/D Converter for
charger and battery monitoring and photo sensing
n Test and Debug
l Built-in digital and analog loop back modes for
both Audio and Baseband Front-End
l DAI port complying with GSM Rec.11.10
l JTAG port for debugging embedded MCU
l 10-bit D/A Converter for uplink baseband I and Q
signals
l 14-bit high resolution A/D Converter for downlink
baseband I and Q signals
l Calibration mechanism of offset and gain
mismatch for baseband A/D Converter and D/A
Converter
l 10-bit D/A Converter for Automatic Power
Control
l 13-bit high resolution D/A Converter for
Automatic Frequency Control
l Programmable Radio RX filter
l 2 Channels Baseband Serial Interface (BSI) with
3-wire control
11/418 MediaTek Inc. Confidential
Page 12
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
1.2 Multi-Media Features
n LCD/NAND Flash Interface
l Dedicated 8-bit Parallel Interface, supports up to 3
external devices
l Hardware accelerated LCD Controller for display
l Dedicated LCD bus
l NAND Flash Controller for mass storages
n LCD Controller
l Supports simultaneous connection to up to 2
parallel LCD and 1 serial LCD panels
l Supports format: RGB332, RGB444, RGB565,
RGB666, RGB888
l Supports LCD panel maximum resolution up to
800x600 at 16bpp
l Supports hardware display rotation
l Capable of combining display memories with up to
4 blending layers
n Image Signal Processor
l 8/10 bit Bayer format image input
l Capable of processing image of size up to 1.3M
pixels
l Color Correction Matrix
l Gamma Correction
l Automatic Exposure Control
l Automatic White Balance Control
l Programmable AE/AWB windows
l Edge Enhancement Support
l Histogram Equalization Logic
l Horizontal and Vertical Sync Information on
Separate Pin
n JPEG Decoder
l ISO/IEC 10918-1 JPEG Baseline and Progressive
modes
12/418 MediaTek Inc. Confidential
l Supports all possible YUV formats, including
grayscale format
l Supports all DC/AC Huffman table parsing
l Supports all quantization table parsing
l Supports restart interval
l Supports SOS, DHT, DQT and DRI marker
parsing
l IEEE Std 1180 -1990 IDCT Standard Compliant
l Supports progressive image processing to
minimize storage space requirement
l Supports reload-able DMA for VLD stream
n JPEG Encoder
l ISO/IEC 10918 -1 JPEG baseline mode
l ISO/IEC 10918 -2 Compliance
l Supports YUV422 and grayscale formats
l Standard DC and AC Huffman tables
l Provides 4 levels of encode quality
n Image Data Processing
l High throughput hardware Resizer capable of
tailoring image to arbitrary size
l Horizontal scaling in averaging method
l Vertical scaling in bilinear method
l Simultaneous scaling for MPEG- 4 encode and
LCD display
l YUV and RGB color space conversion
l Pixel format transform
l Boundary padding
l Pixel processing: hue/saturation/intensity/color
adjustment, Gamma correction and
grayscale/invert/sepia-tone effects
l Programmable Spatial Filtering: Linear filter,
Non-linear filter and Multi-pass artistic effects
Page 13
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
l Hardware accelerated im age editing
n MPEG -4/H.263 CODEC
l Hardware Video CODEC
l ISO/IEC 14496-2 simple profile:
decode @ level 0/1/2/3
encode @ level 0
l Supported visual tools for decoder: I-VOP, P -VOP,
AC/DC prediction, 4-MV, Unrestricted MV, Error
Resilience, Short Header
l Error Resilience for decoder: Slice
Resynchronization, Data Partitioning, Reversible
VLC
l Supported visual tools for encoder: I-VOP, P -VOP,
Half-pel, DC prediction, Unrestricted MV,
Reversible VLC, Short Header
l Supports encoding motion vector of range up
to –64/+63.5 pixels
l ITU-T H.263 profile 0 @ level 10
l AAC/AMR/WB-AMR audio decode support
l AMR/WB-AMR audio encode support
n 2D Accelerator
l Rectangle fill
l BitBlt: multi-BitBlt without transform, 7 rotate,
mirror (transparent) BitBlt
l Alpha blending
l Line drawing: normal lin e, dotted line
l Font caching: normal font, Italic font
l Supports 16-bpp RGB565 and 8-bpp index color
modes
l Command queue with 32 levels
n Audio CODEC
l Wavetable synthesis with up to 64 tones
l Advanced wavetable synthesizer capable of
generating simulated stereo
l Wavetable including GM full set of 128
instruments and 47 sets of percussions
l PCM Playback and Record
l Digital Audio Playback
l High resolution D/A Converters for Stereo Audio
playback
l Stereo analog input for stereo audio source
l Analog mixers for Stereo Audio
l Stereo to Mono Conversion
n Connectivity
l Full-speed USB 1.1 Device
l Multi Media Card/Secure Digital Memory
Card/Memory Stick/Memory Stick Pro host
controller
13/418 MediaTek Inc. Confidential
Page 14
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
1.3 General Description
Figure 2 details the block diagram of MT6219. Based on a dual-processor architecture, MT6219 integrates both an
ARM7EJ-S core and a digital signal processor core. ARM7EJ-S is the main processor that is responsible for running
high-level GSM/GPRS protocol software as well as multi-media applications. The digital signal processor handles the
low-level MODEM as well as advanced audio functions. Except for some mixed- signal circuitries, the other building
blocks in MT6219 are connected to either the microcontroller or the digital signal processor.
Specifically, MT6219 consists of the following subsystems:
l Microcontroller Unit (MCU) Subsystem - includes an ARM7EJ-S RISC processor and its accompanying memory
management and interrupt handling logics.
l Digital Signal Processor (DSP) Subsystem - includes a DSP and its accompanying memory, memory controller,
and interrupt controller.
l MCU/DSP Interface - where the MCU and the DSP exchange hardware and software information.
l Microcontroller Peripherals - includes all user interface modules and RF control interface modules.
l Microcontroller Coprocessors - runs computing-intensive processes in place of Microcontroller.
l DSP Peripherals - hardware accelerators for GSM /GPRS channel codec.
l Multi-media Subsystem - integrates several advanced accelerators to support multi-media applications.
l Voice Front End - the data path for converting analog speech from and to digital speech.
l Audio Front End - the data path for converting stereo audio from stereo audio source
l Baseband Front End - the data path for converting digital signal from and t o analog signal of RF modules.
l Timing Generator - generat es the control signals related to the TDMA frame timing.
l Power, Reset and Clock subsystem - manages the power, reset , and clock distribution inside MT6219.
Details of the individual subsystems and blocks are described in following Chapters.
14/418 MediaTek Inc. Confidential
Page 15
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
MELODY
MIC-0
MIC-1
VOICE-0
VOICE-1
AUDIO-L
AUDIO-R
STEREO-L
STEREO-R
SERIAL RF
CONTROL
PARALLEL
RF CONTROL
RX-I
RX-Q
TX-I
TX-Q
AUX
ADC
AFC
APC
ADC
ADC
DAC
DAC
ADC
DACAFC
DACAPC
BSI
BPI
ADC
+
BASEBAND
+
PATH
AUX
ADC
DAC
DAC
DAC
AUDIO
PATH
BRIDGE
INTERRUPT
CONTROL
2D ENGINE
TDMA
TIMER
IMAGE
DMA
PATCH
UNIT
MCU/DSP
INTERFACE
ARM7EJ-S
IMAGE
ENGINE
MEMORY
DSP
BOOT
ROM
GRAPHIC MEMORY
CONTROLLER
GIF
DECODER
IMAGE RESIZER
TRAP
UNIT
CONTROL
ON-CHIP
SRAM
CODEC
DMA
JPEG
INTERRUPT
CONTROL
MPEG-4
VIDEO
CODEC
DSP CO-
PROCESSOR
DSP CO-
PROCESSOR
DSP CO-
PROCESSOR
USB
EXTERNAL
MEMORY
INTERFACE
LCD
CONTROLLER
PROCESSOR
NAND
FLASH
INTERFACE
IMAGE
SIGNAL
USB
FLASH
SRAM
PSRAM
LCD
NAND
LCD
CMOS
SENSOR
SYSTEM
CLOCK
13/26MHZ
CLOCK
GEN
32K
OSC
32KHZ CRYSTAL
GPT
RTC
WAKE UPUSER INTERFACERESET
WDT
SIMGPIO
PWM
KEYPAD
SCANNER
ALERTER
SERIAL
LCD
B2PSIIRDA
MMC
SD/MS
MS PRO
CONNECTIVITYSERIAL PORT
SCCB
UART
MT6219
Figure 2 MT6219 block diagram.
15/418 MediaTek Inc. Confidential
Page 16
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
2 Product Description
2.1 Pin Outs
One type of package for this product, TFBGA 13mm*13mm , 293-ball, 0.65 mm pitch Package, is offered.
Pin outs and the top view are illustrated in Figure 3 for this package . Outline and dimension of package is illustrated in
Figure 4, while the definition of package is shown in Table 1.
16/418 MediaTek Inc. Confidential
Page 17
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
Figure 3 Top View of MT6219 TFBGA 13mm*13mm , 293-ball, 0.65 mm pitch Package
17/418 MediaTek Inc. Confidential
Page 18
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
Figure 4 Outlines and Dimension of TFBGA 13mm*1 3mm, 293-ball, 0.65 mm pitch Package
Body Size Ball Count Ball Pitch Ball Dia. Package Thk. Stand Off Substrate Thk.
D E N e b A (Max.) A1 C
13 13 293 0.65 0.35 1.4 0.3 0.36
Table 1 Definition of TFBGA 13mm*13mm, 293-ball, 0.65 mm pitch Package (Unit: mm)
18/418 MediaTek Inc. Confidential
Page 19
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
2.2 Pin Description
Ball
Name Dir Description
13X13
JTAG Port
E4 JTRST# I JTAG test port reset input PD Input
E3 JTCK I JTAG test port clock input PU Input
E2 JTDI I JTAG test port data input PU Input
E1 JTMS I JTAG test port mode swit ch PU Input
F5 JTDO O JTAG test port data output 0
F4 JRTCK O JTAG test port returned clock output 0
RF Parallel Control Unit
F3 BPI_BUS0 O RF hard-wire control bus 0 0
F2 BPI_BUS1 O RF hard-wire control bus 1 0
G5 BPI_BUS2 O RF hard- wire control bus 2 0
G4 BPI_BUS3 O RF hard- wire control bus 3 0
G3 BPI_BUS4 IO RF hard-wire control bus 4 Input
G2 BPI_BUS5 IO RF hard-wire control bus 5 Input
G1 BPI_BUS6 IO RF hard-wire control bus 6 GPIO10 BPI_BUS6 PD Input
H5 BPI_BUS7 IO RF hard-wire control bus 7 GPIO11 BPI_BUS7 PD Input
H4 BPI_BUS8 IO RF hard-wire control bus 4 GPIO12 BPI_BUS8 13MHz 32KHz PD Input
H3 BPI_BUS9 IO RF hard-wire control bus 5 GPIO13 BPI_BUS9 BSI_CS1 PD Input
RF Serial Control Unit
H1 BSI_CS0 O RF 3-wire interface chip select 0 0
J5 BSI_DATA O RF 3-wire interface data output 0
J4 BSI_CLK O RF 3-wire interface clock output 0
PWM Interface
R3 PWM1 IO Pulse width modulated signal 1 GPIO21 PWM1 DSP_GPO0 TBTXFS PD Input
R2 PWM2 IO Pulse width modulated signal 2 GPIO22 PWM2 DSP_GPO1 TBRXEN PD Input
T4 ALERTER IO Pulse width modulated signal for buzzer GPIO23 ALERTER DSP_GPO2 BTRXFS PD Input
Serial LCD/PM IC Interface
J3 LSCK IO Serial display interface data output GPIO16 LSCK TDMA_CK TBTXEN PD Input
J2 LSA0 IO Serial display interface address output GPIO17 LSA0 TDMA_D1 TDTIRQ PD Input
J1 LSDA IO Serial display interface clock output GPIO18 LSDA TDMA_D0 TCTIRQ2 PD Input
K4 LSCE0# IO Serial display interface chip select 0
output
K3 LSCE1# IO Serial display interface chip select 1
E5 IBOOT I Boot Device Configuration Input PD Input
Keypad Interface
G17 KCOL6 I Keypad column 6 PU Input
G18 KCOL5 I Keypad column 5 PU Input
20/418 MediaTek Inc. Confidential
GPO1 SRCLKEN
AN
GPO0 SRCLKENA 1
AI
0
PD Input
Page 21
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
G19 KCOL4 I Keypad column 4 PU Input
F15 KCOL3 I Keypad column 3 PU Input
F16 KCOL2 I Keypad column 2 PU Input
F17 KCOL1 I Keypad column 1 PU Input
F18 KCOL0 I Keypad column 0 PU Input
F19 KROW5 O Keypad row 5 0
E16 KROW4 O Keypad row 4 0
E17 KROW3 O Keypad row 3 0
E18 KROW2 O Keypad row 2 0
D16 KROW1 O Keypad row 1 0
D19 KROW0 O Keypad row 0 0 External Interrupt Interface
V1 EINT0 I External interrupt 0 PU Input
U3 EINT1 I External interrupt 1 PU Input
W1 EINT2 I External interrupt 2 PU Input
V2 EINT3 I External interrupt 3 PU Input
R5 MIRQ I Interrupt to MCU GPIO41 MIRQ 13MHz 32KHz PU Input
R17 MFIQ I Interrupt to MCU GPIO42 MFIQ PU Input
External Memory Interface
R16 ED0 IO External memory data bus 0 Input
R15 ED1 IO External memory data bus 1 Input
T19 ED2 IO External memory data bus 2 Input
T17 ED3 IO Ext ernal memory data bus 3 Input
U19 ED4 IO External memory data bus 4 Input
U18 ED5 IO External memory data bus 5 Input
V18 ED6 IO External memory data bus 6 Input
W19 ED7 IO External memory data bus 7 Input
U17 ED8 IO External memory data bus 8 Input
V17 ED9 IO External memory data bus 9 Input
W17 ED10 IO External memory data bus 10 Input
T16 ED11 IO External memory data bus 11 Input
W16 ED12 IO External memory data bus 12 Input
T15 ED13 IO External memory data bus 13 Input
U15 ED14 IO External memory data bus 14 Input
V15 ED15 IO External memory data bus 15 Input
U14 ERD# O External memory read strobe 1
W14 EWR# O External memory write strobe 1
R13 ECS0# O External memory chip select 0 1
T13 ECS1# O External memory chip select 1 1
U13 ECS2# O External memory chip select 2 1
V13 ECS3# O External memory chip select 3 1
R12 ECS4# O External memory chip select 4 GPIO54 ECS4# PU 1
T12 ECS5# O External memory chip select 5 GPIO53 ECS5# PU 1
U12 ECS6# O External memory chip select 6 GPIO52 ECS6# PU 1
W12 ECS7# O External memory chip select 7 GPIO40 ECS7# PU 1
R14 ELB# O External memory lower byte strobe 1
T14 EUB# O External memory upper byte strobe 1
T11 EPDN# O Power Down Control Signal for
PSRAM
21/418 MediaTek Inc. Confidential
GPO2 EPDN# 0
Page 22
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
U11 EADV# O Address valid for burst mode flash
memory
V11 ECLK O Clock for flash memory 0
R10 EA0 O External memory address bus 0 0
T10 EA1 O External memory address bus 1 0
U10 EA2 O External memory address bus 2 0
W10 EA3 O External memory address bus 3 0
T9 EA4 O External memory address bus 4 0
U9 EA5 O External memory address bus 5 0
V9 EA6 O External memory address bus 6 0
R8 EA7 O External memory address bus 7 0
T8 EA8 O External memory address bus 8 0
W8 EA9 O External memory address bus 9 0
R7 EA10O External memory address bus 10 0
T7 EA11 O External memory address bus 11 0
U7 EA12 O External memory address bus 12 0
V7 EA13 O External memory address bus 13 0
R6 EA14 O External memory address bus 14 0
T6 EA15 O External memory address bus 15 0
U6 EA16 O External memory address bus 16 0
W6 EA17 O External memory address bus 17 0
T5 EA18 O External memory address bus 18 0
U5 EA19 O External memory address bus 19 0
V5 EA20 O External memory address bus 20 0
W5 EA21 O External memory address bus 21 0
V4 EA22 O External memory address bus 22 0
U4 EA23 O External memory address bus 23 0
W3 EA24 O External memory address bus 24 GPO3 EA24 0
W2 EA25 O External memory address bus 25 GPO4 EA25 13MHz 32KHz 0
USB Interface
P16 USB_DP IO USB D+ Input/Output
P17 USB_DM IO USB D- Input/Output
Memory Card Interface
P19 MCCM0 IO SD Command/MS Bus State Output
N15 MCDA0 IO SD Serial Data IO 0/MS Serial Data IO
N16 MCDA1 IO SD Serial Data IO 1
N17 MCDA2 IO SD Serial Data IO 2
N18 MCDA3 IO SD Serial Data IO 3
N19 MCCK O SD Serial Clock/MS Serial Clock
Output
M16 MCPWRON O SD Power On Control Output
M17 MCWP I SD Write Protect Input GPIO15 MCWP PU
M18 MCINS I SD Card Detect Input GPIO14 MCINS PU
UART Interface
K18 URXD1 I UART 1 receive data PU Input
K19 UTXD1 O UART 1 transmit data 1
J16 UCTS1 I UART 1 clear to send PU Input
J17 URTS1 O UART 1 request to send 1
J18 URXD2 IO UART 2 receive data GPIO35 URXD2 UCTS3 PU Input
22/418 MediaTek Inc. Confidential
1
Page 23
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
J19 UTXD2 IO UART 2 transmit data GPIO36 UTXD2 URTS3 PU Input
H15 URXD3 IO UART 3 receive data GPIO33 URXD3 PU Input
H16 UTXD3 IO UART 3 transmit data GPIO34 UTXD3 PU Input
H17 IRDA_RXD IO IrDA receive data GPIO37 IRDA_RXD UCTS2 PU Input
G15 IRDA_TXD IO IrDA transmit data GPIO38 IRDA_TXD URTS2 PU Input
G16 IRDA_PDN IO IrDA Power Down Control GPIO39 IRDA_PDN PU Input
Digital Audio Interface
D17 DAICLK IO DAI clock output GPIO43 DAICLK DSPLD7 TRACLK PU Input
D18 DAIPCMOUT IO DAI pcm data out GPIO44 DAIPCMO
C19 DAIPCMIN IO DAI pcm data input GPIO45 DAIPCMIN DSPLD5 TRASD7 PU Input
C18 DAIRST IO DAI reset signal input GPIO47 DAIRST DSPLD4 TRASD6 PU Input
B19 DAISYNC IO DAI frame synchronization signal
CMOS Sensor Interface
J12 CMRST IO CMOS sensor reset signal output GPIO48 CMRST Z Input
K12 CMPDN IO CMOS sensor power down control GPIO49 CMPDN Z Input
H12 CMVREF I Sensor vertical refe rence signal input Input
H11 CMHREF I Sensor horizontal reference signal input Input
H9 CMPCLK I CMOS sensor pixel clock input Input
H10 CMMCLK O CMOS sensor master clock output Outp
H8 CMDAT9 I CMOS sensor data input 9 Input
J8 CMDAT8 I CMOS sensor data input 8 Input
K8 CMDAT7 I CMOS sensor data input 7 Input
L8 CMDAT6 I CMOS sensor data input 6 Input
M8 CMDAT5 I CMOS sensor data input 5 Input
M9 CMDAT4 I CMOS sensor data input 4 Input
M10 CMDAT 3 I CMOS sensor data input 3 Input
M11 CMDAT2 I CMOS sensor data input 2 Input
M12 CMDAT1 IO CMOS sensor data input 1 GPIO50 CMDAT1 PD Input
L12 CMDAT0 IO CMOS sensor data input 0 GPIO51 CMDAT2 PD Input
Analog Interface
B15 AU_MOUL Audio analog output left channel
A15 AU_MOUR Audio analog output right channel
C14 AU_M_BYP Audio DAC bypass pin
B14 AU_FMINL FM radio analog input left channel
A14 AU_FMINR FM radio analog input right channel
D13 AU_OUT1_P Earphone 1 amplifier output (+)
C13 AU_OUT1_N Earphone 1 amplifier output (-)
B12 AU_OUT0_N Earphone 0 amplifier output (-)
A12 AU_OUT0_P Earphone 0 amplifier output (+)
C12 AU_MICBIA
S_P
D12 AU_MICBIA
S_N
output
Microphone bias supply (+)
Microphone bias supply (-)
GPIO46 DAISYNC BFEPRBO TRASD5 PU Input
UT
DSPLD6 TRASYNC PD Input
ut
23/418 MediaTek Inc. Confidential
Page 24
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
VCXO Interface
A2 SYSCLK 13MHz or 26MHz system clock input RTC Interface
C2 XIN 32.768 KHz crystal input
B1 XOUT32.768 KHz crystal output
C1 BBWAKEUP O Baseband power on/off control 1 Supply Voltages
D1 VDDKSupply voltage of internal logic
M1 VDDKSupply voltage of internal logic
V8 VDDKSupply voltage of internal logic
V16 VDDKSupply voltage of internal logic
H19 VDDKSupply voltage of internal logic
C16 VDDKSupply voltage of internal logic
W4 VDD33_EMISupply voltage of memory interface
driver
24/418 MediaTek Inc. Confidential
Page 25
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
W7 VDD33_EMISupply voltage of memory interface
driver
W9 VDD33_EMISupply voltage of memory interface
driver
W11 VDD33_EMISupply voltage of memory interface
driver
W13 VDD33_EMISupply voltage of memory interface
driver
W15 VDD33_EMISupply voltage of memory interface
driver
W18 VDD33_EMISupply voltage of memory interface
driver
T18 VDD33_EMISupply voltage of memory interface
driver
V3 VSS33_EMIGround of memory interface driver
V6 VSS33_EMIGround of memory interface driver
U8 VSS33_EMIGround of memory interface driver
V10 VSS33_EMIGround of memory interface driver
V12 VSS33_EMIGround of memory interface driver
V14 VSS33_EMIGround of memory interface driver
U16 VSS33_EMIGround of memory interface driver
V19 VSS33_EMIGround of memory interface driver
R19 VSS33_EMIGround of memory interface driver
P15 VDD33_USB Supply voltage of drivers for USB
D4 VDD33Supply voltage of drivers exce pt
memory interface and USB
F1 VDD33Supply voltage of drivers except
memory interface and USB
K1 VDD33Supply voltage of drivers except
memory interface and USB
R1 VDD33Supply voltage of drivers except
memory interface and USB
L19 VDD33Supply voltage of drivers except
memory interface and USB
E19 VDD33Supply voltage of drivers except
memory interface and USB
E15 VDD33Supply voltage of drivers except
memory interface and USB
E13 VDD33Supply voltage of drivers except
memory interface and USB
E11 VDD33Supply voltage of drivers except
memory interface and USB
E6 VDD33Supply voltage of drivers except
memory interface and USB
A3 VSS33Ground of drivers except memory
interface
D2 VSS33Ground of drivers except memory
interface
D5 VSS33Ground of drivers except memory
interface
H2 VSS33Ground of drivers except memory
interface
25/418 MediaTek Inc. Confidential
Page 26
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
M2 VSS33Ground of drivers except memory
P18 VSS33Ground of drivers except memory
H18 VSS33Ground of drivers except memory
A16 VSS33Ground of drivers except memory
B16 VSS33Ground of drivers except memory
E14 VSS33Ground of drivers except memory
E12 VSS33Ground of drivers except memory
E7 VSS33 Ground of drivers except memory
B3 AVDD_PLLSupply voltage for PLL
C3 AVSS_PLL Ground for PLL supply
B2 AVDD_RTC Supply voltage for Real Time Clock Analog Supplies
C15 AVDD_MBUF Supply Voltage for Audio band section
D14 AVSS_MBUF GND for Audio band section
B13 AVDD_BUF Supply voltage for voice band transmit
A13 AVSS_BUF GND for voice band transmit section
D11 AVDD_AFESupply voltage for voice band receive
A11 AGND_AFEGND reference voltage for voice band
E10 AVSS_AFEGND for voice band receive section
E9 AGND_RFEGND reference voltage for baseband
E8 AVSS_GSMR
FTX
D7 AVDD_GSM
RFTX
C7 AVSS_RFEGND for baseband receive section,
A7 AVDD_RFESupply voltage for baseband receive
interface
interface
interface
interface
interface
interface
interface
interface
section
section
section
section, APC, AFC and AUXADC
GND for baseband transmit section
Supply voltage for baseband transmit
section
APC, AFC and AUXADC
section, APC, AFC and AUXADC
Table 2 Pin Descriptions (Bolded types are functions at reset)
26/418 MediaTek Inc. Confidential
Page 27
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
A4 AFC_BYP
Table 3 Power Descriptions
33/418 MediaTek Inc. Confidential
Page 34
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
: major
刪除: by way of
: do
3 Micro-Controller Unit Subsystem
Figure 5 illustrates the block diagram of the Micro-Controller Unit Subsystem in MT6219. The subsystem utilizes a main
32-bit ARM7EJ-S RISC processor, which plays the role of the main bus master controlling the whole subsystem. The
processor communicates with all the other on -chip modules via the two-level system buses: AHB Bus and APB Bus. All
bus transactions originate from bus masters, while slaves can only respond to requests from bus masters. Before data
transfer can be established, bus master must ask for bus ownership. This is accomplished by request-grant handshaking
protocol between masters and arbiters.
Two levels of bus hierarchy are designed to provide optimum usage for different performance requirements. Specifically,
AHB Bus, the main system bus, is tailored toward high- speed requirements and provides 32-bit data path with multiplex
scheme for bus interconnections. The APB bus, on the other hand, is design ed to reduce interface complexity for lower data
transfer rate, and so it is isolated from high bandwidth AHB Bus by APB Bridge. It supports 16-bit addressing and both
16-bit and 32-bit data paths. APB Bus is also optimized for minimal power consumption by employing gated-clock scheme.
During operation, if the target slave is located on the AHB Bus, the transaction is conducted directly on AHB Bus. However,
if the target slave is a peripheral and is attached to the APB bus, then the transaction is conducted between AHB and APB
bus through the use of APB Bridge.
The MT6219 MCU subsystem supports only memory addressing method, therefore all components are mapped onto MCU
32-bit address space. A Memory Management Unit is employed to allow for a central decode scheme. It generates
appropriate selection signals for each memory -addressed modules on the AHB Bus.
In order to off-load the processor core, a DMA Controller is designated to act as a master and share the bus resources on
AHB Bus to performfast data movement between modules. This controller provides fourteen DMA channels.
格式化: 項目符號及編號
刪除
刪除
The Interrupt Controller provides a software interface to manipulate interrupt events. It can handle up to 32 interrupt
sources asserted at the same time. In general, i t generates 2 levels of interrupt requests, FIQ and IRQ, to the processor.
A 512K Byte SRAM is provided as system memory for high-speed data access. For factory programming purpose s , a Boot
ROM module is also integrated. These two modules use the same Internal Memory Controller to connect to AHB Bus.
External Memory Interface supports both 8-bit and 16- bit devices. Since AHB Bus is 32-bit wide, all the data transfer will
be converted into several 8-bit or 16-bit cycles depending on the data width of the target device. Note that, this interface
supports both synchronous and asynchronous components, such as Flash, SRAM and parallel LCD. This interface supports
also page and burst mode type of Flash.
34/418 MediaTek Inc. Confidential
Page 35
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
System ROM
System RAM
ARM7EJ-S
Interrupt
Controller
Ext
Bus
Internal Memory
Controller
External
Memory
Interface
MCU-DSP
Interface
USB
Arbiter
AHB Bus
DMA
Controller
APB Bus
Peripheral
APB
Bridge
Peripheral
Figure 5 Block Diagram of the Micro-Controller Unit Subsystem in MT6219
3.1 Processor Core
3.1.1 General Description
The Micro-Controller Unit Subsystem in MT6219 uses the 32-bit ARM7EJ- S RISC processor that is based on the Von
Neumann architecture with a single 32 -bit dat a bus carrying both instructions and data. The memory interface of
ARM7EJ-S is totally compliant to AMBA based bus system, which allows direct connection to the AHB Bus.
格式化: 項目符號及編號
格式化: 項目符號及編號
3.2 Memory Management
3.2.1 General Description
The processor core of MT6219 supports only memor y addressing method for instruction fetch and data access. It manages a
32-bit address space that has addressing capability up to 4GB. System RAM, System ROM, Registers, MCU Peripherals
and external components are all mapped onto such 32-bit address space, as depicted in Figure 6.
35/418 MediaTek Inc. Confidential
Page 36
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
MCU 32-bit
Addressing
Space
9FFF_FFFh
|
9000_0000h
8FFF_FFFFh
|
8000_0000h
7FFF_FFFFh
|
7000_0000h
9800_0000h
9000_0000hVirtual FIFO
7800_0000h
7000_0000hUSB
Reserved
Reserved
APB Peripherals
LCD
6FFF_FFFFh
|
5000_0000h
4FFF_FFFFh
|
4000_0000h
3FFF_FFFFh
|
0000_0000h
MCU-DSP Interface
Internal Memory
External Memroy
EA[25:0]
Addressing
Space
Figure 6 The Memory Layout of MT6219
The address space is organized into blocks with size of 256M Bytes each. Memory blocks 0-97FFFFFFh are defined and
currently dedicated to specific functions, while the others are reserved for future usage. The block number is uniquely
selected by address line A31-A28 of the internal system bus.
3.2.1.1 External Access
To allow external access, the MT6219 outputs 26 bits (A25-A0) of address lines along with 8 selection signals that
correspond to associated memory blocks. That is, MT6219 can support up to 8 MCU addressable external components. The
data width of internal system bus is fixed at 32-bit wide, while the data width of the external components can be either 8 or
16 bit.
Since devices are usually available with varied operating grades, adaptive configurations for different applications are
needed. MT6219 provides software programmable registers to configure their wait -states to adapt to different operating
conditions.
格式化: 項目符號及編號
36/418 MediaTek Inc. Confidential
Page 37
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
3.2.1.2 Memory Re -mapping Mechanism
To permit more flexible system configuration , a memory re-mapping mechanism is provided. It allows software program to
swap BANK0 (ECS0#) and BANK1 (ECS1#) dynamically. Whenever the bit value of RM0 in regi ster EMI_REMAP is
changed, these two banks will be swapped accordingly. Furthermore, it allows system to boot in different sequences as
detailed in 3.2.1.3 Boot Sequence.
3.2.1.3 Boot Sequence
Since the ARM7EJ- S core always starts to fetch instructions from the lowest memory address at 00000000h after system
has be en reset, it is designed to have a dynamic mapping architecture capable of associating Boot Code, external Flash or
external SRAM with the memory block 0000_0000h – 07ff_ffffh.
By default, the Boot Code is mapped onto 0000_0000h – 07ff_ffffh while the state of IBOOT is “0”. But, this configuration
can be changed by altering the state of IBOOT before system reset , or byprogramming bit value of RM1 in register
EMI_REMAP directly.
MT6219 system provides two kinds of boot up scheme:
l Start up system of running codes from Boot Code for factory programming
l Start up system of running codes from external FLASH or ROM device for normal operation
3.2.1.3.1 Boot Code
The Boot Code is placed together with Memory Re-Mapping Mechanism in External Memory Controller and comprises of
just two words of instructions as shown below. There is a jump instruction that leads the processor to run the code starting
at address of 48000 000h where the System ROM is placed.
The configuration for factory programming is shown in Figure 7. Usually the Factory Programming Host connects with
MT6219 via the UART interface. In order t o have it work properly, the system should boot up from Boot Code. That is,
IBOOT should be tied to GND. The download speed can be up to 921K bps while MCU is running at 26MHz.
格式化: 項目符號及編號
格式化: 項目符號及編號
格式化: 項目符號及編號
刪除: started
格式化: 項目符號及編號
After the system has reset, the Boot Code will guide the processor to run the Factory Programming software placed in
System ROM. Then, MT6219 will start and continue to poll the UART1 port until valid information is detected. The first
information received on the UART1 will be used to configure the chip for factory programming. The Flash downloader
program is then transferred into System RAM or external SRAM.
Further information will be detailed in MT6219 Software Programming Specification.
37/418 MediaTek Inc. Confidential
Page 38
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
IBOOT
MT6219
External
Memory
Interface
FLASH
UART
Factory
Programming
Host
Figure 7 System configuration required for factory programming
3.2.1.4 Little Endian Mode
The MT6219 system always treats 32-bit words of memory in Little Endian format. In Little Endian mode, the lowest
numbered byte in a word is stored in the least significant position, and the highest numbered byte in the most significant
position. Byte 0 of the memory system is therefore connected to data lines 7 through 0.
3.3 Bus System
3.3.1 General Description
Two levels of bus hierarchy are em ployed in the Micro-Controller Unit Subsystem of MT6219. As depicted in Figure 5,
AHB Bus and APB Bus serve as system backbone and peripheral buses, while an APB bridge connects these two buses.
Both AHB and APB Buses operate at the same clock rate as processor core.
格式化: 項目符號及編號
格式化: 項目符號及編號
The APB Bridge is the only bus master residing on the APB bus. All APB slaves are mapped onto memory block MB8 in
MCU 32 -bit addressing space. A central address decoder is implemented inside the bridge to generate select signals for
individual peripherals. In addition, since the base address of each APB slave has been associated with select signals, the
address bus on APB will contains only the value of offset address.
The maximum address space that can be allocated to a single APB slave is 32KB, i.e. 16-bit address lines. The width of the
data bus is mainly constrained to 16-bit in order to minimize the design complexity and power consumption while some
uses 32 -bit data bus to accommodate more bandwidth. In the case where an APB slave needs large amount of transfers, the
device driver can also request DMA channels to conduct a burst of data transfer. The base address and data width of each
peripheral are listed in Table 4.
Base Address Description
8000_0000h
Configuration Registers
(Clock, Power Down, Version and Reset)
Data
Width
Software Base ID
16 CONFG Base
8001_0000h External Memory Interface 16 EMI Base
8002_0000h Interrupt Controller 32 CIRQ Base
8003_0000h DMA Controller 32 DMA Base
38/418 MediaTek Inc. Confidential
Page 39
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
8004_0000h Reset Generation Unit 16 RGU Base
8005_0000h Reserved
8006_0000h GPRS Cipher Unit 32 GCU Base
8007_0000h Software Debug 16 SWDBG Base
8008_0000h MCU Tracer 32 TRC Base
8009_0000h NAND Flash Interface 32 NFI Base
800a_0000h Serial Camera Control Bus 16 SCCB Base
8010_0000h General Purpose Timer 16 GPT Base
8011_0000h Keypad Scanner 16 KP Base
8012_0000h General Purpose Inputs/Outputs 16 GPIO Base
8013_0000h UART 1 16 UART1 Base
8014_0000h SIM Interface 16 SIM Base
8015_0000h Pulse-Width Modulation Outputs 16 PWM Base
8016_0000h Alerter Interface 16 ALTER Base
8017_0000h Reserved
8018_0000h UART 2 16 UART2 Base
8019_0000h Reserved
801a_0000h IrDA 16 IRDA Base
801b_0000h UART 3 16 UART3 Base
801c_0000h Base-Band to PMIC Serial Interface 16 B2PSI Base
8020_0000h TDMA Timer 16 TDMA Base
8021_0000h Real Time Clock 16 RTC Base
8022_0000h Base-Band Serial Interface 32 BSI Base
8023_0000h Base-Band Parallel Interface 16 BPI Base
8024_0000h Automatic Frequency Control Unit 16 AFC Base
8025_0000h Automatic Power Control Unit 32 APC Base
8026_0000h Frame Check Sequence 16 FCS Base
8027_0000h Auxiliary ADC Unit 16 AUXADC Base
8028_0000h Divider/Modulus Coprocessor 32 DIVIDER Base
8029_0000h CSD Format Conversion Coprocessor 32 CSD_ACC Base
802a_0000h MS/SD Controller 32 MSDC Base
8030_0000h MCU-DSP Shared Register 16 SHARE Base
8031_0000h DSP Patch Unit 16 PATCH Base
8040_0000h Audio Front End 16 AFE Base
8041_0000h Base-Band Front End 16 BFE Base
8050_0000h Analog Chip Interface Controller 16 MIXED Base
8060_0000h JPEG Decoder 32 JPEG Base
8061_0000h Resizer 32 RESZ Base
8062_0000h Camera Interface 32 CAM Base
39/418 MediaTek Inc. Confidential
Page 40
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
8063_0000h Image Engine 32 IMG Base
8064_0000h Reserved
8065_0000h GIF Decoder 32 GIFDEC Base
8066_0000h 2D Command Queue 32 GCMQ Base
8067_0000h 2D Accelerator 32 G2D Base
8068_0000h MPEG4 Codec 32 MP4 Base
8069_0000h Image DMA 32 IMGDMA Base
Table 4 Register Base Addresses for MCU Peripherals
REGISTER ADDRESS REGISTER NAME SYNONYM
CONFG + 0000h Hardware Version Register HW_VER
CONFG + 0004h Firmware Version Register FW_VER
CONFG + 0008h Hardware Code Register HW_CODE
CONFG + 0404h APB Bus Control Register APB_CON
Table 5 APB Bridge Register Map
3.3.2 Register Definitions
CONFG+0000h Hardware Version Register HW_VERSION
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name
Type RO RO RO RO
Reset
EXTP MAJREV MINREV HFIX
8 A 0 0
格式化: 項目符號及編號
This register is useful for software program to determine the hardware version of the chip. It will have a new value
whenever each metal fix or major step is performed. All these values are incremented by a step of 1.
HFIX Iteration to fix a hardware bug, in case of some layer mask fixed
MINREV Minor Revision of the chip, in case of all layer masks changed
MAJREV Major Revision of the chip
EXTP This field shows the existence of Hardware Code Register that presents the Hardware ID while the value is other
than zero.
CONFG+0004h Firmware Version Register FW_VERSION
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name
Type RO RO RO RO
Reset
This register is useful for software program to determine the Firmware ROM version that is included in this chip. All these
values are incremented by a step of 1.
FFIX Iteration to fix a firmware bug
MINREV Minor Revision of the firmware
40/418 MediaTek Inc. Confidential
EXTP MAJREV MINREV FFIX
8 A 0 0
Page 41
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
MAJREV Major Revision of the firmware
EXTP This field shows the existence of Hardware Code Register that presents the Hardware ID when the value is other
This register is used to control the timing of Read Cycle and Write Cycle on APB Bus. Note that APB Bridge 5 is different
from other bridges. The access time is varied, and access is not completed until acknowledge signal from APB slave is
asserted.
APBR0-APBR6 Read Access Time on APB Bus
APBW0-APBW6 Write Access Time on APB Bus
APBW
6
0 1-Cycle Access
1 2-Cycle Access
0 1-Cycle Access
1 2-Cycle Access
APBW4 APBW3 APBW2 APBW1 APBW
0
APBR
6
APBR4 APBR3 APBR2 APBR1 APBR
0
格式化: 項目符號及編號
3.4 Direct Memory Access
3.4.1 General Description
A generic DMA Controller is placed on Layer 2 AHB Bus to support fast data transfers, and also to off-load the processor.
With this controller, specific devices on AHB or APB buses can benefit greatly from quick completion of data movement
from or to memory module such as Internal System RAM or External SRAM. Such Generic DMA Controller can also be
used to connect any two devices other than memory module as long as they can be addressed in memory space.
41/418 MediaTek Inc. Confidential
Page 42
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
Figure 8 Variety Data Paths of DMA Transfers
Up to fourteen channels of simultaneous data transfer are supported. Each channel has a similar set of registers to be
configured to different scheme as desired. If more than fourteen devices are requesting the DMA resources at the same time,
software based arbitration should be employed. Once the service candidate is decided, the responsible device driver should
configure the Generic DMA Controller properly in order to conduct DMA transfers. Both Interrupt and Polling based
schemes in handling the completion event are suppo rted. The block diagram of such generic DMA Controller is illustrated
in Figure 9.
Figure 9 Block Diagram of Direct memory Access Module
3.4.1.1 Full-Size & Half-Size DMA Channels
There are three types of DMA channels in the DMA controller. The first one is called full-size DMA channel, the second
one is called half-size DMA channel, and the last one is Virtual FIFO DMA. Channel 1 to 3 are full -size DMA channels,
channel 4 to 10 are half-size ones, and channel 11 to 14 are Virtual FIFO DMAs. The difference between the first two types
of DMA channels is that both source and destination address are programmable in full-size DMA channels, but only one
side of address can be programmed in half -size DMA channel. In half-size channels, only either the source or destination
address can be programmed, while the addresses of the other side is preset. Which preset address is used depends on the
setting of MAS in DMA Channel Control Register. Please refer to Register Definition section for more detail.
42/418 MediaTek Inc. Confidential
格式化: 項目符號及編號
Page 43
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
: two刪除: , and vice versa
3.4.1.2 Ring Buffer & Double Buffer Memory Data Movement
DMA channel 1-10 support ring-buffer and double- buffer memory data movement. This can be achieved by programming
DMA_WPPT and DMA_WPTO, as well as set ting WPEN in DMA_CON register to enable.Figure 10 illustrates how this
function works. Once transfer counter reaches the value of WPPT, next address will jump to WPTO address after
completing data transfer of WPPT. Note that only one side can be configured as ring-buffer or double-buffer memory, and
this is controlled by WPSD in DMA_CON register.
Figure 10 Ring Buffer and double Buffer Memory Data Movement
3.4.1.3 Unaligned Word Access
The address of word access on AHB bus must be aligned to word boundary, or the 2 LSB will be truncated to 00b. If
programmers do not notice this, it may cause incorrect data fetch. In the case where data is to be moved from unaligned
addresses to aligned addresses, the word is usually first split into four bytes and then moved by byte. This causes four read
and four write transfers on the bus.
To improve bus efficiency, unaligned-word access is provided in DMA 4-10. While this function is enabled, DMAs
move data from unaligned address to aligned address by executing four continuous byte-read access and one word-write
access. This reduces three transfers on the bus.
格式化: 項目符號及編號
刪除
格式化: 項目符號及編號
43/418 MediaTek Inc. Confidential
Page 44
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
: doesn’t
: can’t
Figure 11 unaligned word accesses
3.4.1.4 Virtual FIFO DMA
Virtual FIFO DMA is used to ease UART control. The difference between the Virtual FIFO DMAs and the ordinary DMAs
is that Virtual FIFO DMA contains additional FIFO controller. The read and write pointer are kept in the Virtual FIFO
DMA. During READ from the FIFO, the read pointer points to the address of the next data. During WRITE to the fifo, the
write pointer move s to the next address. If the FIFO is empty, FIFO read will not be allowed. Similarly, data will not be
written into the FIFO if the FIFO is full. Due to requirement of UART flow control, an aler t length shall be programmed.
Once the FIFO Space is less than this value , an alert signal will be issued to enable UART flow control. What kind of flow
control will be performed depends on the setting in UART.
格式化: 項目符號及編號
Each Virtual FIFO DMA can be programmed as RX or TX FIFO. This depends on the setting of DIR in DMA_CON
register. If DIR is “0”(READ), it means TX FIFO. On the other hand, if DIR is “1”(WRITE), the Virtual FIFO DMA is
specified as a RX FIFO.
Virtual FIFO DMA provides an interrupt to MCU. This interrupt is to inform MCU that there are data in the FIFO, and the
amount of data is over or under the value defined in DMA_COUNT register. With this, MCU does not need to poll DMA to
know when it needs to remove the data from FIFO or put data into FIFO.
Note that Virtual FIFO DMAs cannot be used as generic DMAs, i.e. DMA1-10.
Figure 12 Virtual FIFO DMA
44/418 MediaTek Inc. Confidential
刪除
刪除
Page 45
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
DMA number Address of Virtual FIFO Access Port Associated UART
DMA11 7800_0000h UART1 RX / ALL UART TX
DMA12 7800_0100h UART2 RX / ALL UART TX
DMA13 7800_0200h UART3 RX / ALL UART TX
DMA14 7800_0300h ALL UART TX
l Start registers shall be cleared, when associated channels are being programmed.
l PGMADDR, i.e. programmable address, only exists in half-size DMA channels. If DIR in Control Register is high,
PGMADDR represents Destination Address. Conversely, If DIR in Control Register is low, PGMADDR represents
Source Address.
l Functions of ring-buffer & double-buffer memory data movement can be activated in either source side or
destination side by programming DMA_WPPT & and DMA_WPTO, as well as setting WPEN in DMA_CON
register high. WPSD in DMA_CON register determines the activated side.
49/418 MediaTek Inc. Confidential
格式化: 項目符號及編號
Page 50
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
The above registers contain the base or current source address that the DMA channel is currently operat ing on. Writing to
this register specifies the base address of transfer source for a DMA channel. Before program ming these registers, the
software program should make sure that STR in DMAn_START is set to ‘0’, that is, the DMA channel is stopped and
disabled completely. Otherwise, the DMA channel may run out of order. Reading this register returns the address value that
the DMA is reading from.
SRC[31:16]
0
SRC[15:0]
0
Note that n is from 1 to 3.
SRC SRC[31:0] specifies the base or current address of transfer source for a DMA channel, i.e. channel 1, 2 or 3
WRITE base address of transfer source
READ the address DMA is reading from
DMA+0n04h DMA Channel n Destination Address Register DMAn_DST
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
: the
刪除: the
The above registers contain the base or current destination address that the DMA channel is currently operating on.. Writing
to this register specifies the base address of the transfer destination for a DMA channel. Before programming these registers,
the software should make sure that STR in DMAn_START is set to ‘0’, that is, the DMA channel is stopped and disabled
completely. Otherwise, the DMA channel may run o ut of order. Reading this register returns the address value that the
DMA is writing to.
Note that n is from 1 to 3.
DST DST[31:0] specifies the base or current address of transfer destination for a DMA channel, i.e. channel 1, 2 or 3.
WRITE base address of transfer destination
READ the address DMA is writing to
DMA+0n08h DMA Channel n Wrap Point Count Register DMAn_WPPT
The above registers are to specify the address of the jump point of a given DMA transfer to support ring buffer or double
buffer style memory accesses. To enable this function, two control bit s, WPEN and WPSD, in DMA control register should
be programmed. See thefollowing register description for moredetail s. If the address counter in the DMA engine match es
this value, an address jump will occurs, and the next address will be the address specified in DMAn_WPTO. Before
programming these registers, the software should make sure that STR in DMAn_START is set to ‘0’, that is the DMA
channel is stopped and disabled completely. Otherwise, the DMA channel may run out of order. To enable this function,
WPEN in DMA_CON should be set.
WPPT[15:0]
0
刪除
Note that n is from 1 to 10.
WPPT WPPT[15:0] specifies the amount of the transfer count from start to jumping point for a DMA channel, i.e.
channel 1 – 10.
WRITE the address of the jump point.
READ the same as what you fill in.
DMA+0n0Ch DMA Channel n Wrap To Address Register DMAn_WPTO
The above registers are to specify the address of the jump destination of a given DMA transfer to support ring buffer or
double buffer style memory accesses. To enable this function, two control bit, WPEN and WPSD, in DMA control register
should be programmed. See the following regi ster description for moredetail s. Before programming these registers, the
software should make sure that STR in DMAn_START is set to ‘0’, that is the DMA channel is stopped and disabled
51/418 MediaTek Inc. Confidential
WPTO[31:16]
0
WPTO[15:0]
0
Page 52
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
_COUNT
WPSD
completely. Otherwise, the DMA channel may run out of order. To e nable this function, WPEN in DMA_CON should be
set.
Note that n is from 1 to 10.
WPTO WPTO[31:0] specifies the address of the jump point for a DMA channel, i.e. channel 1 – 10.
WRITE the address of the jump destination.
READ the same as what you fill in.
DMA+0n10h DMA Channel n Transfer Count Register DMAn
This register specifies the amount of total transfer count that the DMA channel is required to perform. Upon completion, the
DMA channel generates an interrupt request to the processor while ITEN in DMAn_CON is set as ‘1’. Note that the total
size of data being transferred by a DMA channel is determined by LEN together with the SIZE in DMAn_CON, i.e. LEN x
SIZE.
For virtual FIFO DMA, this register is used to configure the RX threshold and TX threshold. Interrupt is triggered while
FIFO count >= RX threshold in RX path or FIFO count =< TX threshold in TX path. Note that ITEN bit in DMA_CON
register shall be set, or no interrupt will be issued.
This register contains all the available control schemes for a DMA channel that is ready for software programmer to
configure with. Note that all these fields cannot be changed whil e DMA transfer is in progress or unexpected situation may
occur.
Note that n is from 1 to 14.
SIZE Data size within the confine of a bus cycle per transfer
These bits confines the data transfer size between source and destination to the specified value for individual bus
cycle. The size is in terms of byte and has maximum value of 4 bytes. It is mainly decided by the data width of a
DMA master.
00 Byte transfer/1 byte
52/418 MediaTek Inc. Confidential
Page 53
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
: Increamental
: I刪除: Increamental
: ,
刪除: can’t
01 Half-word transfer/2 bytes
10 Word transfer/4 bytes
11 Reserved
SINC Incremental source address. Source addresses increase every transfer. If the setting of SIZE is Byte, Source
addresses increase by 1 every single transfer. If Half-Word, increase by 2; and if Word, increase by 4.
0 Disable
1 Enable
DINC Incremental destination address. Destination addresses increase every transfer. If the setting of SIZE is Byte,
Destination addresses increase by 1 every single transfer. If Half-Word, increase by 2; and I if Word, increase by 4.
0 Disable
1 Enable
DREQ Throttle and handshake control for DMA transfer
0 No throttle control during DMA transfer or transfers occurred only between memories
1 Hardware handshake management
The DMA master is able to throttle down the transfer rate by way of request -grant handshake.
B2W Word to Byte or Byte to Word transfer for the applications of transferring non-word-aligned-address data to
word-aligned-address data. Note that BURST shall be set to 4-beat/8-beat/16-beat burst while enabling this
function, and the SIZE shall be set to Byte.
NO effect on channel 1 – 3 & 11 - 14.
0 Disable
1 Enable
BURST Transfer Type. Burst -type transfers have better bus efficiency. Mass data movement is recommended to use this
kind of transfer. However, note that burst-type transfer will no t stop until all of the beats in a burst are completed
or transfer length is reached. FIFO threshold of peripherals shall be configured carefully while you use it to move
data from/to the peripherals.
What transfer type can be used is restricted by the SIZE. If SIZE is 00b, i.e. byte transfer, all of the four transfer
types can be used. If SIZE is 01b, i.e. half-word transfer, 16-beat incrementing burst cannot be used. If SIZE is 10b,
i.e. byte transfer, only single and 4-beat incrementing burst can be used.
WPSD The side using address-wrapping function. Only one side of a DMA channel can activate address -wrapping
function at a time.
NO effect on channel 11 - 14.
0 address-wrapping on source
53/418 MediaTek Inc. Confidential
刪除
刪除: ,
刪除
刪除
Page 54
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
: while
刪除: I
1 address-wrapping on destination
WPEN Address-wrapping for ring buffer. The next address of DMA jumps to WRAP TO address when current address
matches WRAP POINT count.
NO effect on channel 11 - 14.
0 Disable
1 Enable
DIR the directions of DMA transfer for half-size and Virtual FIFO DMA channels, i.e. channel 4 – 14. The direction is
from the perspective of the DMA masters. WRITE means read from master and then write to the address specified
in DMA_PGMADDR, and v ice versa.
NO effect on channel 1 - 3.
0 Read
1 Write
MAS Master selection. Specifies which master occupies this DMA channel. Once assigned to certain master,
corresponding DREQ and DACK will be connected. For half-size and Virtual FIFO DMA channels, i.e. channel
4 – 14, a predefined address will be assigned as well.
This register controls the activity of a DMA channel. Note that prior to setting STR to “1”, all the configurations should be
done by giving proper value to the registers. Note also that once the STR is set to “1”, the hardware will not clear it
54/418 MediaTek Inc. Confidential
Page 55
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
automatically no matter if the DMA channel accomplishes the DMA transfer or not. Put in another way, the value of STR
stay as “1” regardless of the completion of DMA transfer. Therefore, the software program should be sure to clear STR to
“0” before restarting another DMA transfer.
Note that n is from 1 to 14.
STR Start control for a DMA channel
0 The DMA channel is stopped
1 The DMA channel is started and running
DMA+0n1Ch DMA Channel n Interrupt Status Register DMAn_INTSTA
This register is used to acknowledge the current interrupt request associated with the completion event of a DMA channel
by software program. Note that this is a write-only register, and any read to it will return a value of “0”.
Note that n is from 1 to 14.
ACK Interrupt acknowledge for the DMA channel
0 No effect
1 Interrupt request is acknowledged and should be relinquished.
DMA+0n24h DMA Channel n Remaining Length of Current Transfer
This register is to suppress the Bus utilization of the DMA channel. The value is from 0 to 255. 0 means no limitation, and
255 means totally banned. The value between 0 and 255 means certain DMA can have permission to use AHB every (4 X n)
AHB clock cycles.
Note that it is not recommended to limit the Bus utilization of the DMA channels because this will increase the latency of
response to the masters, and the transfer rate will decrease as well. Before using it, programmer must make sure that
masters have some protective mechanism to avoid entering into the wrong states.
Note that n is from 1 to 14.
LIMITER from 0 to 255. 0 means no limitation, 255 means totally banned, and others means Bus access permission
every (4 X n) AHB clock.
DMA+0n2Ch DMA Channel n Programmable Address Register
The above registers specify the address for a half-size DMA channel. This address represents source address if DIR in
DMA_CON is set to 0, and represents destination address if DIR in DMA_CON is set to 1. Before being able to program
these register, the software should make sure that STR in DMAn_START is set to ‘0’, that is the DMA channel is stopped
and disabled completely. Otherwise, the DMA channel may run out of order.
Note that n is from 4 to 14.
PGMADDR PGMADDR[31:0] specifies the addresses for a half-size or a Virtual FIFO DMA channel, i.e. channel 4 – 14.
WRITE the address of the jump destination.
READ the current address of the transfer
56/418 MediaTek Inc. Confidential
Page 57
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
DMA+0n30h DMA Channel n Virtual FIFO Write Pointer Register DMAn_WRPTR
FFSIZE specifies the FIFO Size of Virtual FIFO DMA.
3.5 Interrupt Controller
3.5.1 General Description
Figure 13 outlines the major functionality of the MCU Interrupt Controller. The interrupt controller processes all interrupt
sources coming from external lines and internal MCU peripherals. Since ARM7EJ-S core supports two levels of interrupt
latency, this controller will generate two request signals: FIQ for fast, low latency interrupt request and IRQ for more
general interrupts with lower priority.
58/418 MediaTek Inc. Confidential
格式化: 項目符號及編號
Page 59
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
: taking
EINTFIQ
TDMA
GPT
SIM
UART1
KP
RTC
UART2
DSP2MCU
APB Bus
Interrupt
Input
Multiplex
IRQ0
IRQ1
IRQ2
IRQn
IRQ31
SoftIRQ
Registers
FIQ
Controller
IRQ
Controller
IRQ
Figure 13 Block Diagram of the Interrupt Controller
One and only one of the interrupt sources can be assigned to FIQ Controller and have the highest priority in requesting
timing critical service. All the others should share the same IRQ signal by connecting them to IRQ Controller. The IRQ
Controller manages up 32 interrupt lines of IRQ0 to IRQ31 with fixed priority in descending order.
The Interrupt Controller provides a simple software interface by mean of registers to manipulate the interrupt request shared
system. IRQ Selection Registers and FIQ Selection Regist er determine the source priority and connecting relation among
sources and interrupt lines. IRQ Source Status Register allows software program to identify the source of interrupt that
generates the interrupt request. IRQ Mask Register provides software to mask out undesired sources some time. End of
Interrupt Register permits software program to indicate the controller that a certain interrupt service routine has been
finished.
Binary coded version of IRQ Source Status Register is also made available for so ftware program to helpfully identify the
interrupt source. Note that while using this register, the controller also needs to use the corresponding binary coded version
of End of Interrupt Register for response.
The essential Interrupt Table of ARM7EJ-S core is shown as Table 9.
Address Description
00000000h System Reset
00000018h IRQ
0000001Ch FIQ
Table 9 Interrupt Table of ARM7EJ-S
59/418 MediaTek Inc. Confidential
刪除
刪除: this advantage, it should
also take the binary coded
version of End of Interrupt
Register coincidently.
Page 60
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
:
at least
: g
刪除: ing
: doing刪除: it’s刪除: have
刪除: the刪除: item in your ISR.
:
3.5.1.1 Interrupt Source Masking
Interrupt controller provides the function of Interrupt Source Masking by the way of programming MASK register. Any of
them can be masked individually.
However, because of the bus latency, th e masking takes effect a minimal of3 clock cycles later. In this time, the
to-be-masked interrupts could come in and generate an IRQ pulse to MCU, and then disappear immediately. This IRQ
forces MCU to gointo Interrupt Service Routine and poll the Status Register (IRQ_STA or IRQ_STA2), but the register
will show there is no interrupt. This may cause MCU malfunction.
There are two ways for programmers to protect their software.
1. Return from ISR (Interrupt Service Routine) immediately while the Status register shows no interrupt.
2. Set I bit of MCU before performing Interrupt Masking, and then clear it after Interrupt Masking done.
Both can avoid the problem, but it is always recommended to use the first method list above.
3.5.1.2 External Interrupt
This interrupt controller also integrates an External Interrupt Controller that can support up to 4 interrupt requests coming
from external sources, the EINT0–3 as shown in Figure 14, and 4 WakeUp interrupt requests, i.e. EINT4-7, coming from
peripherals used to inform system to resume system clock.
The four external interrupts can be used for different kind of applications, mainly for event detections: detection of
hands-free connection, detection of hood opening, detection of battery charger connection.
Since the external event may be unstable in a certain period, de -bounce mechanism is introduced to ensure the correct
functionality. The circuitry is mainly used to verify that the input si gnal remains stable for a programmable number of
periods of the clock. When this condition is satisfied, for the appearance or the disappearance of the input, the output of the
de-bounce logic will change to the desired state. Note that, because it uses th e 32KHz slow clock for doing de-bounce
process, the parameter of de -bounce period and de - bounce enable take effect no sooner than one 32KHz clock cycle
(~31.25us) after software program sets them. However, the polarities of EINTs are clocking with system clock. Any
changes on it will take effect immediately. Note also that this External Interrupt Controller handles only level sensitive type
of interrupt sources.
格式化: 項目符號及編號
刪除
刪除
刪除: ight
刪除
格式化: 項目符號及編號
刪除
60/418 MediaTek Inc. Confidential
Page 61
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
EINT4-7
EINT3
EINT2
EINT1
EINT0
Debounce Logic
Debounce Logic
Debounce Logic
Debounce Logic
Figure 14 Block diagram of External Interr upt Controller
The IRQ/FIQ Selection Registers provide system designers with a flexible routing scheme to make various mappings of
priority among interrupt sources possible. It allows the interrupt sources to be mapped onto interrupt requests of either FIQ
or IRQ. While only one interrupt source can be assigned to FIQ, the other ones should share IRQ by mapping them onto
IRQ0 to IRQ1F, which are connected to IRQ controller. The priority of IRQ0-IRQ1F is fixed, i.e. IRQ0 > IRQ1 > IRQ2
> … > IRQ1E > IRQ1F. During the software configuration process, the Interrupt Source Code of desired interrupt source
should be written into source field of the corresponding IRQ_SEL0-IRQ_SEL4/FIQ_SEL. 5-bit Interrupt Source Codes for
all interrupt sources are fixed and defined in Table 11.
Interrupt Source Interrupt Source Code
GPI_FIQ 00000
TDMA_CTIRQ1 00001
TDMA_CTIRQ2 00010
63/418 MediaTek Inc. Confidential
Page 64
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
IRQ1D
IRQ10
: Porc
DSP2CPU 00011
SIM 00100
DMA 00101
TDMA 00110
UART1 00111
KeyPad 01000
UART2 01001
GPTimer 01010
EINT 01011
USB 01100
MSDC 01101
RTC 01110
IrDA 01111
LCD 10000
UART3 10001
GPI_IRQ10010
WDT 10011
JPEG 10100
Resizer 10101
NFI 10110
B2PSI 10111
Image DMA 11000
GIF 11001
Reserved 11010
SCCB 11011
G2D 11100
Image Engine 11101
CAM 11110
MPEG4 11111
刪除
Table 11 Interrupt Source Code for Interrupt Sources
FIQ , IRQ0-1F The 5-bit content of this field would be the Interrupt Source Code shown in Table 11 indicating that the
certain interrupt source uses the associated interrupt line to generate fast interrupt requests.
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
IRQ1D
IRQ10
IRQ1D
IRQ10
IRQ1D
IRQ10
This register contains mask bit for each interrupt line in IRQ Controller. It allows each interrupt source of IRQ0 to IRQ1F
to be disabled or masked out separately under software control. After System Reset, all bit values will be set to ‘1’ to
indicate that interrupt requests are prohibited.
IRQ0-1F Mask Control for the Associated Interrupt Source in IRQ Controller
This register is used to clear bits in the IRQ Mask Register. When writing to this register, the data bits that are high will
cause the corresponding bits in the IRQ Mask Register to be cleared. Data bits that are low have no effect on the
corresponding bits in the IRQ Mask Register
IRQ0-1F Clear corresponding bits in IRQ Mask Register.
This register is used to set bits in the IRQ Mask Register. When writing to this register, the data bits that are high will cause
the corresponding bits in the IRQ Mask Register to be set. Data bits that are low have no effect on the corresponding bits in
the IRQ Mask Register
IRQ0-1F Set corresponding bits in IRQ Mask Register.
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
IRQ_EOI
IRQ1D
IRQ10
IRQ1D
IRQ10
IRQ1D
IRQ10
: won’t
刪除: won’t刪除: That
This Register allows software to poll which interrupt line generates the IRQ interrupt request. A bit set to ‘1’ indicates a
corresponding active interrupt line. Only one flag is active at a time. The IRQ_STA is type of READ-Clear, write access
will have no effect to the content.
IRQ0-1F Interrupt Indication for the Associated Interrupt Source
0 The associated interrupt source is non-active
1 The associated interrupt source is asserted
This register provides a mean for software to relinquish and refresh the Interrupt Controller. Writing a ‘1’ to the specific bit
position will result in an End of Interrupt Command internally to the corresponding interrupt line.
IRQ0-1F End of Interrupt Command for the Associated Interrupt Line
0 No service is currently in progress or pending
1 Interrupt request is in -service
All interrupt lines of IRQ Controller, IRQ0-IRQ1F can be programmed as either edge or level sensitive. By default, all the
interrupt lines are edge sensitive and should be active LOW. Once a interrupt line is programmed as edge sensitive, an
interrupt request is triggered only at the falling edge of interrupt line, and the next interrupt will notbe taken until the EOI
command is given. However, level sensitive interrupt triggering is according to the signal level of the interrupt line. Once
the interrupt line become from High to Low, an interrupt request is triggered, and another interrupt request will be triggered
if the signal level remain Low after EOI command. Please note that in edge sensitive mode, even if the signal level remains
Low after EOI command, another interrupt request will not be triggered. Thisis because edge sensitive interrupt is only
triggered at the falling edge.
IRQ0-1F Sensitive Type of the Associated Interrupt Source
0 Edge sensitivity with active LOW
1 Level sensitivity with active LOW
Setting “1” to the specific bit position generates a software interrupt for corresponding Interrupt Line before mask. This
register is used for debug purpose.
This register provides a mean for software to relinquish and refresh the FIQ Controller. Writing a ‘1’ to the specific bit
position will result in an End of Interrupt Command internally to the corresponding interrupt line.
EOI End of Interrupt Command
CIRQ+0040h Binary Coded Value of IRQ_STATUS IRQ_STA2
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
: generates
刪除: makes
刪除: of
刪除: that
刪除: generates
刪除: sensitivity
Type RO RC
Reset 0 0
This Register is a binary coded version of IRQ_STA. It is used for software program to poll and seewhich interrupt line
generated the IRQ interr upt request in a much easier way. Any read to it hasthe same result as reading IRQ_STA. The
IRQ_STA2 is also READ -ONLY, write access has no effect to the content. Note that, IRQ_STA2 should be coupled with
IRQ_EOI2 while using it.
STS Binary Coded Value of IRQ_STA
NOIRQ Indicating if there is an IRQ or not. If there is no IRQ, this bit will be high, and the value of STS should be
This register is a binary coded version of IRQ_EOI. It provides an easier way for software program to relinquish and
refresh the Interrupt Controller. Writing a specific code will result in an End of Interrupt Command internally to the
corresponding interrupt line. Note that, IRQ_EOI2 should be coupled with IRQ_STA2 while using it.
EOI Binary Coded Value of IRQ_EOI
刪除
CIRQ+0100h EINT Interrupt Status Register EINT_STA
Name EINT7 EINT6 EINT5 EINT4 EINT3 EINT2 EINT1 EINT0
Type RO RO RO RO RO RO RO RO
Reset 0 0 0 0 0 0 0 0
This register keeps up with current status of which EINT Sourcegenerated the interrupt reque st. If EINT sources are set to
edge sensitiv e, EINT_IRQ will be de -asserted while this register is read.
EINT0- EINT7 Interrupt Status
0 No Interrupt Request is generated
1 Interrupt Request is pending
These registers control the de -bounce logic for external interrupt sources in order to minimize the possibility of false
activations. EINT4 – 7 have no de-bounce mechanism. Therefore only bit POL is used.
Note that n is from 0 to 7, and m is n plus 2.
CNT De-bounce Duration in terms of numbers of 32KHz clock cycles
POL Activation Type of the EINT Source
0 Negative polarity
1 Positive polarity
EN De-bounce Control Circuit
0 Disable
1 Enable
70/418 MediaTek Inc. Confidential
Page 71
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
: 8刪除: two
刪除: 256刪除: two
刪除: ’刪除: diffusion
刪除:
3.6 Internal Memory Interface
3.6.1 System RAM
MT6219 provides four 128K Byte size of on-chip memory modules acting as System RAM for data access with zero
latency. Such module is composed of fourhigh speed synchronous SRAMs with AHB Slave Interface connected to the
system backbone AHB Bus, as shown in Figure 15. The synchronous SRAM operates at the same clock as the AHB Bus
and is organized as 32-bit wide with 4 byte-write signals capable for byte operations.
3.6.2 System ROM
The System ROM is primarily used to store software program for Factory Progr amming. However, due to it s advantageous
zero latency performance, some of the timing critical codes are also placed in this area. This module is composed of
high-speed VIA ROM with AHB Slave Interface connected to system backbone AHB Bus, as shown in Figure 15. It
operates at the same clock as AHB Bus and is organized as 32-bit wide.
格式化: 項目符號及編號
刪除
格式化: 項目符號及編號
Figure 15 Block Diagram of Internal
Memory Controller
3.7 External Memory Interface
3.7.1 General Description
MT6219 incorporates a powerful and flexible memory controller, External Memory Interface, to connect with a variety of
memory components. This controller provides generic access schemes to asynchronous/synchronous types of memory
devices, such as Flash Memory and SRAM. It can simultaneously support up to 8 memory banks BANK0- BANK7 with
maximum size of 64MB each.
71/418 MediaTek Inc. Confidential
刪除:
格式化: 項目符號及編號
Page 72
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
: Such that刪除: those
刪除: By connect
ing with
: 7
Since most of the target asynchronous components have similar AC requirements, it is desirable to have a generic
configuration scheme to interface them. This way, software program can treat different components by simply specifying
certain predefined parameters. All th eseparameters are based on cycle time of system clock. The interface definition based
on such asynchronous/synchronous scheme is listed in Table 12. Note that, this interface always operates data in Little
Endian format for all types of accesses.
Page/Burst mode Flash is supported for those applications required to run EIP (execution in place).
Signal Name Type Description
EA[25:0] O Address Bus
ED[15:0] I/O Data Bus
EWR# O Write Enable Strobe
ERD# O Read Enable Strobe
ELB# O Lower Byte Strobe
EUB# O Upper Byte Strobe
ECS# [7:0] O BANK0~BANK7 Selection Signal
EPDN O Pseudo SRAM Power Down Control Signal
ECLK O Burst Mode Flash Clock Signal
EADV# O Burst Mode Flash Address Latch Signal
Table 12 External Memory Interface of MT6219s for Asynchronous/Synchronous Type Components
This controller can also handle parallel type of LCD. 8080 type of control method is supported. The interface definition is
detailed in Tabl e 13.
刪除
them,
Bus Type ECS # EA25 ERD# EWR# ED[15:0]
8080 series CS# A0 RD# WR# D[15:0]
Table 13 Configuration for LCD Parallel Interface
REGISTER ADDRESS REGISTER NAME SYNONYM
EMI + 0000h EMI Control Register for BANK0 EMI_CONA
EMI + 0008h EMI Control Register for BANK1 EMI_CONB
EMI + 0010h EMI Control Register for BANK2 EMI_CONC
EMI + 0018h EMI Control Register for BANK3 EMI_COND
EMI + 0020h EMI Control Register for BANK4 EMI_CONE
EMI + 0028h EMI Control Register for BANK5 EMI_CONF
EMI + 0030h EMI Control Register for BANK6 EMI_CONG
EMI + 0038h EMI Control Register for BANK7 EMI_CONH
EMI + 0040h EMI Remap Control Register EMI_REMAP
EMI + 0044h EMI General Control Register EMI_GEN
EMI + 0050h Code Cache and Code Prefetch Control Register PREFETCH_CON
EMI + 0060h EMI Patch Enable Register EMI_PATCHEN
EMI + 0064h EMI Patch 0 Address Register EMI_PADDR0
72/418 MediaTek Inc. Confidential
刪除
Page 73
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
For each bank (BANK0-BANK7), there is a dedicated control register in connection with the associated bank controller.
These registers have the timing parameters that help the controller to convertmemory access into proper timing waveform.
Note that, exceptfor parameters ADV, BMODE, PMODE, DW and RBLN, all the other parameters specified explicitly are
based on bus clock speed in terms of cycle count.
74/418 MediaTek Inc. Confidential
BMODE PMO
DE
刪除
Page 75
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
RLT+1
C2RS
: parameter RLT turns
: wait-states
刪除: ’刪除: with the
: though
RLT Read Latency Time
Specifying the number of wait -states to insert in bus transfer to requesting agent. Such parameter should be chosen
carefully to meet the common parameter tACC (access time) for device in read operation. Example is shown
below.
ECLK
EA
ECSn#
ERD#
ED
刪除
effectively
刪除
EADV
Figure 16 Read Wait State Timing Diagram
Access Time Read Latency Time in 52 MHz unit
65 ns ~ 70 ns 4
85 ns ~ 90 ns 5
110 ns ~ 120 ns 6
Table 15 Reference value of Read Latency Time for variant memory devices
PMODE Page Mode Control
If target device supports page mode operations, the Page Mode Control can be enabled. Read in Page Mode is
determined by set of parameters: PRLT and PSIZE.
0 disable page mode operation
1 enable page mode operation
BMODE Burst Mode Control
If target device supports burst mode operations, the Burst Mode Control can be enabled. Read in Burst Mode is
determined by set of parameters: PRLT and PSIZE.
0 disable burst mode operation
1 enable burst mode operation
PRLT Read Latency Within the Same Page or in Burst Mode Operation
Since page/burst mode operation only help to eliminate read latency in subsequent burst within the same page, it
doesnot matter what the initial latency isat all. Thus, it should still adopt RLT parameter for initial read or read
between different pages even ifPMODE or BMODE is set “1”.
000 zero wait state
001 one wait state
010 two wait state
011 three wait state
100 four wait state
75/418 MediaTek Inc. Confidential
刪除
Page 76
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
WST+2
C2WS
C2WH
: behave
:
Since
the
刪除: might
刪除: s
101 five wait state
110 six wait state
111 seven wait state
PSIZE Page/Burst Size for Page/Burst Mode Operation These bit positions describe the page/burst size that the Page/Burst Mode enabled device will use.
000 8 byte, EA[22:3] remains the same
001 16 byte, EA[22:4] remains the same
010 32 byte, EA[22:5] remains the same
011 64 byte, EA[22:6] remains the same
100~110 reserved for future use
111 continuous sequential burst
WST Write Wait State Specifying the parameters to extend adequate setup and hold time for target component in write operation. Those
parameters also effectively insert wait-states in bus transfer to requesting agent. Example is shown in Figure 17
and Table 16.
ECLK
EA
ECSn#
刪除
EWR#
ED
EADV
Figure 17 Write Wait State Timing Diagram
Write Pulse Width
(Write Data Setup Time)
Write Wait State in 52 MHz unit
65 ns ~ 70 ns 3
85 ns ~ 90 ns 4
110 ns ~ 120 ns 5
Table 16 Reference value of Write Wait State for variant memory devices
RBLN Read Byte Lane Enable
0 all byte lanes held high during system reads
1 all byte lanes held low during system reads
DW Data Width
Since the data width of internal system bus is fixed as 32-bit wide, any access to external components maybe
converted into more than one cycle, depending on transfer size and the parameter DW for the specific component.
In general, this bit position of certain component is cleared to ‘0’ upon system reset and is programmed during the
76/418 MediaTek Inc. Confidential
刪除
Page 77
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
: a
刪除: of
刪除: ing
刪除: (
MB0
)刪除: 10刪除: (MB1
)
system initialization process prior to begin ning access to it. Note that, dynamically changing this parameter will
cause unexpected result.
0 16- bit device
1 8-bit device
C2WS Chip Select to Write Strobe Setup Time
C2WH Chip Select to Write Strobe Hold Time
C2RS Chip Select to Read Strobe Setup Time
ADV Address valid signal for burst mode flash memory
0 ADV is 1T signal for flash memory address latch
1 Keep ADV low during flash memory write access
EMI+0040h EMI Re-map Control Register EMI_REMAP
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name RM1 RM0
Type R/W R/W
Reset
IBOO
T
0
This register accomplishes the Memory Re-mapping Mechanism. Basically, it provides the kernel software program or
system designer thecapability to change memory configuration dynamically. Three kinds of configuration are permitted.
RM[1:0]Re-mapping control for Boot Code, BANK0 and BANK1, refer to Table 17.
This register is the general control that can alter the behavior of all bank controllers according to specific features below.
PRCEN Enable Dummy Cycle Insertion for Pseudo SRAM Write Protection
0 Disable
1 Enable
BURS
T
EDA
FLUS
H
PDNE CKE CKDLY
刪除
77/418 MediaTek Inc. Confidential
Page 78
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
DCAC
: While
刪除: 刪除: could
刪除: n刪除: ould刪除: while
刪除: s
taffs
刪除: . T刪除: On the other hand, i
: the
刪除: could
刪除:
then enhance
PRCCNT Pseudo SRAM Dummy Cycle Insertion Count. This field defines the maximum number of continuous write
operations is allowed for this Pseudo SRAM device. Once the number is reached, a dummy cycle will be inserted
to this interface.
BANK Inter-Bank Turnaround Cycle Insertion
0 Disable
1 Enable
BURST Dummy Cycle Insertion Control between Two Burst Accesses
0 Disable
1 Enable
EDA ED[15:0] Activity
0 Drive ED Bus only on write access
1 Always drive ED Bus except for read access
FLUSH Instruction Cache Write Flush Control
PDNE Pseudo SRAM Power Down Mode Control
CKE Burst Mode Flash Clock Enable Control
CKDLY Burst Mode Flash Clock Delay Control
CKSR Pin ECLK Through Rate Control
CKEn Pin ECLK Driving Strength Control
CSSR Pin ECS# Through Rate Control
CSE nPin ECS# Driving Strength Control
EASR Pin EA[25:0] Through Rate Control
EAEn Pin EA[25:0] Driving Strength Control
EDSR Pin ED[15:0], EWR#, ERD#, ELB# and EUB# Through Rate Control
EDEnPin ED[15:0], EWR#, ERD#, ELB# and EUB# Driving Strength Control
EMI+0050h Code Cache and Code Prefetch Control Register
This register is used to control the functions of Code/Data Cache and Code/Data Prefetch. The Code/Data Cache is a low
latency memory that can store up to 16 most recently used instruction codes/data. Whenan instruction/dat a fetch hits the
one in the code/data cache, not only can the access time be minimized, but also the signaling to off chip ROM or Flash can
be relieved. In addition, it can also store up to 16 prefetched instruction codes/data when theCo de/Data Prefetch function is
enabled. The Code/Data Prefetch is a sophisticated controller that can predict and fetch the instruction codes/data in
advance based on previous code/data fetching sequence. As the Code/Data Prefetch always performs the fetch during the
period that the EMI interface is in IDLE state, the bandwidth to off chip memory could be fully utilized. If the
instruction/data fetch hits one of the prefetched codes/data, the access time can be minimized and the overall system
performance can be enhanced.
78/418 MediaTek Inc. Confidential
刪除
刪除
Page 79
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
xWRP8 Prefetch Size
0 8 bytes
1 16 bytes
xBn Prefetchable/Cacheable Area
There bit positions determine the prefetchable and cacheable banks in which the instruction/data could be cached
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
:
Name
Type R/W
PDAT1
PDAT1 Patch 1 Instruction
刪除
80/418 MediaTek Inc. Confidential
Page 81
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
CLK
_
_CON
: s刪除: and t刪除: low
刪除: Care should be taken
: be
4 Microcontroller Peripherals
Microcontroller (MCU) Peripherals are devices that are under direct control of the Microcontroller. Most of them are
attached to the Advanced Peripheral Bus (APB) of the MCU subsystem, and serve as APB slaves. Each MCU peripheral
has to be accessed as a memory-mapped I/O device ; that is, the MCU or the DMA bus master read from or write to specific
peripheral by issuing memory-addressed transactions.
4.1 Pulse -Width Modulation Outputs
4.1.1 General Description
Two generic pulse-width modulator s are implemented to generate pulse sequences with programmable frequency and duty
cycle for LCD backlight or charging purpose. The duration of the PWM output signal is Low as long as the internal counter
value is greater than or equal to the threshold value. The waveform is shown in Figure 18.
Internal counter
Threshold
格式化: 項目符號及編號
刪除
PWM Signal
Figure 18 PWM waveform
The frequency and volume of PWM output signal are determined by these registers: PWM_COUNT, PWM_THRES,
PWM_CON. POWERDOWN (pdn_pwm) signal is applied to power- down the PWM module. When PWM is deactivated
(POWERDOWN=1), the output will bein Low state.
The output PWM frequency is determined
by:
COUNTPWMCONPWM
The output PWM duty cycle is determined by:
Note that PWM_THRES should be less than the PWM_COUNT. If t his condition is not satisfied, the output pulse of the
PWM will always be in High state.
)1_(2)1_(
+××+
THRESPWM
1_
+COUNTPWM
whenCLKSELCLK
032000,1CLKSEL when 13000000CLK
====
4.1.2 Register Definitions
PWM+0000h PWM1 Control register PWM1
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name
Type R/W R/W
Reset 0 0
CLK Select PWM1 clock prescaler scale
81/418 MediaTek Inc. Confidential
CLKSE
L
CLK [1:0]
刪除
格式化: 項目符號及編號
Page 82
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
_CON
: e
00 CLK Hz
01 CLK/2 Hz
10 CLK/4 Hz
11 CLK/8 Hz
Note: When PWM1 module is disabled, its output should be kept in LOW state.
CLKSEL Select PWM1 clock
0 CLK=13M Hz
1 CLK=32K Hz
PWM+0004h PWM1 max counter value register PWM1_COUNT
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name PWM 1_COUNT [12:0]
Type R/W
Reset 1FFFh
PWM1_COUNT PWM 1 max counter value. It will be the initial value for the internal counter. If PWM1_COUNT is
written when the internal counter is counting backwards, no matter which mode it is, there is no effect
until the internal counter counts down to zero, i.e. a complete period.
PWM+0008h PWM1 Threshold Value register PWM1_THRES
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name PWM 1_THRES [12:0]
Type R/W
Reset 0
刪除
PWM1_THRES Threshold value. When the internal counter value is greater than or equals to PWM1_THRES, the PWM 1
output signal will be “0”; when the internal counter is less than PWM1_THRES, the PWM 1 output signal
will be “1”.
PWM+000Ch PWM2 Control register PWM2
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name
Type R/W R/W
Reset 0 0
CLK Select PWM2 clock prescaler scale
00 CLK Hz
02 CLK/2 Hz
10 CLK/4 Hz
11 CLK/8 Hz
Note: When PWM2 module is disabled, its output should be keep in LOW state.
CLKSEL Select PWM2 clock
0 CLK=13M Hz
1 CLK=32K Hz
CLKSE
L
CLK [1:0]
PWM+0010h PWM2 max counter value register PWM2_COUNT
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
82/418 MediaTek Inc. Confidential
Page 83
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
: the
刪除: embedded
:
: is
刪除: or
刪除:
by turns
: ,刪除: i.e.
刪除: when no matter
: w
hat value the
刪除:
is
Name PWM 2_COUNT [12:0]
Type R/W
Reset 1FFFh
PWM2_COUNT PWM 2 max counter value. It will be the initial value for the internal counter. If PWM2_COUNT is
written when the internal counter is counting backwards, no matter which mode it is, there is no effect
until the internal counter counts down to zero, i.e. a complete period.
PWM+0014h PWM2 Threshold Value register PWM2_THRES
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name PWM 2_THRES [12:0]
Type R/W
Reset 0
PWM2_THRES Threshold value. When the internal counter value is greater than or equals to PWM2_THRES, the PWM 1
output signal will be “0”; when the internal counter is less than PWM2_THRE S, the PWM2 output signal
will be “1”.
Figure 19 shows the PWM waveform with register value present.
13MHz
PWM_COUNT = 5
PWM_THRES = 1
PWM_CON = 0b
Figure 19 PWM waveform with register value present
格式化: 項目符號及編號
4.2 Alerter
4.2.1 General Description
The output of the Alerter has two sources: one is the enhanced pwm output signal, which is implemented inside the Alerter
module; the other is the PDM signal that comesfrom theDSP domain directly. The output source can be selected via the
register ALERT_CON.
The en hanced pwm hasthree operation modes andis implemented to generate a signal with programmable frequency and
tone volume. The frequency and volume are determined by four registers: ALERTER_CNT1, ALERTER_THRES,
ALERTER_CNT2 and ALERTER_CON. ALERTER_CNT1 and ALERTER_CNT2 are the initial counting values of
internal counter1 and internal counter2, respectively. POWERDOWN signal is applied to power -down the Alerter module.
When Alerter is deactivated (POWERDOWN=1), the output will be in low state.The waveform of the alerter from
enhanced pwm source in different modes can be shown in Figure 20. In mode 1, the polarity of alerter output signal
according to the relationship between internal counter1 and the programmed threshold will be inverted each time internal
counter2 reaches zero. In mode2, each time the internal counter2 count backwards to zero the alerter output signal toggles
between the normal pwm signal (i.e. signal is low as long as the internal counter1 value is greater than or equals to
ALERTER_THRES, and it is high when the internal counter1 is less than ALERTER_THRES) andlow state. In mode3, the
value of internal counter2 has no effect on output signal. That is, the alerter output signal is low as long as the internal
counter1 value is above the programmed threshold, and is high when the internal counter1 is less than ALERTER_THRES,
regardless of internal counter2’s value .
83/418 MediaTek Inc. Confidential
刪除
刪除: with
刪除
With ALERTER_CON, the
output source can be chosen
from enhanced pwm or PDM.
刪除
刪除
刪除
Page 84
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
Figure 20 Alerter waveform
The output signal frequency is determined by:
13000000
13000000
×+
f
)12_()11_()1]0:1[_(2
+×+×+×
CNTALERTERCNTALERTERCONALERTER
CONALERTERCNTALERTER
])0:1[_()11_(
f
2 mode and 1 modeor
3 modeor
The volume of the output signal is determined by:
11_
+CNTALERTER
4.2.2 Register Defin itions
ALTER+0000h Alerter counter1 value register
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name
Type R/W
Reset
ALERTER_CNT1 [15:0]
FFFFh
ALERTER_CNT1 Alerter max counter’s value. ALERTER_CNT1 is the initial value of internal counter1. If
ALERTER_CNT1 is written when the internal counter1 is counting backwards, no matter which mode it is, there
is no effect until the internal counter1 counts down to zero, i.e. a complete period.
ALTER+0004h Alerter threshold value register
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name
84/418 MediaTek Inc. Confidential
ALERTER_THRES [15:0]
ALERTER_CNT
ALERTER_THR
ES
格式化: 項目符號及編號
1
value. ALERTER_CNT1 is
the initial value of internal
counter1. If
ALERTER_CNT1
Page 85
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
: be
刪除: anytime
: 刪除: ’刪除: ’
Type R/W
Reset
0
ALERTER_THRES Threshold value. When the internal counter1 value is greater than or equals to ALERTER_THRES,
the Alerter output signal will be low state; when the counter1 is less than ALERTER_THRES, the Alerter
output signal will be high state.
ALTER+0008h Alerter counter2 value register
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name ALERTER_CNT2 [ 5:0]
Type R/W
Reset 111111b
ALERTER_CNT
AlERTER_CNT2 ALERTER_CNT2 is the initial value for internal counter2. The internal counter2 decreases by one
everytime the internal counter1 count down to zero. The polarity of alerter output signal which depends on the
relationship between the internal counter1 and ALERTER_THRES will be inverted every time when the internal
counter2 count s down to zero. E.g. in the beginning, the output signal is low when the internal counter1 isnot less
than ALERTER_THRES and is high when the internal counter1 is less than ALERTER_THRES. But after the
internal counter2 counts down to zero, the output signal will be high when the internal counter1 isnot less than
ALERTER_THRES and will be low when the internal counter1 is less than ALERTER_THRES.
ALTER+000Ch Alerter control register ALERTER_CON
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name TYPE MODE CLK [1:0]
Type R/W R/W R/W
Reset 0 0 0
CLK Select PWM Waveform clock
00 13M Hz
01 13/2M Hz
10 13/4M Hz
11 13/8M Hz
MODE Select Alerter mode
00 Mode 1 selected
01 Mode 2 selected
10 Mode 3 selected
TYPE Select the ALERTER output source from PWM or PDM
0 Output generated from PWM path
1 Output generated from PDM path
Note: When alerter module is power down, its output should be kept in low state.
2
刪除
刪除
Figure 21 shows the Alerter waveform with register value present.
85/418 MediaTek Inc. Confidential
Page 86
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
: The
13MHz
ALERTER_CNT1 = 5
ALERTER_CNT2 = 1
ALERTER_THRESH = 1
ALERTER_CON =00000b
ALERTER_CNT1 = 5
ALERTER_CNT2 = 1
ALERTER_THRESH = 1
ALERTER_CON = 00100b
ALERTER_CNT1 = 5
ALERTER_CNT2 = 1
ALERTER_THRESH = 1
ALERTER_CON = 01000b
Figure 21 Alerter output signal from enhanced pwm with register value present
4.3 SIM Interface
The MT6219 contains a dedicated smart card interface to allow the MCU access to the SIM card. It can operate via 5
terminals, using SIMVCC, SIMSEL, SIMRST, SIMCLK and SIMDATA.
格式化: 項目符號及編號
Figure 22 SIM Interface Block Diagram
The SIMVCC is used to control the external voltage supply to the SIM card and SIMSEL determines the regulated smart
card supply voltage. SIMRST is used as the SIM card reset signal. SIMDATA and SIMCLK are used for data exchange
purpose.
The SIM interface acts as a half duplex asynchronous communication port and its data format is composed of ten
consecutive bits: a start bit in state L ow, eight information bits, and a tenth bit used for parity checking. The data format can
be divided into two modes as follows:
Direct Mode (ODD=SDIR=SINV=0)
SB D0 D1 D2 D3 D4 D5 D6 D7 PB
SB: Start Bit (in state Low)
Dx: Data Byte (LSB is first and logic level ONE is High)
PB: Even Parity Check Bit
86/418 MediaTek Inc. Confidential
刪除
Page 87
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
: totally
刪除: whether
刪除: s刪除: else
Indirect Mode (ODD=SDIR=SINV=1)
SB N7 N6 N5 N4 N3 N2 N1 N0 PB
SB: Start Bit (in state Low)
Nx: Data Byte (MSB is first and logic level ONE is Low)
PB: Odd Parity Check Bit
If the receiver gets a wrong parity bit, it will respond by pulling the SIMDATA Low to inform the transmitter and the
transmitter will retransmit the character.
When the receiver is a SIM Card, the error response starts 0.5 bits after the PB and it may last for 1~2 bit periods.
When the receiver is the SIM interface, the error response starts 0.5 bits after the PB and lasts for 1.5 bit period.
When the SIM interface is the transmitter, it will take a total of 14 bits guard period for the error response to appear . If the
receiver shows the error response, the SIM interface will retransmit the previous character again,otherwise it will transmit
the next character.
刪除
Figure 23 SIM Interface Timing Diagram
4.3.1 Register Definitions
SIM+0000h SIM module control register SIM_CON
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name WRST
Type W R/W R/W
Reset 0 0 0
87/418 MediaTek Inc. Confidential
CSTO
P
SIMO
N
格式化: 項目符號及編號
Page 88
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
SIMON SIM card power -up/power-down control
0 Initiate the card deactivation sequence
1 Initiate the card activation sequence
CSTOP Enable clock stop mode. Together with CPOL in SIM_CNF register, it determines the polarity of the SIMCLK in
this mode.
0 Enable the SIMCLK output.
1 Disable the SIMCLK output
WRST SIM card warm reset control
TXTIDE Transmit FIFO tide mark reached interrupt occurred
RXTIDE Receive FIFO tide mark reached interrupt occurred
OVRUN Transmit/Receive FIFO overrun interrupt occurred
TOUT Between character timeout interrupt occurred
TXERR Character transmission error interrupt occurred
ATRERR ATR start time-out interrupt occurred
SIMOFF Card deactivation complete interrupt occurred
T0END Data Transfer handled by T=0 Controller completed interrupt occurred
RXERR Character reception error interrupt occurred
T1END Data Transfer handled by T=1 Controller completed interrupt occurred
EDCERR T=1 Controller CRC error occurred
EDCE
T1END RXERR T0END SIMO
RR
ATRERR TXERR TOUT OVRUN RXTID
FF
E
TXTID
E
SIM +0020h SIM retry limit register SIM_RETRY
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
89/418 MediaTek Inc. Confidential
刪除
刪除
刪除
Page 90
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
Name TXRETRY RXRETRY
Type R/W R/W
Reset 3h 3h
RXRETRY Specify the max. numbers of receive retries that are allowed when parity error has occurred.
TXRETRY Specify the max. numbers of transmit retries that are allowed when parity error has occurred.
SIM +0024h SIM FIFO tide mark register SIM_TIDE
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name TXTIDE[3:0] RXTIDE[3:0]
Type R/W R/W
Reset 0h 0h
RXTIDE Trigger point for RXTIDE interrupt
TXTIDE Trigger point for TXTIDE interrupt
SIM +0030h Data register used as Tx/Rx Data Register SIM_DATA
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name DATA[7:0]
Type R/W
Reset —
DATA Eight data digits. These correspond to the character being read or written
SIM +0034h SIM FIFO count register SIM_COUNT
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name COUNT[4:0]
Type R/W
Reset 0h
COUNT The number of characters in the SIM FIFO when read, and flushes when written.
SIM +0040h SIM activation time register SIM_ATIME
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name
Type R/W
Reset
ATIME[15:0]
AFC7h
ATIME The register defines the duration, in SIM clock cycles, of the time taken for each of the three stages of the card
activation process
SIM +0044h SIM deactivation time register SIM_DTIME
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name DTIME[11:0]
Type R/W
Reset 3E7h
DTIME The register defines the duration, in 13MHz clock cycles, of the time taken for each of the three stages of the
card deactivation sequence
SIM +0048h Character to character waiting time register SIM_WTIME
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
90/418 MediaTek Inc. Confidential
Page 91
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
Name
Type R/W
Reset
WTIME[15:0]
983h
WTIME Maximum interval between the leading edge of two consecutive characters in 4 ETU unit
SIM +004Ch Block to block guard time register SIM_GTIME
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name GTIME
Type R/W
Reset 10d
GTIME Minimum interval between the leading edge of two consecutive characters sent in opposite directions in ETU unit
SIM +0060h SIM command header register: INS SIM_INS
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name INSD SIMINS[7:0]
Type R/W R/W
Reset 0h 0h
SIMINS This field should be identical to the INS instruction code. When writing to this register, the T=0 controller will be
activated and data transfer will be initiated.
INSD [Description for this register field]
0 T=0 controller receives data from the SIM card
1 T=0 controller sends data to the SIM card
SIM +0064h SIM comm and header register: P3
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name SIMP3[8:0]
Type R/W
Reset 0h
SIM_P3(ICC_LE
N)
SIMP3 This field should be identical to the P3 instruction code. It should be written prior to t he SIM_INS register. While
the data transfer is going on, this field shows the no. of the remaining data to be sent or to be received
SIM +0068h SIM procedure byte register: SW1
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name SIMSW1[7:0]
Type RO
Reset 0h
SIM_SW1(ICC_L
EN)
SIMSW1 This field holds the last received procedure byte for debug purpose. When the T0END interrupt occurred, it
keeps the SW1 procedure byte.
SIM +006Ch SIM procedure byte register: SW2
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name SIMSW2[7:0]
Type RO
91/418 MediaTek Inc. Confidential
SIM_SW 2(ICC_E
DC)
Page 92
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
: both
刪除: H/W刪除: that
刪除: is not刪除: S/W刪除: H/W
Reset 0h
SIMSW2 This field holds the SW2 procedure byte
4.3.2 SIM Card Insertion and Removal
The detection of physical connection to the SIM card and card removal is done by the external interrupt controller or by
GPIO.
4.3.3 Card Activation and Deactivation
The card activation and deactivation sequence are bothcontrolled by hardware. The MCU initiates the activation sequence
by writing a “1” to bit 0 of the SIM_CON register, and then the interface performs the following activation sequence:
l Assert SIMRST LOW
l Set SIMVCC at HIGH level and SIMDATA in reception mode
l Enable SIMCLK clock
l De-assert SIMRST HIGH (required if it belongs to active low reset SIM card)
The final step in a typical card session is contact deactivation in order to preventthe card from being electrically damaged.
The deactivation sequence is initiated by writing a “0” to bit 0 of the SIM_CON register, and then the interface performs
the following deactivation sequence:
l Assert SIMRST LOW
l Set SCIMCLK at LOW level
l Set SIMDATA at LOW level
l Set SIMVCC at LOW level
4.3.4 Answer to Reset Sequence
格式化: 項目符號及編號
格式化: 項目符號及編號
刪除
格式化: 項目符號及編號
After card activation, a reset operation results in an answer from the card co nsisting of the initial character TS, followed by
at most 32 characters. The initial character TS provides a bit synchronization sequence and defines the conventions to
interpret data bytes in all subsequent characters.
On reception of the first character, TS, MCU should read this character, establish the respective required convention and
reprogram the related registers. These processes should be completed prior to the completion of reception of the next
character. And then, the remainder of the ATR sequence is received, read via the SIM_DATA in the selected convention and
interpreted by the software.
The timing requirement and procedures for ATR sequence are handled by hardware and shall meet the requirement of ISO
7816- 3 as shown in Figure 24.
92/418 MediaTek Inc. Confidential
Page 93
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
: byte by byte
: could
刪除: at
刪除: etu
刪除: etus
Figure 24 Answer to Reset Sequence
Time Value Comment
T1 > 400 SIMCLK SIMCLK start to ATR appear
T2 < 200 SIMCLK SIMCLK start to SIMDATA in reception mode
T3 > 40000 SIMCLK SIMCLK start to SIMRST High
T4 — SIMVCC High to SIMCLK start
T5 — SIMRST Low to SIMCLK stop
T6 — SIMCLK stop to SIMDATA Low
T7 — SIMDATA Low to SIMVCC Low
Table 18 Answer to Reset Sequence Time-Out Condition
4.3.5 SIM Data Transfer
Two transfer modes are provided, either in software controlled byte-by-byte fashion or in a block fashion using T=0
controller and DMA controller. In both modes, the time-out counter can be enabled to monitor the elapsed time between
two consecutive bytes.
4.3.5.1 Byte Transfer Mode
This mode is used during ATR and PPS procedure. In this mode, the SIM interface only ensures error free character
transmission and reception.
Receiving Character
Upon detection of the start -bit sent by SIM card, the interface transforms into reception mode and the following bits are
shifted into an internal register. If no parity error is detected or character -receive handshaking is disabled, the
received- character is written into the SIM FIFO and the SIM_CNT register is increased by one. Otherwise, the SIMDATA
line is held low for0.5 ETU after detecting the parity error for 1.5 ETU, and the character is re-received. If a character fails
to be received correctly for the RXRETRY times, the receive -handshaking is aborted and the last -received character is
written into the SIM FIFO, the SIM_CNT is increased by one and the RXERR interrupt is generated
When the number of characters held in the receive FIFO exceeds the level defined in the SIM_TIDE register, a RXTIDE
interrupt is generated. The num ber of characters held in the SIM FIFO can be determined by reading the SIM_CNT register
and writing to this register will flush the SIM FIFO.
93/418 MediaTek Inc. Confidential
格式化: 項目符號及編號
刪除
刪除
格式化: 項目符號及編號
Page 94
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
: etu
刪除: ,
刪除: like
Sending Character
Characters that are to be sent to the card are first written into the SIM FIFO and then automat ically transmitted to the card
at timed intervals. If character -transmit handshaking is enabled, the SIMDATA line is sampled at 1 ETU after the parity bit.
If the card indicates that it did not receive the character correctly, the character is retransm itted a maximum of TXRETRY
times before a TXERR interrupt is generated and the transmission is aborted. Otherwise, the succeeding byte in the SIM
FIFO is transmitted.
If a character fails to be transmitted and a TXERR interrupt is generated, the interface needs to be reset by flushing the SIM
FIFO before any subsequent transmit or receive operation.
When the number of characters held in the SIM FIFO falls below the level defined in the SIM_TIDE register, a TXTIDE
interrupt is generated. The number of characters held in the SIM FIFO can be determined by reading the SIM_CNT register
and writing to this register will flush the SIM FIFO.
4.3.5.2 Block Transfer Mode
Basically, the SIM interface is designed to work in conjunction with the T=0 protocol controller and the DMA controller
during non -ATR and non-PPS phase; although it is still possible for software to service the data transfer manually asin byte
transfer mode if necessary , and thus the T=0 protocol should be controlled by software.
The T=0 controller is accessed via four registers representing the instruction header bytes INS and P3, and the procedure
bytes SW1 and SW2. These registers are:
SIM_INS, SIM_P3
SIM_SW1, SIM_SW2
During characters transfer, SIM_P3 holds the number of characters to be sent or to be received and SIM_SW1 holds the last
received procedure byte including NULL, ACK, NACK and SW1 for debug purpose.
刪除
格式化: 項目符號及編號
Data Receive Instruction
Data Receive Instructions receive data from the SIM card. It is instantiated as the following procedure.
1. Enable the T=0 protocol controller by setting the T0EN bit to 1 in SIM_CNF register
2. Program the SIM_TIDE register to 0x0000 (TXTIDE = 0, RXTIDE = 0)
3. Program the SIM_IRQEN to 0x019C (Enable RXERR, TXERR, T0END, TOUT and OVRUN interrupts)
4. Write CLA, INS, P1, P2 and P 3 into SIM FIFO
5. Program the DMA controller :
DMAn_MSBSRC and DMAn_LSBSRC : address of SIM_DATA register
DMAn_MSBDST and DMAn_LSBDST : memory address reserved to store the received characters
DMAn_COUNT : identical to P3 or 256 (if P3 == 0)
DMAn_CON : 0x007 8
6. Write P3 into SIM_P3 register and then INS into SIM_INS register (Data Transfer is initiated
now)
7. Enable the Time-out counter by setting the TOUT bit to 1 in SIM_CNF register
8. Start the DMA controller by writing 0x8000 into the DMAn_START register to
Upon completion of the Data Receive Instruction, T0END interrupt will be generated and then the Time -out counter should
be disabled by setting the TOUT bit back to 0 in SIM_CNF register.
If error occurs during data transfer (RXERR, TXERR, OVRUN or TOUT interr upt is generated), the SIM card should be
deactivated first and then activated prior subsequent operations.
94/418 MediaTek Inc. Confidential
Page 95
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
: key
刪除: ’刪除: won’t刪除: won’t刪除: s
刪除: se刪除: one
刪除: there will
get a
: e.g.刪除: there are
刪除: s刪除: ,
刪除: but key4 is a redundant
: Without
刪除: the spec
ific pattern
Data Send Instruction
Data Send Instructions send data to the SIM card. It is instantiated as the following procedure.
1. Enable the T=0 protocol controller by setting the T0EN bit to 1 in SIM_CNF register
2. Program the SIM_TIDE register to 0x0100 (TXTIDE = 1, RXTIDE = 0)
3. Program the SIM_IRQEN to 0x019C (Enable RXERR, TXERR, T0END, TOUT and OVRUN interrupts)
4. Write CLA, INS, P1, P2 and P3 into SIM FIFO
5. Program the DMA controller :
DMAn_MSBSRC and DMAn_LSBSRC : memory address reserved to store the transmitted characters
DMAn_MSBDST and DMAn_LSBDST : address of SIM_DATA register
DMAn_COUNT : identical to P3
DMAn_CON : 0x0074
6. Write P3 into SIM_P3 register and then (0x0100 | INS) into SIM_INS register (Data Transfer
is initiated now)
7. Enable the Time-out counter by setting the TOUT bit to 1 in SIM_CNF register
8. Start the DMA controller by writing 0x8000 into the DMAn_START register
Upon completion of the Data Send Instruction, T0END interrupt will be generated and then the Time -out counter should be
disabled by setting the TOUT bit back to 0 in SIM_CNF register.
If error occurs during data transfer (RXERR, TXERR, OVRUN or TOUT interrupt is generated), the SIM card should be
deactivated first and then activated prior tosubsequent operations.
4.4 Keypad Scanner
格式化: 項目符號及編號
4.4.1 General Description
The keypad can be divided into two parts: one is the keypad interface including 7 columns and 6 rows; the other is the key
detection block which provides key pressed, key released and de -bounce mechanism. Each time the key is pressed or
released, i.e. something different in the 7 x 6 matrix, the key detection block will sense it, and it will start to recognize if it
is a key pressed or key released event. Whenever the key status changes and is stable, a KEYPAD IRQ will be issued. The
MCU can then read the key(s) pressed directly in KP_HI_KEY, KP_MID_KEY and KP_LOW_KEY registers. To ensure
that the key pressed information will not be missed, the status register in keypad will not be read clear by APB bus read
command. The status register canonly bechangedby the key-pressed detection FSM. This keypad can detect one or two
key-pressed simultaneously with any combination. Figure 25 shows one key pressed condition. Figure 26(a) and Figure 26(b) indicate two keys pressed cases. Since the key press detection depends on the high or low level of the external keypad
interface, if keys are pressed at the same time and there exists a key that is on the same column and the same row with the
other keys, it will not be able to decode the correct key pressed. For example, if there are three key presses: key1 = (x1, y1),
key2 = (x2, y2), andkey3 = (x1, y2), then both key3 and key4 = (x2, y1) will be detected, and therefore it will not possible
to distinguish correctly. Hence, the keypad can detect only one or two keys pressed simultaneously at any combination. Due
to the keypad interface, more than two keys pressed simultaneously with some specific pattern will get the wrong
information. If these specific pattern s are excluded, the keypad- scanning block can detect 11 keys at the same time and it’s
shown as Figure 27.
95/418 MediaTek Inc. Confidential
刪除
redundant key
刪除: ;
刪除
one.
刪除
Page 96
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
: won’t
Key Pressed
Key-pressed Status
KP_IRQ
De-bounce time
KEY_PRESS_IRQKEY_RELEASE_IRQ
Figure 25 One key pressed with de- bounce mechanism denoted
Key1 pressed
Key1 pressed
Key2 pressed
Key2 pressed
Status
Status
IRQ
IRQ
Key1 pressed
Key1 pressed
Key2 pressed
Key2 pressed
Status
Status
IRQ
IRQ
Key1 pressedKey2 pressedKey1 releasedKey2 released
Key1 pressedKey2 pressedKey1 releasedKey2 released
( a)
( a)
Key1 pressedKey2 pressedKey2 releasedKey1 released
Key1 pressedKey2 pressedKey2 releasedKey1 released
( b)
( b)
Figure 26 (a) Two keys pressed, case 1 (b) Two keys pressed, case 2
COL4COL3COL2COL1 COL0
COL5
COL6
ROW5
ROW4
ROW3
ROW2
ROW1
ROW0
1
1
1
1
1
0
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
000010
Figure 27 11 keys are detected at the same time
4.4.2 Register Definitions
De-bounce time
1
1
0
1
1
0
1
1
0
1
1
0
1
1
0
格式化: 項目符號及編號
KP +0000h Keypad status KP_STA
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name STA
Type RO
Reset 0
STA This register indicates the keypad status, and it will not be cleared by read.
0 No key pressed
96/418 MediaTek Inc. Confidential
刪除
Page 97
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
KP_LOW_KEY
: T
hese
1 Key pressed
KP +0004h Keypad scanning output, the lower 16 keys
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name
Type RO
Reset
KEYS [15:0]
FFFFh
KP +0008h Keypad scanning output, the medium 16 keys KP_MID_KEY
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name
Type RO
Reset
KEYS [31:16]
FFFFh
KP+000Ch Keypad scanning output, the higher 4 keys KP_HIGH_KEY
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name KEYS[41:32]
Type RO
Reset 3FF’h
These two registers list the status of 42 keys on the keypad. When the MCU receives the KEYPAD IRQ, both two registers
must be read. If any key is pressed, the relative bit will be set to 0.
KEYS Status list of the 42 keys.
KP +00010h De-bounce period setting KP_DEBOUNCE
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name DEBOUN CE [13:0]
Type R/W
Reset 400h
This register defines the waiting period before key press or release events are considering stale.
DEBOUNCE De-bounce time = KP_DEBOUNCE/32 ms.
4.5 General Purpose Inputs/Outputs
MT-6219 offers 55 general-purpose I/O pins and 5 general-purpose output pins. By setting the control registers, MCU
software can control the direction, the output value , and read the input values on these pins. These GPIOs and GPOs are
multiplexed with other functionalities t o reduce the pin count.
97/418 MediaTek Inc. Confidential
格式化: 項目符號及編號
刪除
Page 98
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
: uses
刪除: made刪除: at
Figure 28 GPIO Block Diagram
GPIOs at RESET
Upon hardware reset (SYSRST#), GPIOs are all configured as inputs and the following alternativeusages of GPIO pins are
enabled:
These GPIOs are used to latch the inputs uponreset to memorize the desiredconfiguration to make sure that the system
restarts or boots in the right mode.
Multiplexing of Signals on GPIO
The GPIO pins can be multiplexed with other signals.
l DAICLK, DAIPCMIN, DAIPCMOUT, DAIRST: digital audio interface for FTA
l BPI_BUS6, BPI_BUS7, BPI_BUS8, BPI_BUS9: radio hard-wire control
刪除: Upon
刪除
刪除: wanted
l BSI_CS1: additional chip select signal for radio 3-wire interface
l LSCK, LSA0, LSDA, LSCE0#, LSCE1#: serial display interface
l LPCE1#: parallel disp lay interface chip select signal
l NRNB, NCLE, NALE, NWEB, NREB, NCEB: nand-flash control signals
l PWM1, PWM2: pulse width modulation signal
l ALERTER: pulse width modulation signal for buzzer
l IRDA_RXD, IRDA_TXD, IRDA_PDN: IrDA control signals
l URXD2, UTXD2, UCT S2, URTS2: data and flow control signals for UART2
l URXD3, UTXD3, UCTS3, URTS3: data and flow control signals for UART3
l CMRST, CMPDN, CMDAT1, CMDAT0: cmos sensor interface
l SRCLKENAI: external power on signal of the external VCXO LDO
Multiplexed of Signals on GPO
l SRCLKENA, SRCLKENAN: power on signal of the external VCXO LDO
98/418 MediaTek Inc. Confidential
Page 99
MT6219 GSM/GPRS Baseband Processor Data Sheet Revision 1.01
GPIO1
GPIO1
GPIO1
GPIO2
GPIO3
GPIO2
GPIO2
GPIO1
GPIO4
GPIO4
GPIO4
GPIO3
GPIO5
GPIO1
GPIO1
GPIO1
GPIO2
GPIO3
GPIO2
GPIO2
GPIO1
4.5.1 Register Definitions
GPIO+0000h GPIO direction control register 1 GPIO_DIR1