User guide

Arch Meter Corporation PS1000 Ver1.2
PS1000Rev. 1.2 May 2006
13/ 67
www.archmeter.com
4. SFR Mapping
The PS1000 has some non-standard SFR configure register for some special
blocks, like, SPI, I2C, SSP, ALU and extended interrupt controller.
The mapping of the PS1000 SFR is shown as follow. The red mark means these
SFR were not the standard SFR.
F8H IMR IPR ICR IRR ISR
F0H B
E8H
E0H ACC PDCON
D8H WDTCON
D0H PSW
C8H T2CON T2MOD RCAP2L RCAP2H TL2 TH2
C0H SCON1 SBUF1 SCON2 SBUF2
B8H IP SSPCFG1 SSPCFG2 SPICON SPISTA SPIDAT
B0H P3 I2CCKH I2CCKL I2CCON I2CSTA I2CADR I2CDAT
A8H IE SSPDXH SSPDXL SSPRXH SSPRXL SSPSTA
A0H P2 Reserved Reserved
98H SCON SBUF P5 ALU_OP A0/R0 A1/R1 A2/R2 A3/R3
90H P1 P4CON P5CON B0/R4 B1/R5 B2/R6 B3/R7
88H TCON TMOD TL0 TL1 TH0 TH1 CKCON P4
80H P0 SP DPL DPH DPL1 DPH1 DPS PCON
For the setting for each SFR control register, please reference the relative section.
(For the standard SFR, please reference the 8051 data sheet.)
P4/P5
B7 B6 B5 B4 B3 B2 B1 B0
R/W R/W R/W R/W R/W R/W R/W R/W
P4 and P5 is the extended I/O space. It can map to the P0 and P2 I/O pin location.
That is controlled by MCUCFG PORTCTRL. For the P4/P5, each bit can be set as input
or output. It is controlled by the P4CON and P5CON. “1” is for input and “0” for the
output.
P4CON/P5CON
B7 B6 B5 B4 B3 B2 B1 B0
R/W R/W R/W R/W R/W R/W R/W R/W
The other SFRs setting please reference the relative section. Here is quick