1. System Overview..............................................................................................................................................................6
1.1Platform Features .....................................................................................................................................................10
1.2MODEM Features .................................................................................................................................................... 11
1.3Multi-Media Features ...............................................................................................................................................12
3 Micro-Controller Unit Subsystem ................................................................................................................................31
3.13Auxiliary ADC Unit ............................................................................................................................................... 138
3.18Real Time Clock.....................................................................................................................................................171
4 Radio Interface Control..............................................................................................................................................203
4.1Baseband Serial Interface....................................................................................................................................... 203
4.3Automatic Power Control (APC) Unit ................................................................................................................... 217
4.4Automatic Frequency Control (AFC) Unit............................................................................................................. 224
5 Baseband Front End....................................................................................................................................................228
5.1Baseband Serial Ports............................................................................................................................................. 229
8 Power and Cl ocks........................................................................................................................................................276
8.1Software Power Down Control...............................................................................................................................276
Page 5
9 Analog Front-end & Analog Blocks...........................................................................................................................282
MT6223 is an entry level chipset solution with class 12
GPRS/GSM modem. It integrates only only analog
baseband but also power management blocks into one chip
and can greatly reduce the component count and make
smaller PCB size. Besides, MT6223 is capable of SAIC
(Single Antenna Interference Cancellation) and AMR
speech. Based on 32 bit ARM7EJ-S
MT6223 provides an unprecedented platform for high
quality modem performance.
Typical application diagram is shown in Figure 1.
Platform
MT6223 runs the ARM7EJ-S
TM
52Mhz, thus providing best trade-off between system
performance and power consumption.
For large amount of data transfer, high performance DMA
(Direct Memory Access) with hardware flow control is
implemented, which greatly enhances the data movement
speed while reducing MCU processing load.
Targeted as a modem-centric platform for mobile
applications, MT6223 also provides hardware security
digital rights management for copyright protection. For
further safeguarding, and to protect manufacturer’s
development investment, hardware flash content protection
is also provided to prevent unauthorized porting of software
load.
TM
RISC processor,
RISC processor at up to
and audio synthesis technology to provide superior audio
features., e.g. MP3 ring tone. For MT6223P, MP3 player is
also supported.
Connectivity, and Storage
MT6223 supports UART as well as Bluetooth interface.
Also, necessary peripheral blocks are embedded for a voice
centric phone: 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.
Furthermore, to provide more configuration and bandwidth
for display, an additional 9-bit parallel interface is
incorporated.
For MT6223P, memory card control is provided through
LCD interface, including SD and mini SD, etc. Therefore
high quality MP3 playback of 48kHz sampling with
320kbps format can be supported
Audio
Using a highly integrated mixed-signal Audio Front-End,
architecture of MT6223 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, MT6223 also provides Stereo Input and
Analog Mux. MT6223 also supports AMR codec to
adaptively optimize speech and audio quality.
Radio
Memory
MT6223 integrates a mixed-signal Baseband front-end in
order to provide a well-organized radio interface with
MT6223 supports up to 4 external state-of-the-art devices
through its 8/16-bit host interface. Devices such as
burst/page mode Flash, page mode SRAM, and Pseudo
SRAM are supported including ADMUX type devices. For
greatest compatibility, the memory interface can also be
used to connect to legacy devices such as 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
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.
MT6223 achieve 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.
adjustment. The data bus also employs retention technology
to prevent the bus from floating during turn over.
Multi-media
Debug Function
The JTAG interface enables in-circuit debugging of
software program with the ARM7EJ-S core. With this
MT6223 utilize high resolution audio DAC, digital audio,
6/344 MediaTek Inc. Confidential
Page 7
standardized debugging interface, MT6223 provides
developers with a wide set of options in choosing ARM
development kits from different third party vendors.
Low Power Features
MT6223 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, MT6223 are also fabricated in advanced low
leakage CMOS process, hence providing an overall ultra
low leakage solution.
Power Management
MT6223 integrates all regulators that a voice-centric phone
needs. Seven LDOs optimized for Specific GSM/GPRS
baseband sub-systems are included, and a RF transceiver
needed LDO is also built-in. Besides Li-Ion battery charge
function, SIM card level shifter interface, two open-drain
output switches to control the LED and vibrator are
equipped. Other power management schemes such as
thermal overload protection, Under Voltage Lock-out
Protection (UVLO), over voltage protection and oower-on
reset and start-up timer are also MT6223 features. Besides,
3 NMOS switches controlling the RGB LEDs are also
embedded to reduce BOM coount.
Package
The MT6223 device is offered in 9mm×9mm, 224-ball, 0.5
mm pitch, TFBGA package.
7/344 MediaTek Inc. Confidential
Page 8
8/344 MediaTek Inc. Confidential
Page 9
Figure 1 Typical application of MT6223.
9/344 MediaTek Inc. Confidential
Page 10
1.1 Platform Features
General
z Integrated voice-band, audio-band and base-band
analog front ends
z TFBGA 9mm×9mm, 224-ball, 0.5 mm pitch
package
MCU Subsystem
z ARM7EJ-S 32-bit RISC processor
z High performance multi-layer AMBA bus
z Java hardware acceleration for fast Java-based
games and applets
z Supports multiple key presses for gaming
z SIM/USIM Controller with hardware T=0/T=1
protocol control
z Real Time Clock (RTC) operating with a separate
power supply
z General Purpose I/Os (GPIOs)
z 2 Sets of Pulse Width Modulation (PWM) Output
z Alerter Output with Enhanced PWM or PDM
z 6 external interrupt lines
Security
z Supports security key and 59 bit chip unique ID
z Operating frequency: 26/52 MHz
z Dedicated DMA bus
z 7 DMA channels
z 320K bits on-chip SRAM
z On-chip boot ROM for Factory Flash Programming
z Watchdog timer for system crash recovery
z 3 sets of General Purpose Timer
z Circuit Switch Data coprocessor
z Division coprocessor
External Memory Interface
z Supports up to 4 external devices
z Supports 8-bit or 16-bit memory components with
maximum size of up to 32M Bytes each
z Supports Flash and SRAM/PSRAM with Page
Mode or Burst Mode
z Supports ADMUX
z Industry standard 9-bit Parallel LCD Interface
z Supports multi-media companion chips with 8/16
bits data width
z Flexible I/O voltage of 1.8V ~ 2.8V for memory
interface
z Configurable driving strength for memory interface
User Interfaces
z 5-row × 7-column keypad controller with hardware
scanner
Connectivity
z 3 UARTs with hardware flow control and speed up
to 921600 bps
z DAI/PCM and I2S interface for Audio application
z Memory card interface is provided for MT6223P.
SD and MMC cards are supported
Low Power Schemes
z Power Down Mode for analog and digital circuits
z Processor Sleep Mode
z Pause Mode of 32KHz clocking at Standby State
z 3-channel Auxiliary 10-bit A/D Converter for
application usage other than battery monitoring
Power and Supply Management
z 2.8V to 5.5V Input Range
z Charger Input up to 8V
z Seven LDOs Optimized for Specific GSM
Sub-systems
z One LDO for RF transceiver
z High Operation Efficiency and Low Stand-by
Current
z Li-Ion Battery Charge function
z SIM Card Interface
z Two Open-Drain Output Switches to Control the
LED and Vibrator
z Three NMOS switches to control RGB LEDs
10/344 MediaTek Inc. Confidential
Page 11
z Thermal Overload Protection
z Under Voltage Lock-out Protection
z Over Voltage Protection
z Power-on Reset and Start-up Timer
1.2 MODEM Features
Radio Interface and Baseband Front End
z GMSK modulator with analog I and Q channel
outputs
Test and Debug
z Built-in digital and analog loop back modes for
both Audio and Baseband Front-End
z DAI port complying with GSM Rec.11.10
z JTAG port for debugging embedded MCU
z 10-bit D/A Converter for uplink baseband I and Q
signals
z 14-bit high resolution A/D Converter for downlink
baseband I and Q signals
z Calibration mechanism of offset and gain mismatch
for baseband A/D Converter and D/A Converter
z 10-bit D/A Converter for Automatic Power Control
z 13-bit high resolution D/A Converter for Automatic
Frequency Control
z Programmable Radio RX filter with adaptive
bandwidth control
z Dedicated Rx filter for FB acquisition
z 2 Channels Baseband Serial Interface (BSI) with
3-wire control
z Bi-directional BSI interface. RF chip register read
access with 3-wire or 4-wire interface.
z 10-Pin Baseband Parallel Interface (BPI) with
programmable driving strength
z Multi-band support
Voice and Modem CODEC
z Dial tone generation
z Voice Memo
z Noise Reduction
z Echo Suppression
z Advanced Sidetone Oscillation Reduction
z Digital sidetone generator with programmable gain
z Two programmable acoustic compensation filters
z GSM/GPRS quad vocoders for adaptive multirate
(AMR), enhanced full rate (EFR), full rate (FR) and
half rate (HR)
z GSM channel coding, equalization and A5/1, A5/2
and A5/3 ciphering
z GPRS GEA1, GEA2 and GEA3 ciphering
11/344 MediaTek Inc. Confidential
Page 12
z Programmable GSM/GPRS Modem
z GSM Circuit Switch Data
z GPRS Class 12
Voice Interface and Voice Front End
z Two microphone inputs sharing one low noise
amplifier with programmable gain and automatic
gain control (AGC) mechanism
z Voice power amplifier with programmable gain
nd
z 2
order Sigma-Delta A/D Converter for voice
uplink path
z D/A Converter for voice downlink path
z Supports half-duplex hands-free operation
z Compliant with GSM 03.50
1.3 Multi-Media Features
LCD Interface
z Dedicated Parallel Interface supports 2 external
8/9 bit Parallel Interface, and Serial interface for
LCM
z For MT6223P, memory card interface is shared
with LCD interface. And the memory card control
is available for MP3 playback
LCD Controller
z Supports simultaneous connection to up to 3
parallel LCD or 2 serial LCD modules
z Supports LCM format: RGB332, RGB444,
RGB565, RGB666, RGB888
z Supports LCD module with maximum resolution
up to 176x220 at 24bpp
z 2 layer blending
z Supports hardware display rotation for each layer
Audio CODEC
z Wavetable synthesis with up to 64 tones
z Advanced wavetable synthesizer capable of
generating simulated stereo
z Wavetable including GM full set of 128
instruments and 47 sets of percussions
z PCM Playback and Record
z Digital Audio Playback
Audio Interface and Audio Front End
z Supports I2S interface
z High resolution D/A Converters for Stereo Audio
playback
z Stereo analog input for stereo audio source
z Analog multiplexer for Stereo Audio
z FM Radio Recording
z Stereo to Mono Conversion
12/344 MediaTek Inc. Confidential
Page 13
1.4 General Description
Figure 2 details the block diagram of MT6223. Based on a dual-processor architecture, MT6223 integrate both an
ARM7EJ-S core and 2 digital signal processor cores. ARM7EJ-S is the main processor that is responsible for running 2G and
2.5G protocol software. Digital signal processors handle the MODEM algorithms as well as advanced audio functions.
Except for some mixed-signal circuitries, the other building blocks in MT6223 are connected to either the microcontroller or
one of the digital signal processor.
Specifically, both MT6223 consist of the following subsystems:
z Microcontroller Unit (MCU) Subsystem - includes an ARM7EJ-S RISC processor and its accompanying memory
management and interrupt handling logics.
z Digital Signal Processor (DSP) Subsystem - includes 2 DSP cores and their accompanying memory, memory
controller, and interrupt controller.
z MCU/DSP Interface - where the MCU and the DSPs exchange hardware and software information.
z Microcontroller Peripherals - includes all user interface modules and RF control interface modules.
z Microcontroller Coprocessors - runs computing-intensive processes in place of Microcontroller.
z DSP Peripherals - hardware accelerators for GSM/GPRS/EGDE channel codec.
z Voice Front End - the data path for converting analog speech from and to digital speech.
z Audio Front End - the data path for converting stereo audio from stereo audio source
z Baseband Front End - the data path for converting digital signal from and to analog signal of RF modules.
z Timing Generator - generates the control signals related to the TDMA frame timing.
z Power, Reset and Clock subsystem - manages the power, reset, and clock distribution inside MT6223
z LDOs, Power-on sequences, swicthes and SIM level shifters.
Details of the individual subsystems and blocks are described in following Chapters.
13/344 MediaTek Inc. Confidential
Page 14
VOICE_0
VOICE_1
AUDIO_L
AUDIO_R
STEREO_L
STEREO_R
TRX_Q
6 LDOs
Power
Menagement
Charger
Switches
MIC_0
MIC_1
TRX_I
Aux
ADC
AFC
APC
ADC
ADC
DAC
DAC
BB LDOs
BB LDOs
BB LDOs
RF LDO
Charger
RGB
DACAPC
ADC
+
+
Baseband
Path
32K
OSC
Aux
ADC
ADC
DACAFC
PwrUp
Seq
DAC
DAC
DAC
RTC
Bridge
Interrupt
Controller
BPI
Audio
Path
TDMA
Timer
BSI
GPT
Patch
Unit
WDT
ARM7EJ-S
Trap
Memory
Unit
Master DSP
Boot
ROM
PWM
SIMGPIO
Share RAM
Interrupt
Controller
Coprocessors
Coprocessors
Coprocessors
MCU/DSP
Interface
MPU
SECURITY
ENGINE
Keypad
Scanner
Alerter
MT6223 : BB + PMIC SOC
Patch
DMA
UART
Unit
Trap
Unit
Interrupt
Controller
Coprocessors
Coprocessors
Coprocessors
External
Memory
Interface
Controller
Generator
Serial
LCD
Memory
On-Chip
SRAM
B2PSI
Slave DSP
Controller
LCD
Clock
Flash
SRAM
Melody
LCD
Camera BE
(MT6223P
Card I/F)
JTAG
System
Clock
13/26MHz
Serial RF
32KHz
Crystal
Parallel RF
Control
Control
User InterfaceReset
Serial Port
Connectivity
Figure 2 MT6223 block diagram.
14/344 MediaTek Inc. Confidential
Page 15
2 Product Descriptions
A
2.1 Pin Outs
One type of package for this product, TFBGA 9mm * 9mm, 224-ball, 0.5mm 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.
Figure 3 Top View of MT6223 TFBGA 9mm*9mm 0.5mm pitch package
15/344 MediaTek Inc. Confidential
Page 16
Figure 4 Outlines and Dimension of TFBGA 9mm*9mm, 224-ball, 0. 5 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
9.0 9.0 224 0.5 0.275 1.2 0.21 0.36
Table 1 Definition of TFBGA 9mm*9mm, 224-ball, 0.5 mm pitch Package (Unit: mm)
16/344 MediaTek Inc. Confidential
Page 17
2.2 Top Marking Definition
Security version (MT6223S)
S
Memory card MP3 version (MT6223P)
S
Security, Memory card MP3 version (MT6223SP)
17/344 MediaTek Inc. Confidential
Page 18
Non-security version (MT6223)
MT6223AA/AN-L
DDDD-###
LLLLL
S
MT6223AA/AN-L: Part No.
DDDD: Date Code
###:Subcontractor Code
LLLLL: Die Lot No.
S: Special Code
S
18/344 MediaTek Inc. Confidential
#
Page 19
DC Characteristics
2.2.1 Absolute Maximum Ratings
Prolonged exposure to absolute maximum ratings may reduce device reliability. Functional operation at these maximum
ratings is not implied.
Item Symbol Min Max Unit
IO power supply VDD33 -0.3 VDD33+0.3 V
I/O input voltage VDD33I -0.3 VDD33+0.3 V
Operating temperature Topr -20 80 Celsius
Storage temperature Tstg -55 125 Celsius
19/344 MediaTek Inc. Confidential
Page 20
2.3 Pin Description
Below pin description is identical for both MT6223.
BGA NAME Dir PIN DESCRIPTION Aux Func.0 Aux Func.1 Aux Func.2 Aux Func.3 PU/PD Reset
Analog Baseband Interface
F2 AU_MOUTL Audio analog output left channel
F1 AU_MOUTR Audio analog output right channel
E3 AU_FMINR FM radio analog input right channel
F3 AU_FMINL FM radio analog input left channel
G1 AU_OUT0_N Earphone 0 amplifier output (-)
G2 AU_OUT0_P Earphone 0 amplifier output (+)
G3 AU_MICBIAS_P Microphone bias supply (+)
H2 AU_MICBIAS_N Microphone bias supply (-)
H4 AU_VREF_PO Audio reference voltage (+)
H3 AU_VREF_NI Audio reference voltage (-)
J1 AU_VIN0_P Microphone 0 amplifier input (+)
J2 AU_VIN0_N Microphone 0 amplifier input (-)
K1 AU_VIN1_N Microphone 1 amplifier input (-)
K2 AU_VIN1_P Microphone 1 amplifier input (+)
L1 BDLAQP Quadrature (Q+) baseband codec
L2 BDLAQN Quadrature (Q-) baseband codec
L3 BDLAIN Quadrature (I-) baseband codec
L4 BDLAIP Quadrature (I+) baseband codec
N1 APC Automatic power control DAC output
M2 AUXADIN0 Auxiliary ADC input 0
M3 AUXADIN1 Auxiliary ADC input 1
N2 AUXADIN2 Auxiliary ADC input 2
N3 AUX_REF Reference voltage of Auxiliary ADC
R1 AFC Automatic frequency control DAC output
P2 AFC_BYP Automatic frequency control DAC bypass capacitance
RF control circuitry
R2 BPI_BUS0 O RF hard-wire control bus bit 0
T2 BPI_BUS1 O RF hard-wire control bus bit 1
R3 BPI_BUS2 O RF hard-wire control bus bit 2
U3 BPI_BUS3 O RF hard-wire control bus bit 3
T3 BPI_BUS4 O RF hard-wire control bus bit 4
P3 BPI_BUS5 O RF hard-wire control bus bit 5
R4 BPI_BUS6 IO RF hard-wire control bus bit 6 GPIO20 BPI_BUS6 XADMUX PD
T4 BPI_BUS7 IO RF hard-wire control bus bit 7 GPIO21 BPI_BUS7 BSI_RFIN clk_out0 PD
U4 BPI_BUS8 IO RF hard-wire control bus bit 8 GPIO22 BPI_BUS8 KCOL5 clk_out1 PU
U5 BPI_BUS9 IO RF hard-wire control bus bit 9 GPIO23 BPI_BUS9 BSI_CS1 clk_out2 PD
T5 BSI_CS0 O RF 3-wire control interface chip select 0
R5 BSI_DATA IO RF 3-wire control interface data output
U6 BSI_CLK O RF 3-wire control interface clock output
Digital Audio Interface (DAI)
T6 DAICLK IO DAI interface clock output
GPIO15
DAICLK EDICK PU
20/344 MediaTek Inc. Confidential
Page 21
U7 DAIPCMOUT IO DAI PCM data output
T7 DAIPCMIN IO DAI PCM data input GPIO17 DAIPCMIN PU
R6 DAIRST IO DAI reset signal input GPIO18 DAIRST PU
P6 DAISYNC IO DAI frame synchronization input GPIO19 DAISYNC EDIWS PU
PWM Interface
R7 ALERTER IO Pulse-width modulated signal for buzzer
P7 PWM IO Pulse-width modulated signal GPIO25 PWM PD
JTAG Interface
U8 JRTCK O JTAG test port returned clock output
R8 JTRST_B I JTAG test port reset input GPIO26 JTRST_B EINT4 PD
U9 JTCK I JTAG test port clock input PU
P8 JTDI I JTAG test port data input GPIO27 JTDI EINT5 PU
T9 JTMS I JTAG test port mode switch GPIO28 JTMS EINT6 PU
R9 JTDO O JTAG test port data output
Parallel LCD Interface
T10 LCD_D8 IO Parallel display interface Data 8
R10 LCD_D7 IO Parallel display interface Data 7 GPIO1 LCD_D7 PD
P10 LCD_D6 IO Parallel display interface Data 6 GPIO2 LCD_D6 PD
U10 LCD_D5 IO Parallel display interface Data 5 GPIO3 LCD_D5 PD
U11 LCD_D4 IO Parallel display interface Data 4 GPIO4 LCD_D4 PD
T11 LCD_D3 IO Parallel display interface Data 3 GPIO5 LCD_D3 PD
R11 LCD_D2 IO Parallel display interface Data 2 GPIO6 LCD_D2 PD
U12 LCD_D1 IO Parallel display interface Data 1 GPIO7 LCD_D1 PD
T12 LCD_RSTB O Parallel display interface Reset Signal GPIO8 LCD_RSTB PU
R12 LCD_WR_B O Parallel display interface Write Strobe GPIO9 LCD_WR_B PU
U13 LCD_RD_B O Parallel display interface Read Strobe GPIO10 LCD_RD_B PU
T13 LCD_D0 IO Parallel display interface Data 0 GPIO11 LCD_D0 PD
R13 LCD_A0 O Parallel display interface address output GPIO12 LCD_A0 PU
R14 LCD_CS0_B O Parallel display interface chip select 0 output GPIO13 LCD_CS0_B PU
U14 LCD_CS1_B O Parallel display interface chip select 1 output GPIO14 LCD_CS1_BEINT7 PU
External Memory Interface
U15 EADV_B O Flash, PSRAM and CellularRAM address valid, active low
T15 EWAIT O Flash, PSRAM and CellularRAM data ready PU
U16 ECLK O Flash, PSRAM and CellularRAM clock
P13 EA25 IO External memory CRE pin
T16 ED0 IO External memory data bus 0
U17 ED1 IO External memory data bus 1
T17 ED2 IO External memory data bus 2
P14 ED3 IO External memory data bus 3
R16 ED4 IO External memory data bus 4
R17 ED5 IO External memory data bus 5
P17 ED6 IO External memory data bus 6
P16 ED7 IO External memory data bus 7
P15 ED8 IO External memory data bus 8
N17 ED9 IO External memory data bus 9
N16 ED10 IO External memory data bus 10
N15 ED11 IO External memory data bus 11
M17 ED12 IO External memory data bus 12
GPIO16
GPIO24
GPIO0
DAIPCMOUTEDIDAT PD
ALERTER PD
PU
LCD_D8 PD
21/344 MediaTek Inc. Confidential
Page 22
M16 ED13 IO External memory data bus 13
M15 ED14 IO External memory data bus 14
L17 ED15 IO External memory data bus 15
L16 ERD_B O External memory read strobe, active low
L15 EWR_B O External memory write strobe, active low
L14 ECS0_B O External memory chip select 0
K17 ECS1_B O External memory chip select 1
K16 ECS2_B O External memory chip select 2
K15 ECS3_B O External memory chip select 3 MFIQ ECS3 PU
K14 ELB_B O External memory lower byte strobe
J17 EUB_B O External memory upper byte strobe
J16 EA0 O External memory address bus 0 GPIO30 EA0 EA25 PD
J15 EA1 O External memory address bus 1
J14 EA2 O External memory address bus 2
H17 EA3 O External memory address bus 3
H16 EA4 O External memory address bus 4
H15 EA5 O External memory address bus 5
G17 EA6 O External memory address bus 6
G16 EA7 O External memory address bus 7
G15 EA8 O External memory address bus 8
F17 EA9 O External memory address bus 9
F16 EA10 O External memory address bus 10
F15 EA11 O External memory address bus 11
E17 EA12 O External memory address bus 12
E16 EA13 O External memory address bus 13
E15 EA14 O External memory address bus 14
E14 EA15 O External memory address bus 15
D17 EA16 O External memory address bus 16
D16 EA17 O External memory address bus 17
D15 EA18 O External memory address bus 18
D14 EA19 O External memory address bus 19
C17 EA20 O External memory address bus 20
C16 EA21 O External memory address bus 21
C14 EA22 O External memory address bus 22
B17 EA23 O External memory address bus 23
B16 EA24 O External memory address bus 24
System Miscellaneous
J10 TESTMODE I Factory test mode enable input
T8 SYSRST_B I System reset input active low PU
T14 WATCHDOG O Watchdog reset output, active low GPIO29 WATCHDOG
A17 SRCLKENAI I External VCTCXO enable input GPIO31 SRCLKENAI PD
A16 SRCLKENA O External VCTCXO enable output active high
Keypad Interface
A15 KCOL4 I Keypad column 4
B15 KCOL3 I Keypad column 3 GPIO33 KCOL3 PU
A14 KCOL2 I Keypad column 2 GPIO34 KCOL2 PU
B14 KCOL1 I Keypad column 1 GPIO35 KCOL1 PU
A13 KCOL0 I Keypad column 0 GPIO36 KCOL0 PU
GPIO32
PD
KCOL4 PU
22/344 MediaTek Inc. Confidential
Page 23
B13 KROW4 O Keypad row 4
C13 KROW3 O Keypad row 3 GPIO38 KROW3
A12 KROW2 O Keypad row 2 GPIO39 KROW2
B12 KROW1 O Keypad row 1 GPIO40 KROW1
C12 KROW0 O Keypad row 0 GPIO41 KROW0
External Interrupt Inputs
D12 EINT0 I External interrupt 0
B11 EINT1 I External interrupt 1 EINT1 PU
C11 EINT2 I External interrupt 2 GPIO42 EINT2 MIRQ BT PU
D11 EINT3 I External interrupt 3 GPIO43 EINT3 BE PU
UART
C10 UTXD1 O UART 1 transmit data
D10 UCTS1_B I UART 1 clear to send, active low GPIO45 UCTS1_B SCL PU
C9 URTS1_B O UART 1 request to send, active low GPIO46 URTS1_B SDA PU
A9 UTXD3 IO UART 3 transmit data GPIO47 UTXD3 UCTS2_B clk_out3 PU
B9 URXD3 IO UART 3 receive data GPIO48 URXD3 URTS2_B clk_out4 PU
C8 URXD2 IO UART2 receive data GPIO49 URXD2 clk_out5 PU
C7 URXD1 I UART 1 receive data GPIO50 URXD1 PU
D8 UTXD2 IO UART2 transmit data GPIO51 UTXD2 PU
B8 VRF_SENSE RF LDO output sensing input
A7 VCORE Digital core voltage LDO output
B7 VIO Digital I/O voltage LDO output
B6 VM External memory LDO output
C1 VA Analog LDO output
E2 VCTXO Crystal or VCTCXO LDO output
PMIC Miscellaneous
A3 VBAT_RF RF used battery voltage input
B3 VBAT Battery voltage input
B2 VBAT Battery voltage input
GPIO37
GPIO44
KROW4
EINT0 PU
UTXD1 PU
23/344 MediaTek Inc. Confidential
Page 24
A1 VBAT Battery voltage input
A2 AVBAT Battery voltage input
D7 BAT_BACKUP
C5 BATDET Battery detection input
A4 BATSENSE Battery sense input
B4 ISENSE Current sense input
C2 RESET Powr on reset
D2 RSTCAP Reset capacitor connection point
B1 VREF Reference voltage for PMIC
E4 VMSEL Memory supply voltage level select input
D3 PWRKEY Power key press input
Digital Power and Grounds
J8 PGND PMIC ground
H7 DGND PMIC ground
H11 DGND PMIC ground
H10 DGND PMIC ground
H9 DGND PMIC ground
K7 VSS33 Groud of chip digital part I/O circuitry
L8 VSS33 Groud of chip digital part I/O circuitry
K8 VSS33 Groud of chip digital part I/O circuitry
J11 VSS33 Groud of chip digital part I/O circuitry
J7 VSS33 Groud of chip digital part I/O circuitry
L9 VSS33_EMI Groud of external memory interface
K9 VSS33_EMI Groud of external memory interface
L10 VSS33_EMI Groud of external memory interface
K10 VSS33_EMI Groud of external memory interface
K11 VSS33_EMI Groud of external memory interface
N4 VDDK Supply voltage of digital core circuitry
P9 VDDK Supply voltage of digital core circuitry
D9 VDDK Supply voltage of digital core circuitry
H14 VDDK Supply voltage of digital core circuitry
D13 VDD33 Supply voltage of digital part I/O circuitry
P4 VDD33 Supply voltage of digital part I/O circuitry
P5 VDD33 Supply voltage of digital part I/O circuitry
P11 VDD33_LCD Supply voltage of display interface I/O circuitry
P12 VDD33_EMI Supply voltage of external memory interface
N14 VDD33_EMI Supply voltage of external memory interface
M14 VDD33_EMI Supply voltage of external memory interface
G14 VDD33_EMI Supply voltage of external memory interface
F14 VDD33_EMI Supply voltage of external memory interface
JTDI GPIO27 2 PU0.4 2.4 40, 75, 190 5.2
JTMS GPIO28 2 PU0.4 2.4 40, 75, 190 5.2
JTDO 6 PU0.4 2.4 40, 75, 190 5.2
SYSRST_B input only PU40, 75, 190 5.2
LCD
LCD_D8 GPIO0 max 16, min 2 PD0.4 2.4 40, 75, 190 5.2
LCD_D7 GPIO1 max 16, min 2 PD0.4 2.4 40, 75, 190 5.2
LCD_D6 GPIO2 max 16, min 2 PD0.4 2.4 40, 75, 190 5.2
LCD_D5 GPIO3 max 16, min 2 PD0.4 2.4 40, 75, 190 5.2
LCD_D4 GPIO4 max 16, min 2 PD0.4 2.4 40, 75, 190 5.2
LCD_D3 GPIO5 max 16, min 2 PD0.4 2.4 40, 75, 190 5.2
LCD_D2 GPIO6 max 16, min 2 PD0.4 2.4 40, 75, 190 5.2
LCD_D1 GPIO7 max 16, min 2 PD0.4 2.4 40, 75, 190 5.2
LCD_RSTB GPIO8 max 16, min 2 PU0.4 2.4 40, 75, 190 5.2
LCD_WR_B GPIO9 max 16, min 2 PU0.4 2.4 40, 75, 190 5.2
LCD_RD_B GPIO10 max 16, min 2 PU0.4 2.4 40, 75, 190 5.2
LCD_D0 GPIO11 max 16, min 2 PD0.4 2.4 40, 75, 190 5.2
LCD_A0 GPIO12 max 16, min 2 PU0.4 2.4 40, 75, 190 5.2
LCD_CS0_B GPIO13 max 16, min 2 PU0.4 2.4 40, 75, 190 5.2
LCD_CS1_B GPIO14 max 16, min 2 PU0.4 2.4 40, 75, 190 5.2
WATCHDOG GPIO29 4 0.4 2.4 5.2
EMI
EADV_B max 16, min 2 0.4 2.4
EWAIT max 16, min 2 PU0.4 2.4 40, 75, 190
ECLK max 16, min 2 0.4 2.4
ECRE max 16, min 2 0.4 2.4
ED0 max 16, min 2 0.4 2.4 5.2
ED1 max 16, min 2 0.4 2.4 5.2
ED2 max 16, min 2 0.4 2.4 5.2
ED3 max 16, min 2 0.4 2.4 5.2
ED4 max 16, min 2 0.4 2.4 5.2
ED5 max 16, min 2 0.4 2.4 5.2
ED6 max 16, min 2 0.4 2.4 5.2
ED7 max 16, min 2 0.4 2.4 5.2
ED8 max 16, min 2 0.4 2.4 5.2
ED9 max 16, min 2 0.4 2.4 5.2
ED10 max 16, min 2 0.4 2.4 5.2
ED11 max 16, min 2 0.4 2.4 5.2
ED12 max 16, min 2 0.4 2.4 5.2
ED13 max 16, min 2 0.4 2.4 5.2
ED14 max 16, min 2 0.4 2.4 5.2
ED15 max 16, min 2 0.4 2.4 5.2
ERD_B max 16, min 2 0.4 2.4
32/344 MediaTek Inc. Confidential
Page 33
EWR_B max 16, min 2 0.4 2.4
ECS0_B max 16, min 2 0.4 2.4
ECS1_B max 16, min 2 0.4 2.4
ECS2_B max 16, min 2 0.4 2.4
ECS3_B max 16, min 2 PU0.4 2.4 40, 75, 190
ELB_B max 16, min 2 0.4 2.4
EUB_B max 16, min 2 0.4 2.4
EA0 GPIO30 max 16, min 2 PD0.4 2.4 40, 75, 190
EA1 max 16, min 2 0.4 2.4
EA2 max 16, min 2 0.4 2.4
EA3 max 16, min 2 0.4 2.4
EA4 max 16, min 2 0.4 2.4
EA5 max 16, min 2 0.4 2.4
EA6 max 16, min 2 0.4 2.4
EA7 max 16, min 2 0.4 2.4
EA8 max 16, min 2 0.4 2.4
EA9 max 16, min 2 0.4 2.4
EA10 max 16, min 2 0.4 2.4
EA11 max 16, min 2 0.4 2.4
EA12 max 16, min 2 0.4 2.4
EA13 max 16, min 2 0.4 2.4
EA14 max 16, min 2 0.4 2.4
EA15 max 16, min 2 0.4 2.4
EA16 max 16, min 2 0.4 2.4
EA17 max 16, min 2 0.4 2.4
EA18 max 16, min 2 0.4 2.4
EA19 max 16, min 2 0.4 2.4
EA20 max 16, min 2 0.4 2.4
EA21 max 16, min 2 0.4 2.4
EA22 max 16, min 2 0.4 2.4
EA23 max 16, min 2 0.4 2.4
EA24 max 16, min 2 0.4 2.4
Figure 5 illustrates the block diagram of the Micro-Controller Unit Subsystem in MT6223. 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.
The bus comprises of two-level system buses: Advanced High-Performance Bus (AHB) and Advanced Peripheral Bus (APB).
All bus transactions originate from bus masters, while slaves can only respond to requests from bus masters. Before data
transfer can be established, the bus master must ask for bus ownership, 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 designed to reduce interface complexity for lower
data transfer rate, and so it is isolated from high bandwidth AHB Bus by APB Bridge. APB Bus supports 16-bit addressing
and both 16-bit and 32-bit data paths. APB Bus is also optimized for minimal power consumption by turning off the clock
when there is no APB bus activity.
During operation, if the target slave is located on 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 MT6223 MCU subsystem supports only memory addressing method. Therefore all components are mapped onto the
MCU 32-bit address space. A Memory Management Unit is employed to allow for a central decode scheme. The MMU
generates appropriate selection signals for each memory-addressed module 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 do fast data movement between modules. This controller comprises thirteen 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, it generates 2 levels of interrupt requests, FIQ and IRQ, to the processor.
A 40K Byte SRAM is provided as system memory for high-speed data access. For factory programming purposes, 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 target device. Note that, this interface is specific
to both synchronous and asynchronous components, like Flash, SRAM and parallel LCD. This interface supports also page
and burst mode type of Flash.
35/344 MediaTek Inc. Confidential
Page 36
System ROM
ARM7EJ-S
DMA
Controller
Peripheral
Ext
Bus
External
Memory
Interface
System RAM
Internal Memory
Controller
MCU-DSP
Interface
Arbiter
AHB Bus
Figure 5 Block Diagram of the Micro-Controller Unit Subsystem in MT6223
3.1 Processor Core
Interrupt
Controller
APB
Bridge
APB Bus
Peripheral
3.1.1 General Description
The Micro-Controller Unit Subsystem in MT6223 is built up with a 32-bit RISC core, ARM7EJ-S that is based on Von
Neumann architecture with a single 32-bit data bus carrying both instructions and data. The memory interface of ARM7EJ-S
is totally compliant to AMBA based bus system. Basically, it can be connected to AHB Bus directly.
3.2 Memory Management
3.2.1 General Description
The processor core of MT6223, ARM7EJ-S, supports only memory 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.
36/344 MediaTek Inc. Confidential
Page 37
MCU 32-bit
Addressing
Space
9FFF_FFFh
|
9000_0000h
8FFF_FFFFh
|
8000_0000h
7FFF_FFFFh
|
7000_0000h
6FFF_FFFFh
|
5000_0000h
4FFF_FFFFh
|
4000_0000h
Reserved
9800_0000h
9000_0000hLCD
APB Peripherals
7800_0000h
7000_0000hReserved
MCU-DSP Interface
Reserved
Virtual FIFO
Internal Memory
3FFF_FFFFh
|
0000_0000h
External Memroy
EA[25:0]
Addressing
Space
Figure 6 The Memory Layout of MT6223
The address space is organized as basis of blocks with size of 256M Bytes for each. Memory blocks MB0-MB9 are
determined and currently dedicated to specific functions, as shown in Ta ble 4 , while the others are reserved for future usage.
Essentially, the block number is uniquely selected by address line A31-A28 of internal system bus.
Memory
Block
Block Address
Address Range Description
A31-A28
00000000h-07FFFFFFh Boot Code, EXT SRAM or EXT Flash/MISC
MB0 0h
08000000h-0FFFFFFFh EXT SRAM or EXT Flash/MISC
10000000h-17FFFFFFh EXT SRAM or EXT Flash/MISC
MB1 1h
18000000h-1FFFFFFFh EXT SRAM or EXT Flash/MISC
20000000h-27FFFFFFh Reserved
MB2 2h
28000000h-2FFFFFFFh Reserved
MB3 3h 30000000h-37FFFFFFh Reserved
37/344 MediaTek Inc. Confidential
Page 38
38000000h-3FFFFFFFh Reserved
40000000h-47FFFFFFh System RAM
MB4 4h
48000000h-4FFFFFFFh System ROM
MB5 5h 50000000h-5FFFFFFFh
MCU-DSP Interface
MB6 6h 60000000h-6FFFFFFFh
70000000h-77FFFFFFh Reserved
MB7 7h
78000000h-7FFFFFFFh Virtual FIFO
MB8 8h 80000000h-8FFFFFFFh APB Slaves
90000000h-97FFFFFFh LCD
MB9 9h
98000000h-9FFFFFFFh Reserved
Table 4 Definitions of Memory Blocks in MT6223
3.2.1.1 External Access
To have external access, the MT6223 outputs 26 bits (A25-A0) of address lines along with 4 selection signals that correspond
to associated memory blocks. That is, MT6223 can support at most 4 MCU addressable external components. The data width
of internal system bus is fixed as 32-bit wide, while the data width of the external components is fixed as 16 bit.
Since devices are usually available with variety operating grades, adaptive configurations for different applications are
needed. MT6223 provides software programmable registers to configure to adapt operating conditions in terms of different
wait-states.
3.2.1.2 Memory Re-mapping Mechanism
To permit system being configured with more flexible, 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 register
EMI_REMAP is changed, these two banks will be swapped accordingly. Besides, it also permits system being boot in
different sequence as detailed in
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
been reset, the system 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 after a system reset. In this special boot mode, External
Memory Controller does not access external memory; instead, the EMI Controller send predefined Boot Code back to the
ARM7EJS-S core, which instructs the processor to execute the program in System ROM. This configuration can be
changed by programming bit value of RM1 in register EMI_REMAP directly.
MT6223 system provides one boot up scheme:
3.2.1.3 Boot Sequence.
z Start up system of running codes from Boot Code for factory programming.
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
38/344 MediaTek Inc. Confidential
Page 39
just two words of instructions as shown below. A jump instruction leads the processor to run the code starting at address
48000000h where the System ROM is placed.
ADDRESS BINARY CODE ASSEMBLY
00000000h E51FF004h LDR PC, 0x4
00000004h 48000000h (DATA)
3.2.1.3.2 Factory Programming
The configuration for factory programming is shown in Figure 7. Usually the Factory Programming Host connects with
MT6223 by way of UART interface. To have it works properly, the system should boot up from Boot Code. The down load
speed can be up to 921K bps while MCU is running at 26MHz.
After system being reset, the Boot Code will guide the processor to run the Factory Programming software placed in System
ROM. Then, MT6223 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 down loader program is then
transferred into System RAM or external SRAM.
Further information will be detailed in MT6223 Software Programming Specification.
UART
BaseBand Processor
External
Memory
Interface
FLASH
Factory
Programming
Host
Figure 7 System configuration required for factory programming
3.2.1.4 Little Endian Mode
The MT6223 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 byte, 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 employed in constructing the Micro-Controller Unit Subsystem of MT6223. As depicted in
Figure 5, AHB Bus and APB Bus serve for 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 resided 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 those select signals for
individual peripheral. In addition, since the base address of each APB slave has been associated with select signals, the
address bus on APB will contain only the value of offset address.
39/344 MediaTek Inc. Confidential
Page 40
The maximum address space that can be allocated to a single APB slave is 64KB, i.e. 16-bit address lines. The width of data
bus is mainly constrained to 16-bit to minimize the design complexity and power consumption while some of them 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 a DMA resource or channel to conduct a burst of data transfer. The base address and data width of
each peripheral are listed in Table 5.
Base Address Description Data WidthSoftware Base ID
Configuration Registers
8000_0000h
16 CONFG Base
(Clock, Power Down, Version and Reset)
8001_0000h External Memory Interface 32 EMI Base
8002_0000h Interrupt Controller 32 CIRQ Base
8003_0000h DMA Controller 32 DMA Base
8004_0000h Reset Generation Unit 16 RGU Base
8005_0000h Reserved
8006_0000h GPRS Cipher Unit 32 GCU Base
8007_0000h I2C 16 I2C Base
8008_0000h Reserved
8009_0000h Software Debug 32 SWDBG 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 Security Engine for JTAG protection 32 SEJ Base
8018_0000h UART 2 16 UART2 Base
8019_0000h Reserved
801a_0000h Reserved
801b_0000h UART 3 16 UART3 Base
801c_0000h Reserved
8020_0000h TDMA Timer 32 TDMA Base
40/344 MediaTek Inc. Confidential
Page 41
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 Reserved
8030_0000h MCU-DSP Shared Register 1 16 SHARE1 Base
8031_0000h DSP Patch Unit 1 16 PATCH1 Base
8032_0000h MCU-DSP Shared Register 2 16 SHARE2 Base
8033_0000h DSP Patch Unit 2 16 PATCH2 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
Table 5 Register Base Addresses for MCU Peripherals
REGISTER ADDRESS REGISTER NAME SYNONYM
CONFG + 0000h Hardware Version Register HW_VER
CONFG + 0004h Software Version Register SW_VER
CONFG + 0008h Hardware Code Register HW_CODE
CONFG + 0404h APB Bus Control Register APB_CON
CONFG + 0500h AHB Bus Control Register AHB_CON
Table 6 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
41/344 MediaTek Inc. Confidential
Page 42
Name EXTP MAJREV MINREV
Type RO RO RO RO
Reset 8 A 0 0
This register is used by software to determine the hardware version of the chip. The register contains a new value whenever
each metal fix or major step is performed. All values are incremented by a step of 1.
MINREV Minor Revision of the chip
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 Software Version Register SW_VERSION
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name EXTP MAJREV MINREV
Type RO RO RO RO
Reset 8 A 0 0
This register is used by software to determine the software version used with this chip. All values are incremented by a step
of 1.
MINREV Minor Revision of the software
MAJREV Major Revision of the software
EXTP This field shows the existence of Hardware Code Register that presents the Hardware ID when the value is other
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 does not clear it
automatically no matter if the DMA channel accomplishes the DMA transfer or not. In other works, the value of STR stays
“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 1, 4~8, 11~14.
57/344 MediaTek Inc. Confidential
Page 58
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 a binary coded version of IRQ_STA. It is used by the software program to poll which interrupt line has
generated the IRQ interrupt request in a much easier way. Any read to it has the same result as reading IRQ_STA. The
IRQ_STA2 is also read-only; write access has no effect on the content. Note that IRQ_STA2 should be coupled with
IRQ_EOI2 while using it.
This Register is a binary coded version of IRQ_STA. It is used for software program to poll and see which interrupt line
generated the IRQ interrupt request in a much easier way. Any read to it has the 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.
STSA 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 STSA should be
For each bank (BANK0-BANK7), a dedicated control register is associated with the bank controller. These registers have the
timing parameters that help the controller to convey memory access into proper timing waveform. Note that, except for
parameter ADVW, ADVR, BMODE, PMODE, DW, RBLN, HPI and PSIZE, all the other parameters specified explicitly are
based on system clock speed in terms of cycle count.
RLT Read Latency Time Specifying the parameter RLT turns effectively to insert wait-states 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.
83/344 MediaTek Inc. Confidential
Page 84
ECLK
RLT+1
EA
ECS#
C2RS
ERD#EDELB#/EUB#
EADV#
RLT=4, C2RS=1
Figure 16 Read Wait State Timing Diagram (ADVR=1)
RLT+1
C2RS
RLT=1, C2RS=1
Access Time
60ns 0 1 3
90ns 1 2 4
120ns 1 3 6
Table 16 Reference value of Read Latency Time for variant memory devices
Read Latency Time
13MHz 26MHz 52MHz
Figure 17 Read Wait State Timing Diagram (ADVR=0)
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.
84/344 MediaTek Inc. Confidential
Page 85
0 disable burst mode operation
ECLK
WST+C2WH+2
EA
ECS#
C2WS
C2WH+1
EWR#
ED
ELB#/EUB#
EADV#
WST=3, C2WS=1, C2WH=0
1 enable burst mode operation
PRLT Read Latency within the Same Page or in Burst Mode Operation
Since page/burst mode operation only helps to eliminate read latency in subsequent burst within the same page, it
doesn’t matter with the initial latency at all. Thus, it should still adopt RLT parameter for initial read or burst read
between different pages though PMODE 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
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 behave.
0 8 byte, EA[25:3] remains the same
1 16 byte, EA[25:4] remains the same
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 18 and
Table 17.
Figure 18 Write Wait State Timing Diagram (ADVW=1)
85/344 MediaTek Inc. Confidential
Write Pulse Width
(Write Data Setup Time)
Write Wait State
13MHz 26MHz52MHz
Page 86
30ns 0 0 1
ECLK
WST+C2WH+2
EA
ECS#
C2WS
C2WH+1
EWR#EDELB#/EUB#
EADV#
WST=3, C2WS=1, C2WH=0
60ns 0 1 3
90ns 1 2 4
Table 17 Reference value of Write Wait State for variant memory devices
Figure 19 Write Wait State Timing Diagram (ADVW=0)
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 might be
converted into more than one cycles, 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
system initialization process prior to begin access to it. Note that, dynamic changing this parameter will cause
unexpected result.
0 16-bit device
1 8-bit device
HPI HPI Mode Control
ADVR Read Address Valid
0 EADV# will be toggled to latch the valid address in read operation
1 EADV# will be held low for entire read operation
ADVW Write Address Valid
0 EADV# will be toggled to latch the valid address in write operation
C2RS Chip Select to Read Strobe Setup Time
C2WH Chip Select to Write Strobe Hold Time
86/344 MediaTek Inc. Confidential
1 EADV# will be held low for entire write operation
Page 87
C2WS Chip Select to Write Strobe Setup Time
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 BOOT 0
This register accomplishes the Memory Re-mapping Mechanism. Basically, it provides the kernel software program or
system designer a capability of changing memory configuration dynamically. Three kinds of configuration are permitted.
RM[1:0] Re-mapping control for Boot Code, BANK0 and BANK1, refer to Table 18.
1 Always drive ED Bus except for read access
FLUSH Instruction Cache Write Flush Control
WPOL FLASH, SRAM, PSRAM and CellularRAM Wait Signal Inversion Control
0 Wait if EWAIT = 0.
1 Wait if EWAIT = 1.
PDNE Pseudo SRAM Power Down Mode Control
CKE Burst Mode FLASH Memory Clock Enable Control
CKDLY Burst Mode FLASH Memory Clock Delay Control
CKSR ECLK Pad Slew Rate Control
CKEx ECLK Pad Driving Control
CONSR EADV#, ECS#, EWR#, ERD#, EUB# and ELB# Pad Slew Rate Control
CONEx EADV#, ECS#, EWR#, ERD#, EUB# and ELB# Pad Driving Control
EASR EA[25:0] Pad Slew Rate Control
EAEx EA[25:0] Pad Driving Control
EDSR ED[15:0] Pad Slew Rate Control
EDEx ED[15:0] Pad Driving Control
EMI+0050h Code Cache and Code Prefetch Control Register PREFETCH_CON
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. While an instruction/data fetch hits the one
in the code/data cache, not only the access time could be minimized, but also the singling to off chip ROM or FLASH
Memory could be relieved. In addition, it can also store up to 16 prefetched instruction codes/data while Code/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 staffs during
the period that the EMI interface is in IDLE state. The bandwidth to off chip memory could be fully utilized. On the other
hand, if the instruction/data fetch hits the one of prefetched codes/data, the access time could be minimized and then enhance
the overall system performance.
88/344 MediaTek Inc. Confidential
Page 89
xWRP8 Prefetch Size
0 8 bytes
1 16 bytes
xBn Prefetchable/Cacheable Area There bit positions determine the prefetchable and cacheable region in which the instruction/data could be cached or
ALERTER_CNT2 Initial value for internal counter2. The internal counter2 decreases by one each time the internal counter1
counts down to zero; internal counter1 is a nested counter.
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 the PWM Waveform clock.
00 13 MHz
01 13/2 MHz
10 13/4 MHz
11 13/8 MHz
MODE Select the 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.
93/344 MediaTek Inc. Confidential
Page 94
1 Output generated from PDM path.
Note: When the Alerter module is powered down, its output must be kept in low state.
Figure 22 shows the Alerter waveform with the register values.
13MH z
ALERTER_ CNT1 = 5
ALERTER_ CNT2 = 1
ALERTER_ THRESH = 1
A L ER T ER_CO N = 00000b
ALERTER_ CNT1 = 5
ALERTER_ CNT2 = 1
ALERTER_ THRESH = 1
A L ER T ER_CO N = 00100b
ALERTER_ CNT1 = 5
ALERTER_ CNT2 = 1
ALERTER_ THRESH = 1
A L ER T ER_CO N = 01000b
Figure 22 Alerter Output Signal from Enhanced PWM with Register Value Present
3.9 SIM Interface
The MT6223 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 23 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. Besides, SIMDATA and SIMCLK are used for data exchange
purpose.
Basically, 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 Low, 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)
94/344 MediaTek Inc. Confidential
Page 95
PB: Even Parity Check Bit
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 totally 14 bits guard period whether the error response appears. If the
receiver shows the error response, the SIM interface will retransmit the previous character again else it will transmit the next
character.
Figure 24 SIM Interface Timing Diagram
3.9.1 Register Definitions
SIM+0000h SIM module control register SIM_CONT
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name WRST CSTOP SIMON
Type W R/W R/W
Reset 0 0 0
95/344 MediaTek Inc. Confidential
Page 96
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
Type R/C R/C R/C R/C R/C R/C R/C R/C R/C R R
Reset
EDCER
T1END RXERR T0END SIMOFF ATRERR TXERR TOUT OVRUN RXTIDE TXTIDE
R
— — — — — — — — — — —
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
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
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
98/344 MediaTek Inc. Confidential
Page 99
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 ATIME[15:0]
Type R/W
Reset 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
Name WTIME[15:0]
Type R/W
99/344 MediaTek Inc. Confidential
Page 100
Reset 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 +0050h Block to error signal time register SIM_ETIME
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Name ETIME
Type R/W
Reset 15d
ETIME The register defines the interval, in 1/16 ETU unit, between the end of transmitted parity bit and time to check parity
error signal sent from SIM card.
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
0 T=0 controller receives data from the SIM card
1 T=0 controller sends data to the SIM card
SIM_P3
SIM +0064h SIM command header register: P3
(ICC_LEN)
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
100/344 MediaTek Inc. Confidential
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.