beautypg.com

Integrated circuits inc, Function control registers – Rainbow Electronics APC58120 User Manual

Page 4

background image

INTEGRATED CIRCUITS INC.--

APC58120

www.aplusinc.com.tw

Page / 18 VER1.0

4

5.Function Control Registers:

Address Name

Bit15/

Bit7

Bit14/

Bit6

Bit13/

Bit5

Bit12/

Bit4

Bit11/

Bit3

Bit10/

Bit2

Bit9/

Bit1

Bit8/

Bit0

00h

IND0[9:0]

Use contents of MIR0 to address data memory

(not a physical register)

01h

MIR0[9:0]

Indirect data memory address pointer 0

02h

IND1[9:0]

Use contents of MIR1 to address data memory

(not a physical register)

03h

MIR1[9:0]

Indirect data memory address pointer 1

04h

PC

Program Counter register

05h

SFR[7:0]

Ponrst

WT

SP

Z

AC

C

06h

Timer_A

8 bits of real timer clock/counter

07h

Timer_B

8 bits of real timer clock/counter

08h

Timer_C

8 bits of real timer clock/counter

09h

Timer_D

Fix Timer

0Ah

TCA[7:0]

TAEI TAEN

TACK

SEL

TAPRE

EN

TAPS2 TAPS1 TAPS0

0Bh

TCB[7:0]

TBEI TBEN

TBCK

SEL

TBPRE

EN

TBPS2 TBPS1 TBPS0

0Ch

TCC[7:0]

TCEI TCEN

TCCK

SEL

TCPRE

EN

TCPS2 TCPS1 TCPS0

0Dh

TCD[7:0]

TDEI TDEN

TDPS2 TDPS1 TDPS0

0Eh

RPA[15:0]

Port A data Register

0Fh

CPA[15:0]

Port A Control register

10h

RPB[7:0]

Port B data Register

11h

CPB[7:0]

Port B Control register

12h

WTC[7:0]

WTPS

C2

WTPS

C1

WTPS

C0

13h

IFR[7:0]

Timer_

DF

Timer_

CF

Timer_

BF

Timer_

AF

13h

IFR[15:8]

PortA7

_F

PortA6

_F

PortA5

_F

PortA4

_F

PortA3

_F

PortA2

_F

PortA1

_F

PortA0

_F

14h

PLLC[5:0]

PWME

N

DACE

N

PLLEN

PLLCl

ksel1

PLLCl

ksel0

15h

IPA[7:0]

PortA Interrupt control register

16h

PHA

PortA Pull High register

17h

PHB

PortB Pull High register

18h

PDA

PortA Pull Down register

19h

PDB

PortB Pull Down register

1Ah

PADC

PortA Edge Control register

1Bh TDPTRH[16]

Table Pointer Register High Word

1Ch

TDPTRL

Table Pointer Register Low Word

1Dh

DPTRH

Data Pointer Register High Word

1Eh

DPTRL

Data Pointer Register Low Word

1Fh

M1

Result of multiplier high word

20h

M0

Result of multiplier Low word

21h

C1

Channel 1 register

22h

C0

Channel 0 register