Apg221 Su 120 en

Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

APG221

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

APG221 8-bit CMOS Microcontroller


High performance 8-bit MCU

One IR controller

DC-48MHz operation

SD Card Host controller

Compatible with 8051

Full speed USB 2.0 host/device controller

All instructions are single-cycle except

One RTC controller

branching instructions

MIC AGC

Two data pointer for indirect addressing

Program Memory and Data


Memory

Analog Peripheral Features

One 32 KHz Crystal Oscillator

Program: 16K Bytes Flash

One internal RC oscillator

Data:

Full speed USB 2.0 PHY

8K Bytes RAM

48MHz PLL-based clock generator

448K Bytes Flash

16-bit stereo DAC

16-bit sigma delta ADC

6 Channels 10-bit ADC

Interrupt Feature

12 Vectored interrupts

2 channels 4 levels Low Voltage Detector

External wake up/interrupt on 2 GPIOs

Power-on reset

2 Levels interrupt priority

Low voltage detect (LVD)

Two LDO: 5V to 1.8V, 5V to 3.3V

Flexible I/O

24 GPIO pins

Power Supply

All GPIO pins can be programmable as

VDDLDO: 3.2V to 5.5V

input or output individually

VDDIO: 3.0V to 3.6V (Supplied by VDDLDO)

All GPIO pins are internal pull-up /pull-down

selectable individually

VDDCORE: 1.6V to 2.0V (Supplied by


(VDDLDO)

CMOS/TTL level Schmitt triggered input

Program and Debug Support


Digital Peripheral Feature

Two multi-function 8-bit timers, support

In-System Programming (ISP) support

In-System Debugging (ISD) support

Capture and PWM mode

Two multi-function 16-bit timers, support

Packages

Capture and PWM mode

LQFP48

Watchdog

One full-duplex UART

Temperature

One SPI, support DMA

Operating temperature: -40oCto +85oC

Two channels IIS controller

Storage temperature: -65oC to +150oC

CRC controller for CRC16 calculation

AppoTech Limited

Address : Unit 705-707, 7/F, IC Development Centre,


No.6, Science Park West Ave.,
Hong Kong Science Park,
Shatin, N.T., Hong Kong
Telephone :(852) 2607 4090
Fax
:(852) 2607 4096

Rev 1.2.0

APG211 8-bit CMOS Microcontroller


PRODUCT SUMMARY

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.

2011 AppoTech Ltd

APG221-SU-120-EN

Rev 1.2.0

APG211 8-bit CMOS Microcontroller


PRODUCT SUMMARY

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

6-ch SAR ADC

SD card
controller

RAM
IR Controller

IIS

GPIO

Figure 2-1 APG221 Block Diagram

APG221-SU-120-EN

2011 AppoTech Ltd

Rev 1.2.0

APG211 8-bit CMOS Microcontroller


PRODUCT SUMMARY

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

The pin assignment of APG221 in LQFP 48-pin package is shown below.

Figure 3-1 APG221 LQFP 48-pin pin assignment

2011 AppoTech Ltd

APG221-SU-120-EN

Rev 1.2.0

APG211 8-bit CMOS Microcontroller


PRODUCT SUMMARY

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

DP: Debug Pin


PPWR: Parallel Port Write

T3CKIN: Timer3 Clock In

2011 AppoTech Ltd

Rev 1.2.0

APG211 8-bit CMOS Microcontroller


PRODUCT SUMMARY
37
38
39
40

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

PPD4: Parallel Port Data 4

44
45

NC
P22

I/O

GPIO

PPD2: Parallel Port Data 2


IISDO0:IIS Data output0

46

USBDM

I/O

47

USBDP

I/O

48

MCLR/VPP

USB Negative
Input/output
USB Positive
Input/output
Master Clear, Low
Active

2011 AppoTech Ltd

OTP Programming Power

APG221-SU-120-EN

Rev 1.2.0

APG211 8-bit CMOS Microcontroller


PRODUCT SUMMARY

5.

Characteristics

5.1 LDO Parameters


Sym
Characteristics
Vin
LDO input voltage
Vout1.8
1.8V output voltage
Vout3.3
3.3V output voltage
Iout1.8
1.8V output current
Iout3.3
3.3V output current
Temperature: -40oC~85 oC

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

5.2 PLL Parameters


Sym
Characteristics
FI
Frequency input
FOUT1
Frequency output
Temperature: -40oC~85 oC

Min
-

Table 5-2
Typ
Max
32.768 48
-

5.3 I/O Parameters


Symb
ol
VIL

Description

Min

Table 5-3
Typ

Low-Level input voltage

VIH

High-level input voltage

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

5.4 OSC Parameters


Sym
Characteristics
FINRT32K
RT32KOSC input
FOUTRC
RC output
Temperature: -40oC~85 oC

APG221-SU-120-EN

Min
-

Table 5-4
Typ
Max
32.768 1
-

Unit
KHz
MHz

Conditions

2011 AppoTech Ltd

Rev 1.2.0

APG211 8-bit CMOS Microcontroller


PRODUCT SUMMARY

5.5 Current Parameters


Sym
Istop
Isleep
Ipd

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

5.6 USB PHY Parameters


Sym
RDMPUP
RDPPUP
RDMPDN
RDPPDN

Characteristics
DM pull-up resistor
DP pull-up resistor
DM pull-up resistor
DP pull-up resistor

2011 AppoTech Ltd

Min
-

APG221-SU-120-EN

Rev 1.2.0

APG211 8-bit CMOS Microcontroller


PRODUCT SUMMARY

Revision History
Date

Version

Revised items

Author

2011-06-27

1.0.0

First draft

Raymond Ho

2011-07-21

1.1.0

Revise the Flash and RAM size in feature list and


Raymond Ho
block diagram

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

2011 AppoTech Ltd

You might also like