AM4FG Series DATA SHEET
Alpha Microelectronics Corp.
AM4FG Series
DATA SHEET
佑華微電子股份有限公司
Alpha Microelectronics Corp.
新竹市光復路二段 295 號 9 樓之 1 號
電話: 03-573 6660
傳真: 03-573 6661
9F-1, 295, Sec. 2, Kuang Fu Rd., Hsinchu, Taiwan
Tel : +886-3-573 6660
Fax: +886-3-573 6661
www.ealpha.com.tw
www.ealpha.com.tw
Rev 1.10
2010/12/23
AM4FG Series
Revision History
Revision
Date
Description
Page
1.00
2010/7/26 New release.
1.10
2010/12/23 Add Typical Rosc and VDD for RM Mode Oscillator of AM4FG170~063x
-
2
Rev 1.10
11
2010/12/23
AM4FG Series
Table of Contents
1.
General Description ........................................................................................................... 4
2.
Features .............................................................................................................................. 4
3.
Memory ............................................................................................................................... 6
3.1 ROM ...........................................................................................................................................6
3.2 SRAM .........................................................................................................................................6
4.
Pin Description ................................................................................................................... 7
5.
Electrical Characteristics .................................................................................................. 8
5.1 Absolute Maximum Rating..........................................................................................................8
5.2 DC Characteristics......................................................................................................................9
5.3 Typical Rosc and VDD for RM Mode Oscillator of AM4FG340x and AM4FG255x ...................10
5.4 Typical Rosc and VDD for RM Mode Oscillator of AM4FG170~063x....................................... 11
5.5 Typical DAC Output Current of AM4FGxxxx ( Full Scale for each DAC) ..................................12
6.
Application Circuit (AM4FGxxx)...................................................................................... 13
7.
Bonding Diagram ............................................................................................................. 17
3
Rev 1.10
2010/12/23
AM4FG Series
1 General Description
The AM4FGxxxx series are very low cost midi & voice synthesizers with 4-bit microprocessor. They have
various features including 4-bit ALU, ROM, RAM, I/O ports, timers, clock generator, MIDI and voice synthesizer,
current D/A and PWM outputs, etc. The audio synthesizer contains eight channels. Furthermore, they consist of
60 instructions in these devices. With CMOS technology, halt and standby function can minimize power
dissipation. Their architectures are similar to RISC, with two stages of instruction pipeline. Most of instructions
are executed in a single cycle, except for few instructions that need two or three instruction cycles.
2 Features
(1) Single power supply can operate from 2.2V to 5.5V at 8MHz, or from 3V to 5.5V at 16MHz.
(2) Program ROM can be up to 1024k x 12-bit. (00000H~FFFFFH, 16 banks)
(3) There are 8 bodies in AM4FG series:
Product
Voice Duration (sec)
ROM Size (12-bit)
AM4FG063x
63
192k
AM4FG073x
73
224k
AM4FG084x
84
256k
AM4FG106x
106
320k
AM4FG127x
127
384k
AM4FG170x
170
512k
AM4FG255x
255
768k
AM4FG340x
340
1024k
(4) Data SRAM can be up to 448 x 4-bit. (20H~FFH per page, total 2 pages)
(5) There are total 32 I/O pins, PRA/PRB/PRC/PRD/PRE/PRF/PRG/PRH. Each pin of all ports can be wake-up
port when they are configured as input or IO mode.
(6) There are two kinds of clock sources in the device of AM4F.
a) Resistor mode (RM). When using internal resistor, OSC1 must connect to GND.
b) High frequency crystal mode (HM).
(7) Halt and Standby Mode
System clock can be totally stopped in halt mode, and cause all functions stop to save power. The Standby
mode is similar to halt mode, except the system clock is still working. However, it is required to execute
STB instruction to enter standby mode. Once the AM4F IC is under the standby mode and running for a
period of time, the “wakeup” signal, which is generated by internal interrupt or external input change, can
lead AM4F IC into the normal operating mode. Under slower system clock, that is standby mode, the power
consumption is around [email protected] and [email protected] under the condition of 8MHz (Rosc=390Kohm). Hence,
the power-saving program counter function can be applied in this mode. For details, please refer to Alpha’s
Application Note number APN-05007.
4
Rev 1.10
2010/12/23
AM4FG Series
(8) Each I/O pin can be one of four mask options: (Mask Option)
a) Floating input
b) IO with input weak pull high (Register Control)
c) Input with weak pull high
d) Output
(9) There are two ports for large current output: PRA0~3, PRF0~3.
(10) Built-in infrared (IR) carrier output: (Mask Option)
There are built-in infrared carrier output ports in the device that can be taken as transmission port in
wireless transmission. The built-in IR carrier output can be optioned to high/low carry and be specified
frequency with setting its timer value. User can set PRA[1] or PRB[1] as IR carrier pin.
(11) Voice and Timbre encoding method:
a) 6-bit Alpha ALS-PCM encoding. (Two samples for one word.)
b) 8-bit PCM encoding. (One sample for one word, 4 bits are unused for audio data.)
(12) MIDI and voice output:
There are eight output channels. User can specify any combination of mixing channels for both DAC1 or
DAC2. Each channel can be configured as pure wave play or automatic repeat to easy the implementation
of MIDI.
(13) There are two kinds of audio output method. User can select one type of audio output by programming
special function registers SPDRV ($11). (Register Control)
a) One 9/10 bits PWM output. (Mask Option)
b) Two 10 bits DAC output.
(14) 16-level volume control (Register Control)
There is a 16-level volume control for both PWM and DAC. It is used to control the volume level and to
minimize the mixing saturation.
(15) Eight-level current output (Mask Option)
There is a mechanism in DAC output in order to increase elasticity of DAC output driving current. User can
utilize the current control to change DC working point of DAC output for different bipolar transistor.
(16) Watch Dog Timer (WDT)
(17) External Reset: User can set PRA[3] or PRB[3] as reset pin. (Mask Option)
(18) There are 4 methods of internal reset:
a) Power-on reset
b) Watchdog reset
c) Low voltage reset
d) External reset
(19) Number of instruction: 60
5
Rev 1.10
2010/12/23
AM4FG Series
3 Memory
3.1 ROM
The ROM memory could be divided into three portions. The first portion 0x0~0xF is addressed for interrupt
in normal mode. The second portion 0x10~0x3FF is reserved for test program. The last portion
0x400~0XFFFFF located in the address range that could be accessed by program counter (PC) and others’
pointer simultaneously. Address bits[17:16] is accessed by setting PCH value in SFR$14 to switch banks.
That is, each bank has memory space 64K words. This portion could be used to store program and data.
Figure 3.1 shows the ROM map.
ROM Space
$00000
Interrupt Vector
$0000F
$00010
Test Program
$003FF
$00400
Program & Data Space
$FFFFF
FIGURE 3.1: ROM Map of AM4FGxxxx
3.2 SRAM
Each of the two SRAM pages is range form 0x20 to 0xFF, that is 224*4-bit for a page. 0x00~0x1F is left for
special function register. Instruction SRB, RRB is limited to apply to SFR and first 32 nibbles SRAM
(0x20~0x3F).
Register Space
$00
$1F
$20
$3F
$40
Special Function Register
SRB, RRB only apply to SFR and first
32 nibbles GPR
Total 192 nibbles GPR
$FF
FIGURE 3.2: SRAM Map of AM4F
6
Rev 1.10
2010/12/23
AM4FG Series
4 Pin Description
Pad Name
Attr.
Description
I/O
Four I/O modes can be optioned for each I/O pin: (1) Floating input mode, (2)
IO mode, (3) pull-high input mode, (4) output mode.
Or 4 kinds of output current: (1) Normal current, (2) Constant current, (3)
Large current, (4) Large and Constant current.
I/O
Four I/O modes can be optioned for each I/O pin: (1) Floating input mode, (2)
IO mode, (3) pull-high input mode, (4) output mode.
Or 4 kinds of output current: (1) Normal current, (2) Constant current, (3)
Large current, (4) Large and Constant current.
Or mask_option selected as an IR Carrier Output with programmable 38k /
56kHz
I/O
Four I/O modes can be optioned for each I/O pin: (1) Floating input mode, (2)
IO mode, (3) pull-high input mode, (4) output mode.
Or 4 kinds of output current: (1) Normal current, (2) Constant current, (3)
Large current, (4) Large and Constant current.
Or Mask_option selected as an external RESET pin with weak pull-high
capability.
I/O
Four I/O modes can be optioned for each I/O pin: (1) Floating input mode, (2)
IO mode, (3) pull-high input mode, (4) output mode.
Or crystal output for HM mode.
I/O
Four I/O modes can be optioned for each I/O pin: (1) Floating input mode, (2)
IO mode, (3) pull-high input mode, (4) output mode.
Or mask_option selected as an IR Carrier Output with programmable 38k /
56kHz
PRB3 / Reset
I/O
Four I/O modes can be optioned for each I/O pin: (1) Floating input mode, (2)
IO mode, (3) pull-high input mode, (4) output mode.
Or Mask_option selected as an external RESET pin with weak pull-high
capability.
PRB2
PRC0~3
PRD0~3
PRE0~3
PRG0~3
PRH0~3
I/O
Four I/O modes can be optioned for each I/O pin: (1) Floating input mode, (2)
IO mode, (3) pull-high input mode, (4) output mode.
PRF0~3
I/O
Four I/O modes can be optioned for each I/O pin: (1) Floating input mode, (2)
IO mode, (3) pull-high input mode, (4) output mode.
Or 4 kinds of output current: (1) Normal current, (2) Constant current, (3)
Large current, (4) Large and Constant current.
OSC1
I
R oscillator input for RM mode, or crystal input for HM mode.
PWM1/DA1
O
PWM1 output, Current Output of Audio 1.
PWM2/DA2
O
PWM2 output, Current Output of Audio 2.
VDD1~7
Power
Positive power supply.
GND1~5
Power
Ground Potential.
PRA0 / PRA2
PRA1 / IR
PRA3 / Reset
PRB0 / OSC2
PRB1 / IR
7
Rev 1.10
2010/12/23
AM4FG Series
5 Electrical Characteristics
The Characteristics of AM4FG series are described in the following table. All the data are measured in the room
temperature. Different process lot or testing condition may cause variation of data result.
5.1 Absolute Maximum Rating
SYMBOL
RATING
UNIT
Vss ~ VDD
Vin (for all input)
Vout (for all output)
Top (Operating)
Tst (Storage)
-0.5 ~ +5.5
Vss-0.3 < Vin < VDD+0.3
GND < Vout < VDD
0 ~ +70
-25 ~ +85
V
V
V
℃
℃
8
Rev 1.10
2010/12/23
AM4FG Series
5.2 DC Characteristics
SYMBOL
PARAMETER
VDD
Operating voltage
Iht
Isb
Halt
Supply current
Iop
Iil
Ioh
Iol
Iol
Iol
Iol
Standby
Operating
Input current
(Internal weak
pull-high)
Option 0
Option 1
Output high current
Output low current
(disable large current /
disable constant current)
Output low current
(enable large current /
disable constant current)
Output low current
(disable large current /
enable constant current)
Output low current
(enable large current /
enable constant current)
VDD
MIN.
2.2
3
TYP.
3
4.5
MAX. UNIT
5.5
V
5.5
1
2
uA
1
2
3
4.5
3
4.5
3
4.5
3
4.5
3
4.5
3
4.5
3
4.5
3
4.5
3
4.5
90
180
105
203
3
6
3.2
6.5
-3.8
-10
-7.5
-20
-3.2
-8
3
6
Vol=0.4V
4.5
14.4
Vol=0.8V
3
12
Standby mode
8MHz, RM
uA
Standby mode
16MHz, RM
I/O No Loading
8MHz, RM
I/O No Loading
16MHz, RM
mA
uA
Vil=0v
Voh=2.6v
Voh=3.7v
Vol=0.4V
mA
4.5
28
3
6.1
Vol=0.4V
4.5
8.7
Vol=0.8V
3
11.9
Vol=0.4V
4.5
17.3
Vol=0.8V
IPWM
PWM output current (peak)
3
Cout
DA1 and DA2 output current
3
4.5
0.96 ~ 4.06
1.06 ~ 4.34
mA
dF/F
Frequency stability
3.4
±3%
%
dF/F
Frequency stability
5.1
±3%
%
dF/F
Fosc variation
dF/F
Fosc variation
dF/F
FSTB variation
B
CONDITION
8 MHz
16MHz
Halt (Sleep) mode
8MHz, RM
Halt (Sleep) mod
16MHz, RM
100
3
4.5
3
4.5
3
9
Vol=0.8V
mA
Load=8 ohms
8MHz, RM
(Full scale)
Fosc(3.4v) - Fosc(2.2v)
Fosc (3.4v)
Fosc(5.1v) - Fosc(2.7v)
Fosc (5.1v)
7.76
8
8.24
MHz
8MHz±3%
15.52
16
16.48
MHz
16MHz±3%
%
Standby mode, 1MHz
± 20
Rev 1.10
2010/12/23
AM4FG Series
5.3 Typical Rosc and VDD for RM Mode Oscillator of AM4FG340x and AM4FG255x
8M Oscillator Frequency
VDD
2.03V
Rosc=390K
7.63 MHz
Rin
7.59 MHz
2.25V
7.82 MHz
7.81 MHz
2.5V
7.93 MHz
7.93 MHz
3.0V
7.95 MHz
7.97 MHz
3.5V
7.94 MHz
7.97 MHz
4V
7.91 MHz
7.95 MHz
4.5V
7.88 MHz
7.94 MHz
5V
7.86 MHz
7.95 MHz
5.5V
7.86 MHz
7.95 MHz
6V
7.89 MHz
7.98 MHz
16M Oscillator Frequency
Rosc=200K
Rin
15.68 MHz
15.93 MHz
15.85 MHz
16.13 MHz
16.19 MHz
15.96 MHz
16.19 MHz
15.97 MHz
16.15 MHz
15.92 MHz
16.13 MHz
15.91 MHz
16.12 MHz
15.90 MHz
16.14 MHz
15.88 MHz
VDD
2.7V
3.0V
3.5V
4V
4.5V
5V
5.5V
6V
Frequency (M Hz)
Frequency vs VDD
17
16
15
14
13
12
11
10
9
8
7
Rin for 8M
Rosc= 390K
Rosc= 200K
Rin for 16M
2
2.5
3
3.5
4
4.5
5
5.5
6
6.5
VDD (volt)
Frequency vs Rosc (VDD=3V)
17
Frequency (M Hz)
15
13
11
9
7
5
3
150
250
350
450
550
650
750
850
Rosc (K ohms)
10
Rev 1.10
2010/12/23
AM4FG Series
5.4 Typical Rosc and VDD for RM Mode Oscillator of AM4FG170x, AM4FG127x,
AM4FG106x, AM4FG084x, AM4FG073x and AM4FG063x
8M Oscillator Frequency
Rosc=430K
Rin
VDD
2.0V
7.82 MHz
7.62 MHz
2.5V
8.01 MHz
7.91 MHz
3.0V
8.09 MHz
8.01 MHz
3.5V
8.21 MHz
8.05 MHz
4V
8.15 MHz
8.06 MHz
4.5V
8.25 MHz
8.11 MHz
5V
8.17 MHz
8.08 MHz
5.5V
8.13 MHz
8.13 MHz
6V
8.33 MHz
8.16 MHz
Rosc=220K
15.46 MHz
15.31 MHz
15.69 MHz
15.61 MHz
16.00 MHz
16.00 MHz
15.76 MHz
16.33 MHz
2.7V
3.0V
3.5V
4V
4.5V
5V
5.5V
6V
Frequency vs
Frequency (M Hz)
16M Oscillator Frequency
VDD
Rin
15.53 MHz
15.69 MHz
15.69 MHz
16.00 MHz
16.00 MHz
15.84 MHz
16.49 MHz
16.16 MHz
VDD
17
16
15
14
13
12
11
10
9
8
7
Rin for 8M
Rosc=430K
Rosc=220K
Rin for 16M
2
2.5
3
3.5
4
4.5
5
5.5
6
6.5
VDD (volt)
Frequency vs Rosc (VDD=3V)
Frequenc y (M Hz)
21
19
17
15
13
11
9
7
5
3
150
200
250
300
350
400
450
500
550
600
Ros c (K ohms)
11
Rev 1.10
2010/12/23
AM4FG Series
5.5 Typical DAC Output Current of AM4FGxxxx ( Full Scale for each DAC)
Option
1
2
3
4
5
6
7
8
DAC Current
(VDD=3V)
0.96 mA
1.42 mA
1.90 mA
2.34 mA
2.80 mA
3.22 mA
3.66 mA
4.06 mA
DAC Current
(VDD=4.5V)
1.06 mA
1.52 mA
2.02 mA
2.56 mA
3.02 mA
3.50 mA
3.90 mA
4.34 mA
12
Rev 1.10
2010/12/23
AM4FG Series
6 Application Circuit (AM4FGxxx)
FIGURE 6-1: The application circuit for ER Mode Oscillator and PWM output.
13
Rev 1.10
2010/12/23
AM4FG Series
FIGURE 6-2: The application circuit for IRC Mode Oscillator and PWM output.
14
Rev 1.10
2010/12/23
AM4FG Series
FIGURE 6-3: The application circuit for Crystal Mode Oscillator and DAC output.
15
Rev 1.10
2010/12/23
AM4FG Series
FIGURE 6-4: The application circuit for Crystal Mode Oscillator and DAC output.
16
Rev 1.10
2010/12/23
AM4FG Series
7 Bonding Diagram
47
46
45
44
43
42
41
40
GND5
PRH3
PRH2
PRH1
PRH0
PRG3
PRG2
PRG1
.
.
.
.
38
39
PRG0 VDD7
.
.
.
.
ROM
1
VDD1
2
PRA0
3
PRA1
4
PRA2
5
PRA3
6
PRC0
7
PRC1
8
9
GND1
PRC2
PRC3
10
PRD0
11
PRD2
PRD1
12
VDD2
PRD3
13
14
15
PRE1
PRE0
16
PRE3
PRE2
17
18
19
PRB0
20
GND2
OSC1
21
22
PRB1
23
PRB2
24
PRF0
VDD3
PRB3
25
26
27
PRF1
28
PRF2
29
PWM1/DA1
37
VDD6
36
PWM2/DA2
35
GND4
34
VDD5
GND3
33
PRF3
30
31 32
VDD4
Note: The IC substrate must be connected to GND.
17
Rev 1.10
2010/12/23
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertisement