Philips P80C575EHBB, P87C575EHPN, P87C575EHLKA, P87C575EHFFA, P87C575EHBB Datasheet

...
0 (0)

INTEGRATED CIRCUITS

80C575/83C575/87C575

80C51 8-bit microcontroller family

8K/256 OTP/ROM/ROMless, 4 comparator, failure detect circuitry, watchdog timer

Product specification

1998 May 01

Supersedes data of 1998 Jan 27

IC20 Data Handbook

m n r

Philips Semiconductors Product specification

80C51 8-bit microcontroller family

80C575/83C575/

8K/256 OTP/ROM/ROMless, 4 comparator, failure detect circuitry, watchdog timer

87C575

 

 

 

 

DESCRIPTION

The Philips 80C575/83C575/87C575 is a high-performance microcontroller fabricated with Philips high-density CMOS technology. The Philips CMOS technology combines the high speed and density characteristics of HMOS with the low power attributes of CMOS. Philips epitaxial substrate minimizes latch-up sensitivity.

The 8XC575 contains an 8k × 8 ROM (83C575) EPROM (87C575), a 256 × 8 RAM, 32 I/O lines, three 16-bit counter/timers, a Programmable Counter Array (PCA), a seven-source, two-priority level nested interrupt structure, an enhanced UART, four analog comparators, power-fail detect and oscillator fail detect circuits, and on-chip oscillator and clock circuits.

In addition, the 8XC575 has a low active reset, and the port pins are reset to a low level. There is also a fully configurable watchdog timer, and internal power on clear circuit. The part includes idle mode and power-down mode states for reduced power consumption.

FEATURES

80C51 based architecture

±8k × 8 ROM (83C575)

±8k × 8 EPROM (87C575)

±ROMless (80C575)

±256 × 8 RAM

±Three 16-bit counter/timers

±Programmable Counter Array

±Enhanced UART

±Boolean processor

±Oscillator fail detect

±Low active reset

±Asynchronous low port reset

±Schmitt trigger inputs

±4 analog comparators

±Watchdog timer

±Low VCC detect

Memory addressing capability

± 64k ROM and 64k RAM

Power control modes:

±Idle mode

±Power-down mode

CMOS and TTL compatible

4.0 to 16MHz

Extended temperature ranges

OTP package available

PIN CONFIGURATIONS

CMP0+/P1.0/T2

 

1

 

 

40

VDD

CMP0-/P1.1/T2EX

 

2

 

 

39

P0.0/AD0

ECI/P1.2

 

3

 

 

38

P0.1/AD1

CMP0/CEX0/P1.3

4

 

 

37

P0.2/AD2

CMP1/CEX1/P1.4

5

 

 

36

P0.3/AD3

CMP2/CEX2/P1.5

6

 

 

35

P0.4/AD4

CMP3/CEX3/P1.6

7

 

 

34

P0.5/AD5

CEX4/P1.7

 

8

 

 

33

P0.6/AD6

 

RST

 

9

 

 

32

P0.7/AD7

RxD/P3.0

 

10

 

DUAL

31

EA/VPP

TxD/P3.1

 

11

 

IN-LINE

30

ALE/PROG

 

PACKAGE

INT0/P3.2

 

12

 

 

29

PSEN

INT1/P3.3

 

13

 

 

28

P2.7/A15

CMPR-/T0/P3.4

 

14

 

 

27

P2.6/A14

CMP1+/T1/P3.5

 

15

 

 

26

P2.5/A13

CMP2+/WR/P3.6

16

 

 

25

P2.4/A12

CMP3+/RD/P3.7

17

 

 

24

P2.3/A11

 

XTAL2

 

18

 

 

23

P2.2/A10

 

XTAL1

 

19

 

 

22

P2.1/A9

 

VSS

 

20

 

 

21

P2.0/A8

6

1

40

 

 

44

34

7

 

 

 

39

1

 

33

17

LCC

 

 

 

 

PQFP

 

 

 

 

 

 

 

 

 

 

 

29

11

 

23

 

 

 

 

 

 

 

18

28

 

 

12

22

 

 

 

 

 

 

 

SU00234

ORDERING INFORMATION

ROMless

ROM

EPROM1

 

TEMPERATURE RANGE °C AND PACKAGE

FREQ

DRAWING

 

(MHz)

NUMBER

 

 

 

 

 

 

 

 

 

 

 

 

P80C575EBPN

P83C575EBPN

P87C575EBPN

OTP

0 to +70, 40-Pin Plastic Dual In-line Package

16

SOT129-1

 

 

 

 

 

 

 

P80C575EBAA

P83C575EBAA

P87C575EBAA

OTP

0 to +70, 44-Pin Plastic Leaded Chip Carrier

16

SOT187-2

 

 

 

 

 

 

 

P80C575EHAA

P83C575EHAA

P87C575EHAA

OTP

±40 to +125, 44-Pin Plastic Leaded Chip Carrier

16

SOT187-2

 

 

 

 

 

 

 

P80C575EBBB

P83C575EBBB

P87C575EBBB

OTP

0 to +70, 44-Pin Plastic Quad Flat Pack

16

SOT307-2

 

 

 

 

 

 

 

NOTE:

1. OTP - One Time Programmable EPROM.

1998 May 01

2

853-1684 19332

Philips Semiconductors Product specification

80C51 8-bit microcontroller family

80C575/83C575/

8K/256 OTP/ROM/ROMless, 4 comparator, failure detect circuitry, watchdog timer

87C575

 

 

BLOCK DIAGRAM

 

 

 

 

P0.0-P0.7

P2.0-P2.7

 

 

 

 

 

PORT 0

PORT 2

 

 

 

 

 

DRIVERS

DRIVERS

 

VCC

 

 

 

 

 

 

VSS

 

 

 

 

 

 

 

RAM ADDR

RAM

PORT 0

PORT 2

ROM/

 

REGISTER

LATCH

LATCH

EPROM

 

 

 

B

 

ACC

 

 

STACK

 

REGISTER

 

 

 

POINTER

 

 

 

 

 

 

 

 

 

 

 

PROGRAM

 

 

 

 

 

TMP1

ADDRESS

 

 

 

 

