00h INDirect addressing register ( IND0 )
01h Memory Index Register (MIR0)
02h INDirect addressing register ( IND1 )
03h Memory Index Register (MIR1)
04h Program register(PC)
05h Status Flag Register ( SFR )
06h Timer_A
07h Timer_B
08h Timer_C
09h Timer_D
0Ah TCA register
0Bh TCB register
0Ch TCC register
0Dh TCD register
0Eh Port A data Register ( RPA )
0Fh Port A Control register CPA
10h Port B data Register ( RPB )
11h Port B Control register CPB
12h Watchdog Timer Control Register
13h Interrupt Flag Register(IFR)
14h PLL Control register
15h PortA Interrupt control register
16h PortA Pull High register
17h PortB Pull High register
18h PortA Pull Down register
19h PortB Pull Down register
1Ah PortA edge Control register
1Bh Table Pointer Register High Word
1Ch Table Pointer Register Low Word
1Dh Data Pointer Register High Word
1Eh Data Pointer Register Low Word
1Fh M1
20h M0
21h C1
22h C0
23h Other register
24h PIR register
25h PLLSEL register
30H~3FFH RAM
www.aplusinc.com.tw Page / 18 VER1.0
2
INTEGRATED CIRCUITS INC.--APC58120
y
4. Pin assignment :
mbol I/O Description
S
IN I 32K Oscillator resistor input
IO_VSS I Ground for IO PAD
CORE_VSS I Ground for CORE LOGIC
CORE_VDD I Power for CORE LOGIC
IO_VDD I Power for IO PAD
PA0~PA15 I/O I/O port
PB0~PB7 I/O I/O port
IO_VDD I Power for IO PAD
CORE_VDD I Power for CORE LOGIC
CORE_VSS I Ground for CORE LOGIC
IO_VSS I Ground for IO PAD
OSC1 I Crystal input
OSC2 O Crystal Output
TESTMODE I For test only
ERSTB I Chip Reset
XT_RC_SEL I Crystal or 32K oscillator select
DAC_VDD I Power for DAC
DAC_VSS I Ground for DAC
DACO O DAC output
PWMVDD I PWM VDD
PWM1O O PWM Output 1
PWMVSS I PWM VSS
PWM2O O PWM Output 2
PWMVDD I PWM VDD
ANA_VDD I Power for Analog Circuit
ANA_VSS I Ground for Analog Circuit
PLLCAP I PLL CAP input
www.aplusinc.com.tw Page / 18 VER1.0
3
INTEGRATED CIRCUITS INC.--APC58120
5.Function Control Registers:
Address Name
00h
01h
02h
03h
04h
05h
06h
07h
08h
09h
0Ah
0Bh
0Ch
0Dh
0Eh
0Fh
10h
11h
12h
13h
13h
14h
15h
16h
17h
18h
19h
1Ah
1Bh
1Ch
1Dh
1Eh
1Fh
20h
21h
22h
IND0[9:0]
MIR0[9:0]
IND1[9:0]
MIR1[9:0]
PC
SFR[7:0]
Timer_A
Timer_B
Timer_C
Timer_D
TCA[7:0]
TCB[7:0]
TCC[7:0]
TCD[7:0]
RPA[15:0]
CPA[15:0]
RPB[7:0]
CPB[7:0]
WTC[7:0]
IFR[7:0]
IFR[15:8]
PLLC[5:0]
IPA[7:0]
PHA
PHB
PDA
PDB
PADC
TDPTRH[16]
TDPTRL
DPTRH
DPTRL
M1
M0
C1
C0
Bit15/
Bit7
Bit14/
Bit6
Bit13/
Bit5
Bit12/
Bit4
Bit11/
Bit3
Bit10/
Bit2
Bit9/
Bit1
Bit8/
Bit0
Use contents of MIR0 to address data memory
(not a physical register)
Indirect data memory address pointer 0
Use contents of MIR1 to address data memory
(not a physical register)
Indirect data memory address pointer 1
Program Counter register
PonrstWT SP Z AC C
8 bits of real timer clock/counter
8 bits of real timer clock/counter
8 bits of real timer clock/counter
Fix Timer
TAEI TAEN
TBEI TBEN
TCEI TCEN
TACK
SEL
TBCK
SEL
TCCK
SEL
TAPRE
EN
TBPRE
EN
TCPRE
EN
TAPS2 TAPS1 TAPS0
TBPS2 TBPS1 TBPS0
TCPS2 TCPS1 TCPS0
TDEI TDENTDPS2 TDPS1 TDPS0
Port A data Register
Port A Control register
Port B data Register
Port B Control register
PortA7
_F
PortA6
_F
PortA5
_F
PortA4
PWMEN DACE
_F
Timer_
DF
PortA3
_F
N
WTPS
C2
Timer_
CF
PortA2
_F
PLLEN
WTPS
C1
Timer_
BF
PortA1
_F
PLLCl
ksel1
WTPS
C0
Timer_
AF
PortA0
_F
PLLCl
ksel0
PortA Interrupt control register
PortA Pull High register
PortB Pull High register
PortA Pull Down register
PortB Pull Down register
PortA Edge Control register
Table Pointer Register High Word
Table Pointer Register Low Word
Data Pointer Register High Word
Data Pointer Register Low Word
Result of multiplier high word
Result of multiplier Low word