apg221-su-120-en
description
Transcript of apg221-su-120-en
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
High performance 8-bit MCU DC-48MHz operation
Compatible with 8051
All instructions are single-cycle except
branching instructions
Two data pointer for indirect addressing
Program Memory and Data Memory Program: 16K Bytes Flash
Data:
8K Bytes RAM
448K Bytes Flash
Interrupt Feature 12 Vectored interrupts
External wake up/interrupt on 2 GPIOs
2 Levels interrupt priority
Flexible I/O 24 GPIO pins
All GPIO pins can be programmable as
input or output individually
All GPIO pins are internal pull-up /pull-down
selectable individually
CMOS/TTL level Schmitt triggered input
Digital Peripheral Feature Two multi-function 8-bit timers, support
Capture and PWM mode
Two multi-function 16-bit timers, support
Capture and PWM mode
Watchdog
One full-duplex UART
One SPI, support DMA
Two channels IIS controller
CRC controller for CRC16 calculation
One IR controller
SD Card Host controller
Full speed USB 2.0 host/device controller
One RTC controller
MIC AGC
Analog Peripheral Features One 32 KHz Crystal Oscillator
One internal RC oscillator
Full speed USB 2.0 PHY
48MHz PLL-based clock generator
16-bit stereo DAC
16-bit sigma delta ADC
6 Channels 10-bit ADC
2 channels 4 levels Low Voltage Detector
Power-on reset
Low voltage detect (LVD)
Two LDO: 5V to 1.8V, 5V to 3.3V
Power Supply VDDLDO: 3.2V to 5.5V
VDDIO: 3.0V to 3.6V (Supplied by VDDLDO)
VDDCORE: 1.6V to 2.0V (Supplied by
(VDDLDO)
Program and Debug Support In-System Programming (ISP) support
In-System Debugging (ISD) support
Packages LQFP48
Temperature Operating temperature: -40oCto +85oC
Storage temperature: -65oC to +150oC
AppoTech LimitedAddress : 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
h
APG221 8-bit CMOS Microcontroller
APG211 8-bit CMOS Microcontroller Rev 1.2.0
PRODUCT SUMMARY
© 2011 AppoTech Ltd 3 APG221-SU-120-EN
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.
Rev 1.2.0 APG211 8-bit CMOS Microcontroller
PRODUCT SUMMARY
APG221-SU-120-EN 4 © 2011 AppoTech Ltd
2. Block Diagram
PLL
Internal RC
USB(Host/Device)
8051MCU
UART
32K OSC
FlashMemory
RAM
APG221
DMAArbiter
Clock Management
RTC Controller
Watchdog
SD card controller
SPI
Timer 0,1, 2, 3
2-ch LVD
16-bit DAC
16-bit Σ-Δ ADC
6-ch SAR ADC
IR Controller
IIS
GPIO
Figure 2-1 APG221 Block Diagram
APG211 8-bit CMOS Microcontroller Rev 1.2.0
PRODUCT SUMMARY
© 2011 AppoTech Ltd 5 APG221-SU-120-EN
3. Pin Assignment
The pin assignment of APG221 in LQFP 48-pin package is shown below.
GNDP27P21P20VSSIOVDDLDOVDDIOVDDADCVDDDACDACRVCMDACL
VS
SD
AC
US
BD
PU
SB
DM
P03
P02
P01
P00
P14
P33
P06
P11P13
VDDIRT
P16
P07
MC
LR/V
PP
IRTWKOIRTOSCOIRTOSCI
P10
P15NC
P30
P31
P32
P22 NC
P24 NC
P26
P34
VD
D
AVDDP
17
VSSCOREVDDCORE
23
1
4
67
5
8
10
9
1112
13 14 15 16 17 18 19 20 21 22 23 2425
2627282930313233
343536
48 47 46 45 44 43 42 41 40 39 38 37
APG221
Figure 3-1 APG221 LQFP 48-pin pin assignment
Rev 1.2.0 APG211 8-bit CMOS Microcontroller
PRODUCT SUMMARY
APG221-SU-120-EN 6 © 2011 AppoTech Ltd
4. Pin Descriptions
Table 4-1 LQFP 48-pin pin description
Pin No. Name Type Function Other Function1 GND P Ground 2 P27 I/O GPIO SPI0DOUT0: SPI0 Data output 0 3 P21 I/O GPIO IISDI0: IIS Data input 0 4 P20 I/O GPIO IISBCLK: IIS BCLK 5 VSSIO P IO Ground 6 VDDLDO P LDO Power input 7 VDDIO P IO Power input 8 VDDADC P ADC Power input 9 VDDDAC P DAC Power input 10 DACR O DAC Right Channel 11 VCM O DAC Bandgap voltage
reference
12 DACL O DAC Left Channel 13 VSSDAC P DAC Ground 14 P03 I/O MICIN0 / AUXL0 15 P02 I/O MININ1 / AUXR0 16 P01 I/O GPIO
AUXR1 ADC5
SDDATA2: SD Data 2 UARTTX1: UART TX1
17 P00 I/O GPIO AUXL1 ADC4
SDDATA1: SD Data 1 UARTRX1: UART RX1 SPI0DI2:SPI0 Data input 0
18 P14 I/O GPIO SDDATA3: SD Data 3
T3PWM: Timer3 PWM Output T3CAP: Timer3 Capture Pin SPI0DOUT2: SPI0 Data output 2
19 P33 I/O GPIO ADC0/LVD detect
32K/system clock/XOSC12M output
20 P06 I/O GPIO ADC1
SPI0DI1:SPI0 Data Input
21 P07 I/O GPIO IR Input Port Interrupt/Wakeup
T1CAP: Timer1 Capture Pin
22 P16 I/O GPIO AM input REFCLK: IIS Reference clock
UARTTX0: UART Data Out 0 T2PWM: Timer2 PWM Output T2CAP: Timer2 Capture Pin
23 P17 I/O GPIO FM Input IISWS: IIS WS
T2CKIN: Timer2 Clock In
24 VDD P IC power and it should connect to VDDIO
25 VSSCORE P Digital Ground 26 VDDCORE P Digital Power 27 AVDD P IO Power 28 P13 I/O GPIO DP: Debug Pin 29 P11 I/O GPIO 30 P10 I/O GPIO PPWR: Parallel Port Write 31 VDDIRT P IRT 1.5V IO Power 32 IRTOSCI I IRTC 32K Oscillator
Input
33 IRTOSCO O IRTC 32K Oscillator Output
34 IRTWKO O IRTC Wake up Output 35 NC 36 P15 I/O GPIO
T3CKIN: Timer3 Clock In
APG211 8-bit CMOS Microcontroller Rev 1.2.0
PRODUCT SUMMARY
© 2011 AppoTech Ltd 7 APG221-SU-120-EN
37 P32 I/O GPIO SDDATA0: SD Data 0 38 P31 I/O GPIO SDCMD: SD Command 39 P30 I/O GPIO SDCLK: SD Clock 40 P34 I/O GPIO
XOSC12I Port Interrupt/Wakeup
T0PWM: Timer0 PWM Output UARTRX0:UART Data In 0 SPI0CLK2: SPI0 Clock2
41 P26 I/O GPIO XOSC12O
PPD6: Parallel Port Data 6 SPI0CLK0: SPI0 CLK 0
42 NC 43 P24 I/O GPIO PPD4: Parallel Port Data 4
44 NC 45 P22 I/O GPIO PPD2: Parallel Port Data 2
IISDO0:IIS Data output0 46 USBDM I/O USB Negative
Input/output
47 USBDP I/O USB Positive Input/output
48 MCLR/VPP I Master Clear, Low Active
OTP Programming Power
Rev 1.2.0 APG211 8-bit CMOS Microcontroller
PRODUCT SUMMARY
APG221-SU-120-EN 8 © 2011 AppoTech Ltd
5. Characteristics
5.1 LDO Parameters
Table 5-1 Sym Characteristics Min Typ Max Unit Conditions Vin LDO input voltage 3.2 5.0 5.5 V Vout1.8 1.8V output voltage 1.75 V Vout3.3 3.3V output voltage 3.3 V Iout1.8 1.8V output current 100 mA Iout3.3 3.3V output current 200 mA Temperature: -40oC~85 oC
5.2 PLL Parameters
Table 5-2 Sym Characteristics Min Typ Max Unit Conditions FI Frequency input - 32.768 - KHz FOUT1 Frequency output - 48 - MHz Temperature: -40oC~85 oC
5.3 I/O Parameters
Table 5-3 Symbol
Description Min Typ Max Units Conditions
VIL Low-Level input voltage - - 45% * VDDIO
V VDDIO = 3.3V
VIH High-level input voltage 60% * VDDIO
- - V VDDIO = 3.3V
RPUP0 Internal pull-up resister 0 10 KΩ VDDIO = 3.3V
RPUP1 Internal pull-up resister 1 500 Ω VDDIO = 3.3V
RPDN0 Internal pull-down resister 0 10 KΩ VDDIO = 3.3V
RPDN1 Internal pull-down resister 1 3.3 KΩ VDDIO = 3.3V
RPDN2 Internal pull-down resister 2 200 Ω VDDIO = 3.3V
RPDN3 Internal pull-down resister 3 500 Ω VDDIO = 3.3V
ILEVEL0 Level0 current driving - - 8 mA
ILEVEL1 Level1 current driving - - 24 mA
Temperature: 25 oC
5.4 OSC Parameters
Table 5-4 Sym Characteristics Min Typ Max Unit Conditions FINRT32K RT32KOSC input - 32.768 - KHz FOUTRC RC output - 1 - MHz Temperature: -40oC~85 oC
APG211 8-bit CMOS Microcontroller Rev 1.2.0
PRODUCT SUMMARY
© 2011 AppoTech Ltd 9 APG221-SU-120-EN
5.5 Current Parameters
Table 5-5 Sym Characteristics Min Typ Max Unit Conditions Istop Stop current - TBD - uA Isleep Sleep current - TBD - uA Ipd VDDLDO power down
current - TBD TBD uA
5.6 USB PHY Parameters
Table 5-6 Sym Characteristics Min Typ Max Unit Conditions RDMPUP DM pull-up resistor - 120 - KΩ RDPPUP DP pull-up resistor - 1.5 - KΩ RDMPDN DM pull-up resistor - 15 - KΩ RDPPDN DP pull-up resistor - 15 - KΩ
Rev 1.2.0 APG211 8-bit CMOS Microcontroller
PRODUCT SUMMARY
APG221-SU-120-EN 10 © 2011 AppoTech Ltd
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 block diagram
Raymond Ho
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] .