TMP2

REGISTER

 

 

 

 

ALU

 

BUFFER

 

 

 

 

 

 

 

 

 

 

 

SFRs

PC

 

 

 

 

PSW

TIMERS

INCRE-

 

 

 

 

 

PCA

MENTER

 

 

 

 

 

 

PROGRAM

 

 

 

 

 

 

COUNTER

PSEN

 

INSTRUCTION

REGISTER

 

 

 

ALE

TIMING

 

 

DPTR

EA

AND

 

 

 

CONTROL

 

 

 

RST

 

 

 

 

 

PD

 

 

PORT 1

 

PORT 3

 

 

 

 

LATCH

 

LATCH

 

OSCILLATOR

 

 

 

 

 

 

 

PORT 1

 

PORT 3

 

 

 

 

DRIVERS

 

DRIVERS

 

XTAL1

 

XTAL2

 

 

 

 

 

 

 

P1.0-P1.7

 

P3.0-P3.7

 

 

 

 

 

 

SU00238

1998 May 01

 

 

 

 

3

 

Philips Semiconductors Product specification

80C51 8-bit microcontroller family

80C575/83C575/

8K/256 OTP/ROM/ROMless, 4 comparator, failure detect circuitry, watchdog timer

87C575

 

 

 

CERAMIC AND PLASTIC LEADED

PLASTIC QUAD FLAT PACK

 

CHIP CARRIER PIN FUNCTIONS

PIN FUNCTIONS

 

 

6

1

40

 

 

7

 

 

39

 

 

LCC

 

 

 

17

 

 

29

 

18

 

28

 

Pin

Function

 

Pin

Function

1

NC*

23

NC*

2

T2/P1.0/CMP0+

24

P2.0/A8

3

T2EX/P1.1/CMP0±

25

P2.1/A9

4

P1.2/ECI

26

P2.2/A10

5

P1.3/CMP0/CEX0

27

P2.3/A11

6

P1.4/CMP1/CEX1

28

P2.4/A12

7

P1.5/CMP2/CEX2

29

P2.5/A13

8

P1.6/CMP3/CEX3

30

P2.6/A14

9

P1.7/CEX4

31

P2.7/A15

10

 

 

 

 

32

 

 

 

 

 

 

RST

PSEN

11

RxD/P3.0

33

 

 

 

ALE/PROG

12

 

NC*

34

NC*

13

 

TxD/P3.1

35

 

 

 

EA/VPP

14

 

 

 

36

P0.7/AD7

 

INT0/P3.2

15

 

 

 

37

P0.6/AD6

 

INT1/P3.3

16

 

T0/P3.4/CMPR±

38

P0.5/AD5

17

 

T1/P3.5/CMP1+

39

P0.4/AD4

18

 

 

WR/P3.6/CMP2+

40

P0.3/AD3

 

 

19

 

 

RD/P3.7/CMP3+

41

P0.2/AD2

 

 

20

 

XTAL2

42

P0.1/AD1

21

 

XTAL1

43

P0.0/AD0

22

 

VSS

44

VCC

 

44

 

34

 

 

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

33

 

 

 

 

 

 

 

 

PQFP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

11

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

23

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

12

 

22

 

 

 

 

 

 

Pin

 

Function

Pin

 

Function

1

 

P1.5/CMP2/CEX2

23

 

P2.5/A13

2

 

P1.6/CMP3/CEX3

24

 

P2.6/A14

3

 

P1.7/CEX4

25

 

P2.7/A15

4

 

 

 

 

 

 

26

 

 

 

 

 

 

 

RST

 

PSEN

5

 

RxD/P3.0

27

 

 

 

 

 

 

 

ALE/PROG

6

 

NC*

28

 

NC*

7

 

TxD/P3.1

29

 

 

 

 

 

EA/VPP

8

 

 

 

 

 

30

 

P0.7/AD7

 

INT0/P3.2

 

9

 

 

 

 

 

31

 

P0.6/AD6

 

INT1/P3.3

 

10

 

T0/P3.4/CMPR±

32

 

P0.5/AD5

11

 

T1/P3.5/CMP1+

33

 

P0.4/AD4

12

 

 

 

 

WR/P3.6/CMP2+

34

 

P0.3/AD3

 

 

 

 

 

13

 

 

 

RD/P3.7CMP3+

35

 

P0.2/AD2

 

 

 

14

 

XTAL2

36

 

P0.1/AD1

15

 

XTAL1

37

 

P0.0/AD0

16

 

VSS

38

 

VCC

17

 

NC*

39

 

NC*

18

 

P2.0/A8

40

 

T2/P1.0/CMP0+

19

 

P2.1/A9

41

 

T2EX/P1.1/CMP0±

20

 

P2.2/A10

42

 

P1.2/ECI

21

 

P2.3/A11

43

 

P1.3/CMP0/CEX0

22

 

P2.4/A12

44

 

P1.4/CMP1/CEX1

* NO INTERNAL CONNECTION

SU00235

* NO INTERNAL CONNECTION

SU00236

LOGIC SYMBOL

CMPR±

CMP1+

CMP2+

CMP3+

SECONDARY FUNCTIONS

VCC

XTAL1

XTAL2

RST

EA/VPP

PSEN

ALE/PROG

RxD

TxD

 

INT0

3

INT1

PORT

T0

 

T1

 

WR

 

RD

 

VSS

0

ADDRESS AND

PORT

DATA BUS

 

 

T2

CMP0+

1

T2EX

CMP0±

 

ECI

PORT

 

 

CMP0/CEX0

 

 

 

 

CMP1/CEX1

 

 

CMP2/CEX2

 

 

CMP3/CEX3

 

 

CEX4

2

 

 

PORT

ADDRESS BUS

 

 

 

SU00237

1998 May 01

4

Philips Semiconductors Product specification

80C51 8-bit microcontroller family

80C575/83C575/

8K/256 OTP/ROM/ROMless, 4 comparator, failure detect circuitry, watchdog timer

87C575

 

 

 

 

 

 

 

 

 

PIN DESCRIPTIONS

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PIN NUMBER

 

 

 

 

 

 

 

 

 

 

 

 

MNEMONIC

DIP

LCC

