Apg221 Su 120 en
Apg221 Su 120 en
Apg221 Su 120 en
Product Summary
[APG221-SU-120-EN]
Rev 1.2.0
January 2012
AppoTech Limited
Add: Unit 705-707, 7/F, IC Development Ctr, No. 6, Science Park West Ave. Hong Kong Science Park, Shatin, N.T. HK
Tel: (852) 2607 4090
Fax: (852) 2607 4096
www.appotech.com
One IR controller
DC-48MHz operation
branching instructions
MIC AGC
Data:
8K Bytes RAM
Interrupt Feature
12 Vectored interrupts
Power-on reset
Flexible I/O
24 GPIO pins
Power Supply
selectable individually
Packages
LQFP48
Watchdog
Temperature
AppoTech Limited
Rev 1.2.0
1. Introduction
APG221 is an 8051 Compatible high performance 8-bit microcontroller. It integrates advanced digital
and analog peripherals to suit for a variety of applications. For digital peripherals, it supports a variety
of digital interfaces including UART, SPI, IIS and four timers, integrates an USB 2.0 full speed
Host/Device controller and SD card host controller. For analog peripherals, it integrates RC OSC,
16-bit stereo DAC, 16-bit sigma delta ADC, 6 channels 10-bit SAR ADC, PLL, LVD, XOSC and LDO.
The microcontroller employs an advanced architecture and compatible with standard 8051 with
throughput up to 48 MIPS. All instructions are single-cycled except program branching.
APG221 has 16K bytes program Flash memory, 8K bytes data RAM and 448K bytes data Flash
memory storage. The USB 2.0 Host/Device controller FIFO is shared with RAM. It supports USB2.0
full speed. Flexible I/O with different programmable configurations like pull-up, pull-down or wake-up
allows APG221 to serve for different I/O requirements in the market.
Three low power saving modes is available: IDLE mode, HOLD mode and SLEEP mode to reduce
power consumption for portable device applications.
APG221-SU-120-EN
Rev 1.2.0
2. Block Diagram
32K OSC
APG221
PLL
8051
MCU
Internal RC
Clock
Management
SPI
Timer 0,1, 2, 3
UART
2-ch LVD
RTC Controller
DMA
Arbiter
Watchdog
USB
Flash
Memory
(Host/Device)
16-bit DAC
16-bit - ADC
SD card
controller
RAM
IR Controller
IIS
GPIO
APG221-SU-120-EN
Rev 1.2.0
3. Pin Assignment
APG221
P15
NC
IRTWKO
IRTOSCO
IRTOSCI
VDDIRT
P10
P11
P13
AVDD
VDDCORE
VSSCORE
36
35
34
33
32
31
30
29
28
27
26
25
13
14
15
16
17
18
19
20
21
22
23
24
10
11
12
GND
P27
P21
P20
VSSIO
VDDLDO
VDDIO
VDDADC
VDDDAC
DACR
VCM
DACL
VSSDAC
P03
P02
P01
P00
P14
P33
P06
P07
P16
P17
VDD
1
2
3
4
5
6
7
8
9
MCLR/VPP
USBDP
USBDM
P22
NC
P24
NC
P26
P34
P30
P31
P32
48
47
46
45
44
43
42
41
40
39
38
37
APG221-SU-120-EN
Rev 1.2.0
4. Pin Descriptions
Table 4-1 LQFP 48-pin pin description
Pin No.
1
2
3
4
5
6
7
8
9
10
11
Name
GND
P27
P21
P20
VSSIO
VDDLDO
VDDIO
VDDADC
VDDDAC
DACR
VCM
Type
P
I/O
I/O
I/O
P
P
P
P
P
O
O
12
13
14
15
16
DACL
VSSDAC
P03
P02
P01
O
P
I/O
I/O
I/O
17
P00
I/O
18
P14
I/O
19
P33
I/O
20
P06
I/O
21
P07
I/O
22
P16
I/O
23
P17
I/O
24
VDD
25
26
27
28
29
30
31
32
VSSCORE
VDDCORE
AVDD
P13
P11
P10
VDDIRT
IRTOSCI
P
P
P
I/O
I/O
I/O
P
I
33
IRTOSCO
34
35
36
IRTWKO
NC
P15
GPIO
ADC0/LVD detect
GPIO
ADC1
GPIO
IR Input
Port Interrupt/Wakeup
GPIO
AM input
REFCLK: IIS Reference
clock
GPIO
FM Input
IISWS: IIS WS
IC power and it should
connect to VDDIO
Digital Ground
Digital Power
IO Power
GPIO
GPIO
GPIO
IRT 1.5V IO Power
IRTC 32K Oscillator
Input
IRTC 32K Oscillator
Output
IRTC Wake up Output
I/O
GPIO
APG221-SU-120-EN
Function
Ground
GPIO
GPIO
GPIO
IO Ground
LDO Power input
IO Power input
ADC Power input
DAC Power input
DAC Right Channel
DAC Bandgap voltage
reference
DAC Left Channel
DAC Ground
MICIN0 / AUXL0
MININ1 / AUXR0
GPIO
AUXR1
ADC5
GPIO
AUXL1
ADC4
GPIO
SDDATA3: SD Data 3
Other Function
SPI0DOUT0: SPI0 Data output 0
IISDI0: IIS Data input 0
IISBCLK: IIS BCLK
SDDATA2: SD Data 2
UARTTX1: UART TX1
SDDATA1: SD Data 1
UARTRX1: UART RX1
SPI0DI2:SPI0 Data input 0
T3PWM: Timer3 PWM Output
T3CAP: Timer3 Capture Pin
SPI0DOUT2: SPI0 Data output 2
32K/system clock/XOSC12M output
SPI0DI1:SPI0 Data Input
T1CAP: Timer1 Capture Pin
UARTTX0: UART Data Out 0
T2PWM: Timer2 PWM Output
T2CAP: Timer2 Capture Pin
T2CKIN: Timer2 Clock In
Rev 1.2.0
P32
P31
P30
P34
I/O
I/O
I/O
I/O
GPIO
GPIO
GPIO
GPIO
XOSC12I
Port Interrupt/Wakeup
GPIO
XOSC12O
SDDATA0: SD Data 0
SDCMD: SD Command
SDCLK: SD Clock
T0PWM: Timer0 PWM Output
UARTRX0:UART Data In 0
SPI0CLK2: SPI0 Clock2
PPD6: Parallel Port Data 6
SPI0CLK0: SPI0 CLK 0
41
P26
I/O
42
43
NC
P24
I/O
GPIO
44
45
NC
P22
I/O
GPIO
46
USBDM
I/O
47
USBDP
I/O
48
MCLR/VPP
USB Negative
Input/output
USB Positive
Input/output
Master Clear, Low
Active
APG221-SU-120-EN
Rev 1.2.0
5.
Characteristics
Min
3.2
Table 5-1
Max
5.5
Typ
5.0
1.75
3.3
100
200
Unit
V
V
V
mA
mA
Conditions
Unit
KHz
MHz
Conditions
Min
-
Table 5-2
Typ
Max
32.768 48
-
Description
Min
Table 5-3
Typ
VIH
60% *
VDDIO
RPUP0
Internal pull-up resister 0
RPUP1
Internal pull-up resister 1
RPDN0
Internal pull-down resister 0
RPDN1
Internal pull-down resister 1
RPDN2
Internal pull-down resister 2
RPDN3
Internal pull-down resister 3
ILEVEL0
Level0 current driving
ILEVEL1
Level1 current driving
o
Temperature: 25 C
10
500
10
3.3
200
500
-
Max
Units
Conditions
45% *
VDDIO
-
VDDIO = 3.3V
VDDIO = 3.3V
K
K
mA
mA
VDDIO = 3.3V
VDDIO = 3.3V
VDDIO = 3.3V
VDDIO = 3.3V
VDDIO = 3.3V
VDDIO = 3.3V
8
24
APG221-SU-120-EN
Min
-
Table 5-4
Typ
Max
32.768 1
-
Unit
KHz
MHz
Conditions
Rev 1.2.0
Characteristics
Stop current
Sleep current
VDDLDO power down
current
Min
-
Typ
TBD
TBD
TBD
Table 5-5
Max
TBD
Unit
uA
uA
uA
Conditions
Typ
120
1.5
15
15
Table 5-6
Max
-
Unit
K
K
K
K
Conditions
Characteristics
DM pull-up resistor
DP pull-up resistor
DM pull-up resistor
DP pull-up resistor
Min
-
APG221-SU-120-EN
Rev 1.2.0
Revision History
Date
Version
Revised items
Author
2011-06-27
1.0.0
First draft
Raymond Ho
2011-07-21
1.1.0
2012-01-19
1.2.0
Update logo
Karen Keung
The information in this document is believed to be accurate in all respects at the time of publication but is subject to
change without notice. AppoTech assumes no responsibility for errors and omissions, and disclaims responsibility for any
consequences resulting from the use of information included herein. Additionally, AppoTech assumes no responsibility for
the functioning of undescribed features or parameters. AppoTech reserves the right to make changes without further
notice. AppoTech makes no warranty, representation or guarantee regarding the suitability of its products for any particular
purpose, nor does AppoTech assume any liability arising out of the application or use of any product or circuit, and
specifically disclaims any and all liability, including without limitation consequential or incidental damages. AppoTech
products are not designed, intended, or authorized for use in applications intended to support or sustain life, or for any
other application in which the failure of the AppoTech product could create a situation where personal injury or death may
occur. Should Buyer purchase or use AppoTech products for any such unintended or unauthorized application, Buyer shall
indemnify and hold AppoTech harmless against all claims and damages.
In case of any questions or comments about this documentation, please feel free to contact AppoTech at
[email protected] .
APG221-SU-120-EN
10