QFP

TYPE

NAME AND FUNCTION

 

 

 

 

 

 

 

 

VSS

20

22

16

I

Ground: 0V reference.

 

VCC

40

44

38

I

Power Supply: This is the power supply voltage for normal, idle, and power-down

 

 

 

 

 

operation.

 

 

P0.0-0.7

39-32

43-36

37-30

I/O

Port 0: Port 0 is an open-drain bidirectional I/O port. Port 0 pins that have 1s written to them

 

 

 

 

 

float and can be used as high-impedance inputs. Port 0 is also the multiplexed low-order

 

 

 

 

 

address and data bus during accesses to external program and data memory. In this

 

 

 

 

 

application, it uses strong internal pull-ups when emitting 1s. Port 0 also receives code

 

 

 

 

 

bytes during EPROM programming and outputs code bytes during program verification.

 

 

 

 

 

External pull-ups are required during program verification. During reset, port 0 will be

 

 

 

 

 

asynchronously driven low and will remain low until written to by software. All port 0 pins

 

 

 

 

 

have Schmitt trigger inputs with 200mV hysteresis. A weak pulldown on port 0 guarantees

 

 

 

 

 

positive leakage current (see DC Electrical Characteristics: IL1).

 

P1.0-P1.7

1-8

2-9

40-44

I/O

Port 1: Port 1 is an 8-bit bidirectional I/O port. Port 1 pins have internal pull-ups such that

 

 

 

1-3

 

pins that have 1s written to them can be used as inputs but will source current when

 

 

 

 

 

externally pulled low (see DC Electrical Characteristics: IIL). Port 1 receives the low-order

 

 

 

 

 

address byte during program memory verification and EPROM programming. During reset,

 

 

 

 

 

port 1 will be asynchronously driven low and will remain low until written to by software. All

 

 

 

 

 

port 1 pins have Schmitt trigger inputs with 50mV hysteresis. Port 1 pins also serve

 

 

 

 

 

alternate functions as follows:

 

 

1

2

40

I/O

P1.0

T2

Timer 2 external I/O ± clockout (programmable)

 

 

 

 

 

 

 

CMP0+

Comparator 0 positive input

 

 

2

3

41

I

P1.1

T2EX

Timer 2 capture input

 

 

 

 

 

 

 

CMP0- Comparator 0 negative input

 

 

3

4

42

I

P1.2

ECI

PCA count input

 

 

4

5

43

I/O

P1.3

CEX0

PCA module 0 external I/O

 

 

 

 

 

 

 

CMP0

Comparator 0 output

 

 

5

6

44

I/O

P1.4

CEX1

PCA module 1 external I/O

 

 

 

 

 

 

 

CMP1

Comparator 1 output

 

 

6

7

1

I/O

P1.5

CEX2

PCA module 2 external I/O

 

 

 

 

 

 

 

CMP2

Comparator 2 output

 

 

7

8

2

I/O

P1.6

CEX3

PCA module 3 external I/O

 

 

 

 

 

 

 

CMP3

Comparator 3 output

 

 

8

9

3

I/O

P1.7

CEX4

PCA module 4 external I/O

 

P2.0-P2.7

21-28

24-31

18-25

I/O

Port 2: Port 2 is an 8-bit bidirectional I/O port with internal pull-ups. Port 2 pins that have 1s

 

 

 

 

 

written to them can be used as inputs, but will source current when externally pulled low

 

 

 

 

 

(see DC Electrical Characteristics: IIL). Port 2 emits the high-order address byte during

 

 

 

 

 

accesses to external program and data memory that use 16-bit addresses (MOVX

 

 

 

 

 

@DPTR). In this application, it uses strong internal pull-ups when emitting 1s. Port 2

 

 

 

 

 

receives the high-order address byte during program verification and EPROM programming.

 

 

 

 

 

During reset, port 2 will be asynchronously driven low and will remain low until written to by

 

 

 

 

 

software. Port 2 can be made open drain by writing to the P2OD register (AIH). In open

 

 

 

 

 

drain mode, weak pulldowns on port 2 guarantee positive leakage current (see DC

 

 

 

 

 

Electrical Characteristics IL1).

 

P3.0-P3.7

10-17

11,

5,

I/O

Port 3: Port 3 is an 8-bit bidirectional I/O port with internal pull-ups. Port 3 pins except P3.1

 

 

13-19

7-13

 

that have 1s written to them can be used as inputs but will source current when externally

 

 

 

 

 

pulled low (see DC Electrical Characteristics: IIL). P3.1 will be a high impedance pin except

 

 

 

 

 

while transmitting serial data, in which case the strong pull-up will remain on continuously

 

 

 

 

 

when outputting a 1 level. The P3.1 output drive level when transmitting can be set to one of

 

 

 

 

 

two levels by the writing to the P3.1 register bit. During reset all pins (except P3.1) will be

 

 

 

 

 

asynchronously driven low and will remain low until written to by software. All port 3 pins

 

 

 

 

 

have Schmitt trigger inputs with 200mV hysteresis, except P3.2 and P3.3, which have 50mV

 

 

 

 

 

hysteresis. Port 3 pins serve alternate functions as follows:

 

1998 May 01

5

Philips Semiconductors Product specification

 

80C51 8-bit microcontroller family

 

 

 

 

 

 

80C575/83C575/

 

8K/256 OTP/ROM/ROMless, 4 comparator, failure detect circuitry, watchdog timer

 

87C575

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PIN DESCRIPTIONS (Continued)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PIN NUMBER

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MNEMONIC

DIP

LCC

QFP

TYPE

NAME AND FUNCTION

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Port 3: (continued)

 

 

 

 

 

 

 

 

 

10

11

5

I

P3.0

 

RxD

Serial receive port

 

 

 

 

 

 

 

 

 

11

13

7

O

P3.1

 

TxD

Serial transmit port enabled only when transmitting serial data

 

 

 

 

 

 

 

12

14

8

I

P3.2

 

 

 

 

 

 

 

 

 

 

External interrupt 0

 

 

 

 

 

 

 

 

 

 

INT0

 

 

 

 

 

 

 

 

 

13

15

9

I

P3.3

 

 

 

 

 

 

 

 

 

External interrupt 1

 

 

 

 

 

 

 

 

 

 

INT1

 

 

 

 

 

 

 

 

 

14

16

10

I

P3.4

 

T0

Timer/counter 0 input

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CMPR- Common - reference to comparators 1, 2, 3

 

 

 

 

 

 

 

 

 

15

17

11

I

P3.5

 

T1

Timer/counter 1 input

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CMP1+

Comparator 1 positive input

 

 

 

 

 

 

 

 

 

16

18

12

O

P3.6

 

 

 

 

 

 

 

 

External data memory write strobe

 

 

 

 

 

 

 

 

 

 

WR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CMP2+

Comparator 2 positive input

 

 

 

 

 

 

 

 

 

17

19

13

O

P3.7

 

 

 

 

 

 

 

External data memory read strobe

 

 

 

 

 

 

 

 

 

 

RD

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CMP3+ Comparator 3 positive input

 

 

 

 

 

 

 

 

 

9

10

4

I

Reset: A low on this pin asynchronously resets all port pins to a low state except P3.1. The

 

RST

 

 

 

 

 

 

 

 

 

 

 

pin must be held low with the oscillator running for 24 oscillator cycles to initialize the

 

 

 

 

 

 

 

 

 

 

 

internal registers. An internal diffused resistor to VCC permits a power on reset using only

 

 

 

 

 

 

 

 

 

 

 

an external capacitor to VSS. RST has a Schmitt trigger input stage to provide additional

 

 

 

 

 

 

 

 

 

 

 

noise immunity with a slow rising input voltage.

 

 

 

 

 

 

 

 

30

33

27

I/O

Address Latch Enable/Program Pulse: Output pulse for latching the low byte of the

 

ALE/PROG

 

 

 

 

 

 

 

 

 

 

 

 

address during an access to external memory. In normal operation, ALE is emitted at a

 

 

 

 

 

 

 

 

 

 

 

constant rate of 1/6 the oscillator frequency, and can be used for external timing or clocking.

 

 

 

 

 

 

 

 

 

 

 

Note that one ALE pulse is skipped during each access to external data memory. ALE is

 

 

 

 

 

 

 

 

 

 

 

switched off if the bit 0 in the AUXR register (8EH) is set. This pin is also the program pulse

 

 

 

 

 

 

 

 

 

 

 

input

(PROG)

 

during EPROM programming.

 

 

 

 

 

 

29

32

26

O

Program Store Enable: The read strobe to external program memory. When the device is

 

PSEN

 

 

 

 

 

 

 

 

 

 

 

executing code from the external program memory,

PSEN

is activated twice each machine

 

 

 

 

 

 

 

 

 

 

 

cycle, except that two

PSEN

activations are skipped during each access to external data

 

 

 

 

 

 

 

 

 

 

 

memory.

PSEN

is not activated during fetches from internal program memory.

 

 

 

31

35

29

I

External Access Enable/Programming Supply Voltage:

 

must be externally held low

 

EA/VPP

EA

 

 

 

 

 

 

 

 

 

 

 

to enable the device to fetch code from external program memory locations 0000H to

 

 

 

 

 

 

 

 

 

 

 

1FFFH. If

EA

is held high, the device executes from internal program memory unless the

 

 

 

 

 

 

 

 

 

 

 

program counter contains an address greater than 1FFFH. This pin also receives the

 

 

 

 

 

 

 

 

 

 

 

12.75V programming supply voltage (VPP) during EPROM programming.

 

XTAL1

19

21

15

I

Crystal 1: Input to the inverting oscillator amplifier and input to the internal clock generator

 

 

 

 

 

 

 

 

 

 

 

circuits.

 

 

 

 

 

 

 

 

 

XTAL2

18

20

14

O

Crystal 2: Output from the inverting oscillator amplifier.

 

 

1998 May 01

6

Philips Semiconductors Product specification

 

80C51 8-bit microcontroller family

 

 

 

 

 

 

 

 

80C575/83C575/

 

 

8K/256 OTP/ROM/ROMless, 4 comparator, failure detect circuitry, watchdog timer

 

 

 

 

 

87C575

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Table 1.

87C575 Special Function Registers

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SYMBOL

DESCRIPTION

DIRECT

 

BIT ADDRESS, SYMBOL, OR ALTERNATIVE PORT FUNCTION

 

RESET

 

 

ADDRESS

MSB

 

 

 

 

 

 

 

 

 

 

 

 

LSB

VALUE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ACC*

Accumulator

E0H

 

E7

 

E6

E5

E4

 

E3

 

E2

E1

E0

00H

 

 

AUXR#

Auxiliary

8EH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

xxxxxx00B

 

 

±

 

±

 

±

±

±

 

±

 

LO

 

AO

 

 

B*

B register

F0H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

00H

 

 

 

F7

 

F6

F5

F4

 

F3

 

F2

F1

 

F0

 

 

CCAP0H#

Module 0 Capture High

FAH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

xxxxxxxxB

 

 

CCAP1H#

Module 1 Capture High

FBH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

xxxxxxxxB

 

 

CCAP2H#

Module 2 Capture High

FCH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

xxxxxxxxB

 

 

CCAP3H#

Module 3 Capture High

FDH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

xxxxxxxxB

 

 

CCAP4H#

Module 4 Capture High

FEH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

xxxxxxxxB

 

 

CCAP0L#

Module 0 Capture Low

EAH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

xxxxxxxxB

 

 

CCAP1L#

Module 1 Capture Low

EBH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

xxxxxxxxB

 

 

CCAP2L#

Module 2 Capture Low

ECH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

xxxxxxxxB

 

 

CCAP3L#

Module 3 Capture Low

EDH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

xxxxxxxxB

 

 

CCAP4L#

Module 4 Capture Low

EEH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

xxxxxxxxB

 

 

CCAPM0#

Module 0 Mode

DAH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

x0000000B

 

 

±

 

ECOM

CAPP

CAPN

 

MAT

 

TOG

PWM

 

ECCF

 

 

CCAPM1#

Module 1 Mode

DBH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

x0000000B

 

 

±

 

ECOM

CAPP

CAPN

 

MAT

 

TOG

PWM

 

ECCF

 

 

CCAPM2#

Module 2 Mode

DCH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

x0000000B

 

 

±

 

ECOM

CAPP

CAPN

 

MAT

 

TOG

PWM

 

ECCF

 

 

CCAPM3#

Module 3 Mode

DDH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

x0000000B

 

 

±

 

ECOM

CAPP

CAPN

 

MAT

 

TOG

PWM

 

ECCF

 

 

CCAPM4#

Module 4 Mode

DEH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

x0000000B

 

 

±

 

ECOM

CAPP

CAPN

 

MAT

 

TOG

PWM

 

ECCF

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DF

 

DE

DD

DC

 

DB

 

DA

D9

D8

 

 

 

CCON*#

PCA Counter Control

D8H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

00x00000B

 

 

 

CF

 

CR

±

CCF4

CCF3

CCF2

CCF1

 

CCF0

 

 

CH#

PCA Counter High

F9H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

00H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CL#

PCA Counter Low

E9H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

00H

 

 

CMOD#

PCA Counter Mode

D9H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

00xxx000B

 

 

CIDL

WDTE

±

±

±

 

CPS1

CPS0

 

ECF

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

EF

 

EE

ED

EC

 

EB

 

EA

E9

E8

 

 

 

CMP*#

Comparator

E8H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

00H

 

 

EC3DP

EC2DP

EC1DP

EC0DP

C3RO

C2RO

C1RO

 

C0RO

 

 

CMPE#

Comparator Enable

91H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

00H

 

 

EC3TDC

EC2TDC

EC1TDC

EC0TDC

EC3OD

EC2OD

EC1OD

 

EC0OD

 

 

DPTR:

Data Pointer (2 bytes)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DPH

Data Pointer High

83H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

00H

 

 

DPL

Data Pointer Low

82H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

00H

 

 

 

 

 

 

AF

 

AE

AD

AC

 

AB

 

AA

A9

A8

 

 

 

IE*

Interrupt Enable

A8H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

00H

 

 

 

EA

 

EC

ET2

ES

 

ET1

 

EX1

ET0

 

EX0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BF

 

BE

BD

BC

 

BB

 

BA

B9

 

B8

 

 

 

IP*

Interrupt Priority

B8H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

x0000000B

 

 

±

 

PPC

PT2

PS

 

PT1

 

PX1

PT0

 

PX0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

87

 

86

 

85

84

83

 

82

 

81

 

80

 

 

 

P0*

Port 0

80H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

00H

 

 

AD7

AD6

AD5

AD4

 

AD3

 

AD2

AD1

 

AD0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

97

 

96

 

95

94

93

 

92

 

91

 

90

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P1*

Port 1

90H

CEX4

CEX3

CEX2

CEX1

CEX0

 

EXI

T2EX

 

T2

00H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A7

 

A6

A5

A4

 

A3

 

A2

A1

A0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P2*

Port 2

A0H

AD15

AD14

AD13

AD12

AD11

AD10

AD9

 

AD8

00H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

B7

 

B6

B5

B4

 

B3

 

B2

B1

B0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P3*

Port 3

B0H

 

 

 

 

 

 

T1

T0

 

 

 

 

 

 

TxD

 

RxD

00H

 

 

 

RD

WR

INT1

INT0

 

*SFRs are bit addressable.

# SFRs are modified from or added to the 80C51 SFRs. 1. 87C575 only.

1998 May 01

7

Philips Semiconductors Product specification

 

80C51 8-bit microcontroller family

 

 

 

 

80C575/83C575/

 

 

8K/256 OTP/ROM/ROMless, 4 comparator, failure detect circuitry, watchdog timer

 

 

87C575

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Table 1.

87C575 Special Function Registers (Continued)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SYMBOL

DESCRIPTION

DIRECT

BIT ADDRESS, SYMBOL, OR ALTERNATIVE PORT FUNCTION

RESET

 

 

ADDRESS

MSB

 

 

 

 

 

 

LSB

VALUE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P2OD#

Port 2 Pullup Disable

A1H

 

 

 

 

 

 

 

 

00H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PCON#

Power Control

87H

SMOD1

SMOD0

OSF1

POF1

LVF1

GF0

PD

IDL

00xxx000B

 

 

 

 

 

D7

D6

D5

D4

D3

D2

D1

D0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW*

Program Status Word

D0H

CY

AC

F0

RS1

RS0

OV

±

P

00H

 

 

RACAP2H#

Timer 2 Capture High

CBH

 

 

 

 

 

 

 

 

00H

 

 

 

 

 

 

 

 

 

 

 

 

RACAP2L#

Timer 2 Capture Low

CAH

 

 

 

 

 

 

 

 

00H

 

 

SADDR#

Slave Address

A9H

 

 

 

 

 

 

 

 

00H

 

 

SADEN#

Slave Address Mask

B9H

 

 

 

 

 

 

 

 

00H

 

 

SBUF

Serial Data Buffer

99H

 

 

 

 

 

 

 

 

xxxxxxxxB

 

 

 

 

 

9F

9E

9D

9C

9B

9A

99

98

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SCON*

Serial Control

98H

SM0

SM1

SM2

REN

TB8

RB8

TI

RI

00H

 

 

SP

Stack Pointer

81H

 

 

 

 

 

 

 

 

07H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

8F

8E

8D

8C

8B

8A

89

88

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TCON*

Timer Control

88H

TF1

TR1

TF0

TR0

IE1

IT1

IE0

IT0

00H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CF

CE

CD

CC

CB

CA

C9

C8

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

T2CON*

Timer 2 Control

C8H

TF2

EXF2

RCLK

TCLK

EXEN2

TR2

C/T2

CP/RL2

00H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

T2MOD#

Timer 2 Mode Control

C9H

±

±

±

±

±

±

T2OE2

DCEN

xxxxxxx0B

 

 

TH0

Timer High 0

8CH

 

 

 

 

 

 

 

 

00H

 

 

TH1

Timer High 1

8DH

 

 

 

 

 

 

 

 

00H

 

 

TH2#

Timer High 2

CDH

 

 

 

 

 

 

 

 

00H

 

 

TL0

Timer Low 0

8AH

 

 

 

 

 

 

 

 

00H

 

 

TL1

Timer Low 1

8BH

 

 

 

 

 

 

 

 

00H

 

 

TL2#

Timer Low 2

CCH

 

 

 

 

 

 

 

 

00H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TMOD

Timer Mode

89H

GATE

C/T

M1

M0

GATE

C/T

M1

M0

00H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

C7

C6

C5

C4

C3

C2

C1

C0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

WDCON*#

Watchdog Timer Control

C0H

PRE2

PRE1

PRE0

LVRE

OFRE

WDRUN

WDTOF

WDMOD

11111101B

 

 

WDL#

Watchdog Timer Reload

C1H

 

 

 

 

 

 

 

 

00H

 

 

 

 

 

 

 

 

 

 

 

 

WFEED1#

Watchdog Feed 1

C2H

 

 

 

 

 

 

 

 

xxH

 

 

WFEED2#

Watchdog Feed 2

C3H

 

 

 

 

 

 

 

 

xxH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*SFRs are bit addressable.

# SFRs are modified from or added to the 80C51 SFRs.

1.Reset value depends on reset source.

2.Programmable clock-out.

1998 May 01

8

Philips Semiconductors Product specification

80C51 8-bit microcontroller family

80C575/83C575/

8K/256 OTP/ROM/ROMless, 4 comparator, failure detect circuitry, watchdog timer

87C575

 

 

POWER ON CLEAR/ POWER ON FLAG

An on-chip Power On Detect Circuit resets the 8XC575 and sets the Power Off Flag (PCON.4) on power up or if VCC drops to zero momentarily. The POF can only be cleared by software. The RST pin is not driven by the power on detect circuit. The POF can be read by software to determine that a power failure has occurred and can also be set by software.

LOW VOLTAGE DETECT

An on-chip Low Voltage Detect circuit sets the Low Voltage Flag (PCON.3) if VCC drops below VLOW (see DC Electrical Characteristics) and resets the 8XC575 if the Low Voltage Reset Enable bit (WDCON.4) is set. If the LVRE is cleared, the reset is disabled but LVF will still be set if VCC is low. The RST pin is not driven by the low voltage detect circuit. The LVF can be read by software to determine that VCC was low. The LVF can be set or cleared by software.

OSCILLATOR FAIL DETECT

An on-chip Oscillator Fail Detect circuit sets the Oscillator Fail Flag (PCON.5) if the oscillator frequency drops below OSCF for one or more cycles (see AC Electrical Characteristics: OSCF) and resets the 8XC575 if the Oscillator Fail Reset Enable bit (WDCON.3) is set. If OFRE is cleared, the reset is disabled but OSF will still be set if the oscillator fails. The RST pin is not driven by the oscillator fail detect circuit. The OSF can be read by software to determine that an oscillator failure has occurred. The OSF can be set or cleared by software.

LOW ACTIVE RESET

One of the most notable features on this part is the low active reset. At this time this is the only 80C51 derivative available that has low active reset. This feature makes it easier to interface the 8XC575 into an application to accommodate the power-on and low voltage conditions that can occur. The low active reset operates exactly the same as high active reset with the exception that the part is put into the reset mode by applying a low level to the reset pin. For power-on reset it is also necessary to invert the power-on reset circuit; connecting the 8.2K resistor from the reset pin to VCC and the 10mf capacitor from the reset pin to ground. Figure 1 shows all of the reset related circuitry.

When reset the port pins on the 87C575 are driven low asynchronously. This is different from all other 80C51 derivatives.

The 8XC575 also has Low voltage detection circuitry that will, if enabled, force the part to reset when VCC (on the part) fails below a set level. Low Voltage Reset is enabled by a normal reset. Low Voltage Reset can be disabled by clearing LVRE (bit 4 in the WDCON SFR) then executing a watchdog feed sequence (A5H to WFEED1 followed immediately by 5A to WFEED2). In addition there is a flag (LVF) that is set if a low voltage condition is detected. The LVF flag is set even if the Low Voltage detection circuitry is disabled. Notice that the Low voltage detection circuitry does not drive the RST# pin so the LVF flag is the only way that the microcontroller can determine if it has been reset due to a low voltage condition.

The 8XC575 has an on-chip power-on detection circuit that sets the POF (PCON.4) flag on power up or if the VCC level momentarily drops to 0V. This flag can be used to determine if the part is being started from a power-on (cold start) or if a reset has occurred due to another condition (warm start).

TIMERS

The 87C575 has four on-chip timers.

Timers 0 and 1 are identical in every way to Timers 0 and 1 on the 80C51.

Timer 2 on the 8XC575 is identical to the 80C52 Timer 2 (described in detail in the 80C52 overview) with the exception that it is an up or down counter. To configure the Timer to count down the DCEN bit in the T2MOD special function register must be set and a low level must be present on the T2EX pin (P1.1).

The Watchdog timer operation and implementation is the same as that for the 8XC550 (described in the 8XC550 overview) with the exception that the reset values of the WDCON and WDL special function registers have been changed. The changes in these registers cause the watchdog timer to be enabled with a timeout of 98304 × TOSC when the part is reset. The watchdog can be disabled by executing a valid feed sequence and then clearing WDRUN (bit 2 in the WDCON SFR).

 

VCC

 

SMOD1

SMOD0

OSF

POF

LVF

GF0

GF1

IDL

PCON

 

 

 

(87GH)

 

 

 

 

 

 

 

 

 

 

 

 

 

POWER-ON DETECT

 

 

 

 

 

 

 

 

 

 

+

 

 

 

 

 

 

 

 

8xC575

VLOW

 

 

 

 

 

 

 

 

 

INTERNAL

 

±

 

 

 

 

 

 

 

 

RESET

(LOW VCC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

REFERENCE)

 

 

OSC FREQ BELOW OSCF

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RST

(MIN FREQUENCY)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SHADOW REGISTER

 

 

 

 

 

PCA WATCHDOG

 

 

 

 

FOR WDCON

 

 

 

 

 

WATCHDOG TIMER

 

 

 

WATCHDOG FEED

 

 

 

 

 

 

 

 

 

 

 

PRE2

PRE1

PRE0

LVRE

OFRE

WDRUN

WDTOF

WDMOD

WDCON

 

 

 

(C0H)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SU00239

Figure 1. Reset Circuitry

1998 May 01

9

Philips Semiconductors Product specification

80C51 8-bit microcontroller family

80C575/83C575/

8K/256 OTP/ROM/ROMless, 4 comparator, failure detect circuitry, watchdog timer

87C575

 

 

PROGRAMMABLE COUNTER ARRAY (PCA)

The Programmable Counter Array is a special Timer that has five 16-bit capture/compare modules associated with it. Each of the modules can be programmed to operate in one of four modes: rising and/or falling edge capture, software timer, high-speed output, or pulse width modulator. Each module has a pin associated with it in port 1. Module 0 is connected to P1.3(CEX0), module 1 to P1.4(CEX1), etc.. The basic PCA configuration is shown in Figure 2.

The PCA timer is a common time base for all five modules and can be programmed to run at: 1/12 the oscillator frequency, 1/4 the oscillator frequency, the Timer 0 overflow, or the input on the ECI pin (P1.2). The timer count source is determined from the CPS1 and CPS0 bits in the CMOD SFR as follows (see Figure 3):

CPS1 CPS0 PCA Timer Count Source

0

0

1/12 oscillator frequency

01 1/4 oscillator frequency

10 Timer 0 overflow

1

1

External Input at ECI pin

In the CMOD SFR are three additional bits associated with the PCA. They are CIDL which allows the PCA to stop during idle mode, WDTE which enables or disables the watchdog function on module 4, and ECF which when set causes an interrupt and the PCA overflow flag CF (in the CCON SFR) to be set when the PCA timer overflows. These functions are shown in Figure 3.

The watchdog timer function is implemented in module 4 as implemented in other parts that have a PCA that are available on the market. However, if a watchdog timer is required in the target application, it is recommended to use the hardware watchdog timer that is implemented on the 87C575 separately from the PCA (see Figure 14).

The CCON SFR contains the run control bit for the PCA and the flags for the PCA timer (CF) and each module (refer to Figure 6). To run the PCA the CR bit (CCON.6) must be set by software. The PCA is shut off by clearing this bit. The CF bit (CCON.7) is set when the PCA counter overflows and an interrupt will be generated if the ECF bit in the CMOD register is set, The CF bit can only be cleared by software. Bits 0 through 4 of the CCON register are the flags for the modules (bit 0 for module 0, bit 1 for module 1, etc.) and are set by hardware when either a match or a capture occurs. These flags also can only be cleared by software. The PCA interrupt system shown in Figure 4.

Each module in the PCA has a special function register associated with it. These registers are: CCAPM0 for module 0, CCAPM1 for module 1, etc. (see Figure 7). The registers contain the bits that control the mode that each module will operate in. The ECCF bit (CCAPMn.0 where n=0, 1, 2, 3, or 4 depending on the module) enables the CCF flag in the CCON SFR to generate an interrupt when a match or compare occurs in the associated module. PWM (CCAPMn.1) enables the pulse width modulation mode. The TOG bit (CCAPMn.2) when set causes the CEX output associated with the module to toggle when there is a match between the PCA counter and the module's capture/compare register. The match bit MAT (CCAPMn.3) when set will cause the CCFn bit in the CCON register to be set when there is a match between the PCA counter and the module's capture/compare register.

The next two bits CAPN (CCAPMn.4) and CAPP (CCAPMn.5) determine the edge that a capture input will be active on. The CAPN bit enables the negative edge, and the CAPP bit enables the positive edge. If both bits are set both edges will be enabled and a capture will occur for either transition. The last bit in

the register ECOM (CCAPMn.6) when set enables the comparator function. Figure 8 shows the CCAPMn settings for the various PCA functions.

There are two additional registers associated with each of the PCA modules. They are CCAPnH and CCAPnL and these are the registers that store the 16-bit count when a capture occurs or a compare should occur. When a module is used in the PWM mode these registers are used to control the duty cycle of the output.

PCA Capture Mode

To use one of the PCA modules in the capture mode either one or both of the CCAPM bits CAPN and CAPP for that module must be set. The external CEX input for the module (on port 1) is sampled for a transition. When a valid transition occurs the PCA hardware loads the value of the PCA counter registers (CH and CL) into the module's capture registers (CCAPnL and CCAPnH). If the CCFn bit for the module in the CCON SFR and the ECCFn bit in the CCAPMn SFR are set then an interrupt will be generated. Refer to Figure 9.

16-bit Software Timer Mode

The PCA modules can be used as software timers by setting both the ECOM and MAT bits in the modules CCAPMn register. The PCA timer will be compared to the module's capture registers and when a match occurs an interrupt will occur if the CCFn (CCON SFR) and the ECCFn (CCAPMn SFR) bits for the module are both set (see Figure 10).

High Speed Output Mode

In this mode the CEX output (on port 1) associated with the PCA module will toggle each time a match occurs between the PCA counter and the module's capture registers. To activate this mode the TOG, MAT, and ECOM bits in the module's CCAPMn SFR must be set (see Figure 11).

16 BITS

16 BITS

PCA TIMER/COUNTER

TIME BASE FOR PCA MODULES

MODULE FUNCTIONS: 16-BIT CAPTURE 16-BIT TIMER

16-BIT HIGH SPEED OUTPUT

8-BIT PWM

WATCHDOG TIMER (MODULE 4 ONLY)

MODULE 0

P1.3/CEX0

MODULE 1

P1.4/CEX1

MODULE 2

P1.5/CEX2

MODULE 3

P1.6/CEX3

MODULE 4

P1.7/CEX4

SU00032

Figure 2. Programmable Counter Array (PCA)

1998 May 01

10

Philips P80C575EHBB, P87C575EHPN, P87C575EHLKA, P87C575EHFFA, P87C575EHBB Datasheet

Philips Semiconductors Product specification

80C51 8-bit microcontroller family

80C575/83C575/

8K/256 OTP/ROM/ROMless, 4 comparator, failure detect circuitry, watchdog timer

87C575

 

 

 

 

 

 

 

 

 

TO PCA

OSC/12

 

 

 

 

 

 

MODULES

 

 

 

 

 

 

 

 

OSC/4

 

 

 

 

 

 

OVERFLOW

 

 

 

 

 

 

 

 

INTERRUPT

 

 

 

 

 

CH

CL

 

 

 

 

 

 

 

 

TIMER 0

 

 

 

16±BIT UP COUNTER

 

 

OVERFLOW

 

 

 

 

 

 

 

 

EXTERNAL INPUT

 

 

 

 

 

 

 

 

(P1.2/ECI)

 

 

 

 

 

 

 

 

00

 

 

 

 

 

 

 

 

01

 

 

 

 

 

 

 

 

10

DECODE

 

 

 

 

 

 

 

11

 

 

 

 

 

 

 

 

IDLE

 

 

 

 

 

 

 

 

CIDL

WDTE

±±

±±

±±

CPS1

CPS0

ECF

CMOD

(D9H)

 

 

 

 

 

 

 

 

CF

CR

±±

CCF4

CCF3

CCF2

CCF1

CCF0

CCON

(D8H)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SU00033

Figure 3. PCA Timer/Counter

 

 

CF

CR

±±

CCF4

CCF3

CCF2

CCF1

CCF0

CCON

 

 

(D8H)

 

 

 

 

 

 

 

 

 

 

PCA TIMER/COUNTER

 

 

 

 

 

 

 

 

 

 

MODULE 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

IE.6

IE.7

 

 

 

 

 

 

 

 

 

EC

EA

TO

 

MODULE 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

INTERRUPT

 

 

 

 

 

 

 

 

 

PRIORITY

 

 

 

 

 

 

 

 

 

DECODER

MODULE 2

 

 

 

 

 

 

 

 

 

 

MODULE 3

 

 

 

 

 

 

 

 

 

 

MODULE 4

 

 

 

 

 

 

 

 

 

 

CMOD.0

ECF

CCAPMn.0

ECCFn

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SU00034

Figure 4. PCA Interrupt System

1998 May 01

11

Philips Semiconductors Product specification

80C51 8-bit microcontroller family

 

 

 

 

80C575/83C575/

8K/256 OTP/ROM/ROMless, 4 comparator, failure detect circuitry, watchdog timer

 

87C575

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CMOD Address = OD9H

 

 

 

 

 

 

 

Reset Value = 00XX X000B

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CIDL

 

WDTE

 

±

 

±

±

CPS1

CPS0

 

ECF

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit:

7

 

6

 

5

 

4

3

2

1

 

0

 

 

 

 

Symbol

Function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CIDL

Counter Idle control: CIDL = 0 programs the PCA Counter to continue functioning during idle Mode. CIDL = 1 programs

 

 

it to be gated off during idle.

 

 

 

 

 

 

 

 

 

 

 

 

WDTE

Watchdog Timer Enable: WDTE = 0 disables Watchdog Timer function on PCA Module 4. WDTE = 1 enables it.

±

Not implemented, reserved for future use.*

 

 

 

 

 

 

 

 

 

 

CPS1

PCA Count Pulse Select bit 1.

 

 

 

 

 

 

 

 

 

 

 

 

CPS0

PCA Count Pulse Select bit 0.

 

 

 

 

 

 

 

 

 

 

 

 

 

CPS1

CPS0

Selected PCA Input**

 

 

 

 

 

 

 

 

 

 

 

0

 

0

 

0

 

Internal clock, fOSC 12

 

 

 

 

 

 

 

 

 

0

 

1

 

1

 

Internal clock, fOSC 4

 

 

 

 

 

 

 

 

 

1

 

0

 

2

 

Timer 0 overflow

 

 

 

 

 

 

 

 

 

 

1

 

1

 

3

 

External clock at ECI/P1.2 pin (max. rate = fOSC 8)

 

 

 

 

 

ECF

PCA Enable Counter Overflow interrupt: ECF = 1 enables CF bit in CCON to generate an interrupt. ECF = 0 disables

 

 

that function of CF.

 

 

 

 

 

 

 

 

 

 

 

NOTE:

* User software should not write 1s to reserved bits. These bits may be used in future 8051 family products to invoke new features. In that case, the reset or inactive value of the new bit will be 0, and its active value will be 1. The value read from a reserved bit is indeterminate.

** fOSC = oscillator frequency

 

 

 

 

 

 

 

 

 

 

 

 

 

SU00035

 

 

 

 

 

 

 

Figure 5. CMOD: PCA Counter Mode Register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CCON

Address = OD8H

 

 

 

 

 

Reset Value = 00X0 0000B

 

 

Bit Addressable

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CF

CR

 

±

CCF4

CCF3

CCF2

CCF1

CCF0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit:

7

6

 

5

4

3

2

1

0

 

 

 

Symbol

Function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CF

PCA Counter Overflow flag. Set by hardware when the counter rolls over. CF flags an interrupt if bit ECF in CMOD is

 

 

set. CF may be set by either hardware or software but can only be cleared by software.

 

CR

PCA Counter Run control bit. Set by software to turn the PCA counter on. Must be cleared by software to turn the PCA

 

 

counter off.

 

 

 

 

 

 

 

 

 

 

±

Not implemented, reserved for future use*.

 

 

 

 

 

 

 

CCF4

PCA Module 4 interrupt flag. Set by hardware when a match or capture occurs. Must be cleared by software.

 

CCF3

PCA Module 3 interrupt flag. Set by hardware when a match or capture occurs. Must be cleared by software.

 

CCF2

PCA Module 2 interrupt flag. Set by hardware when a match or capture occurs. Must be cleared by software.

 

CCF1

PCA Module 1 interrupt flag. Set by hardware when a match or capture occurs. Must be cleared by software.

 

CCF0

PCA Module 0 interrupt flag. Set by hardware when a match or capture occurs. Must be cleared by software.

NOTE:

* User software should not write 1s to reserved bits. These bits may be used in future 8051 family products to invoke new features. In that case, the reset or inactive value of the new bit will be 0, and its active value will be 1. The value read from a reserved bit is indeterminate.

SU00036

Figure 6. CCON: PCA Counter Control Register

1998 May 01

12

Loading...
+ 28 hidden pages