Philips S83C752-1A28, S83C752-1DB, S83C752-1N28, S83C752-2A28, S83C752-2N28 Datasheet

...
0 (0)

INTEGRATED CIRCUITS

83C752/87C752

80C51 8-bit microcontroller family

2K/64 OTP/ROM, 5 channel 8 bit A/D, I2C, PWM, low pin count

Product specification

1998 May 01

Supersedes data of 1998 Jan 19

IC20 Data Handbook

m n r

Philips Semiconductors

Product specification

 

 

 

 

 

 

80C51 8-bit microcontroller family

83C752/87C752

2K/64 OTP/ROM, 5 channel 8 bit A/D, I2C, PWM, low pin count

 

 

 

DESCRIPTION

The Philips 83C752/87C752 offers many of the advantages of the 80C51 architecture in a small package and at low cost.

The 8XC752 Microcontroller is fabricated with Philips high-density CMOS technology. Philips epitaxial substrate minimizes CMOS latch-up sensitivity.

The 8XC752 contains a 2k × 8 ROM (83C752) EPROM (87C752), a

64 × 8 RAM, 21 I/O lines, a 16-bit auto-reload counter/timer, a fixed-priority level interrupt structure, a bidirectional inter-integrated circuit (I2C) serial bus interface, an on-chip oscillator, a five channel multiplexed 8-bit A/D converter, and an 8-bit PWM output.

The onboard inter-integrated circuit (I2C) bus interface allows the 8XC752 to operate as a master or slave device on the I2C small area network. This capability facilitates I/O and RAM expansion, access to EEPROM, processor-to-processor communication, and efficient interface to a wide variety of dedicated I2C peripherals.

The EPROM version of this device, the 87C752, is available in both quartz-lid erasable and plastic one-time programmable (OTP) packages. Once the array has been programmed, it is functionally equivalent to the masked ROM 83C752. Thus, unless explicitly stated otherwise, all references made to the 83C752 apply equally to the 87C752.

The 83C752 supports two power reduction modes of operation referred to as the idle mode and the power-down mode.

Small package sizes

±28-pin DIP

±28-pin PLCC

±28-pin SSOP

Wide oscillator frequency range

Low power consumption:

±Normal operation: less than 11mA @ 5V, 12MHz

±Idle mode

±Power-down mode

2k × 8 ROM (83C752)

EPROM (87C752)

64 × 8 RAM

16-bit auto reloadable counter/timer

5-channel 8-bit A/D converter

8-bit PWM output/timer

Fixed-rate timer

Boolean processor

CMOS and TTL compatible

Well suited for logic replacement, consumer and industrial applications

FEATURES

Available in erasable quartz lid or One-Time Programmable plastic packages

80C51 based architecture

Inter-integrated Circuit (I2C) serial bus interface

PART NUMBER SELECTION

ROM

EPROM

 

TEMPERATURE RANGE °C

FREQUENCY

DRAWING

 

 

 

AND PACKAGE

 

NUMBER

 

 

 

 

 

 

S83C752±1DB

S87C752±1DB

OTP

0 to +70, 28-pin Plastic Shrink Small Outline Package

3.5 to 12MHz

SOT341-1

 

 

 

 

 

 

S83C752±1N28

S87C752±1N28

OTP

0 to +70, 28-pin Plastic Dual In-line Package

3.5 to 12MHz

SOT117-2

 

 

 

 

 

 

S83C752±2N28

S87C752±2N28

OTP

±40 to +85, 28-pin Plastic Dual In-line Package

3.5 to 12MHz

SOT117-2

 

 

 

 

 

 

S83C752±4DB

S87C752±4DB

OTP

0 to +70, 28-pin Plastic Shrink Small Outline Package

3.5 to 16MHz

SOT341-1

 

 

 

 

 

 

S83C752±4N28

S87C752±4N28

OTP

0 to +70, 28-pin Plastic Dual In-line Package

3.5 to 16MHz

SOT117-2

 

 

 

 

 

 

S83C752±5N28

S87C752±5N28

OTP

±40 to +85, 28-pin Plastic Dual In-line Package

3.5 to 16MHz

SOT117-2

 

 

 

 

 

 

S83C752±1A28

S87C752±1A28

OTP

0 to +70, 28-pin Plastic Leaded Chip Carrier

3.5 to 12MHz

SOT261-3

 

 

 

 

 

 

S83C752±2A28

S87C752±2A28

OTP

±40 to +85, 28-pin Plastic Leaded Chip Carrier

3.5 to 12MHz

SOT261-3

 

 

 

 

 

 

S83C752±4A28

S87C752±4A28

OTP

0 to +70, 28-pin Plastic Leaded Chip Carrier

3.5 to 16MHz

SOT261-3

 

 

 

 

 

 

S83C752±5A28

S87C752±5A28

OTP

±40 to +85, 28-pin Plastic Leaded Chip Carrier

3.5 to 16MHz

SOT261-3

 

 

 

 

 

 

S83C752±6A28

S87C752±6A28

OTP

±55 to +125, 28-pin Plastic Leaded Chip Carrier

3.5 to 12MHz

SOT261-3

 

 

 

 

 

 

S83C752±6N28

S87C752±6N28

OTP

±55 to +125, 28-pin Plastic Dual In-line Package

3.5 to 12MHz

SOT117-2

 

 

 

 

 

 

NOTE:

1. OTP = One Time Programmable EPROM.

1998 May 01

2

853-1443 19328

Philips S83C752-1A28, S83C752-1DB, S83C752-1N28, S83C752-2A28, S83C752-2N28 Datasheet

Philips Semiconductors Product specification

80C51 8-bit microcontroller family

83C752/87C752

2K/64 OTP/ROM, 5 channel 8 bit A/D, I2C, PWM, low pin count

 

BLOCK DIAGRAM

 

 

 

 

 

P0.0±P0.4

 

 

 

 

 

 

 

 

 

PORT 0

 

 

 

 

 

 

 

 

 

DRIVERS

 

 

 

 

VCC

 

 

 

2

 

 

 

 

 

 

 

 

 

I C

 

PWM

 

 

 

 

 

 

 

CONTROL

 

 

 

 

 

 

 

 

 

 

 

 

 

VSS

 

 

 

 

 

 

 

 

 

 

RAM ADDR

RAM

PORT 0

 

PORT 2

ROM/

 

 

REGISTER

LATCH

 

LATCH

EPROM

 

 

 

 

 

 

 

B

 

 

ACC

 

 

 

STACK

 

 

REGISTER

 

 

 

 

 

POINTER

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PROGRAM

 

 

 

 

 

 

 

 

 

ADDRESS

 

 

 

 

TMP2

 

TMP1

 

 

REGISTER

 

 

 

 

 

ALU

PCON

I2CFG I2STA TCON

BUFFER

 

 

 

 

 

 

 

 

 

 

 

 

I2DAT

I2CON

IE

 

 

 

 

 

 

 

 

TH0

TL0

PC

 

 

 

 

 

 

 

RTH

RTL

 

 

 

 

PSW

 

 

INCRE-

 

 

 

 

 

INTERRUPT, SERIAL

 

 

 

 

 

 

MENTER

 

 

 

 

 

 

PORT AND TIMER BLOCKS

 

 

 

 

 

 

 

 

 

 

PROGRAM

 

 

 

 

 

 

 

 

 

COUNTER

RST

TIMING

INSTRUCTION

REGISTER

 

 

 

 

 

DPTR

AND

 

 

 

 

 

 

 

 

 

 

 

 

 

CONTROL

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PD

 

 

 

PORT 1

 

 

PORT 3

 

 

 

 

 

LATCH

 

 

LATCH

 

 

 

 

 

 

 

 

 

 

OSCILLATOR

 

 

 

 

 

 

 

 

 

 

ADC

PORT 1

 

 

PORT 3

 

 

 

 

 

DRIVERS

 

 

DRIVERS

 

 

 

 

 

 

 

 

 

 

X1

 

X2

 

 

 

 

 

 

 

 

 

AVSS

AVCC

P1.0±P1.7

 

 

P3.0±P3.7

 

 

 

 

 

 

 

 

 

 

SU00319

1998 May 01

3

Philips Semiconductors Product specification

80C51 8-bit microcontroller family

83C752/87C752

2K/64 OTP/ROM, 5 channel 8 bit A/D, I2C, PWM, low pin count

 

PIN CONFIGURATIONS

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P3.4/A4

1

 

 

28

VCC

 

 

 

P3.3/A3

2

 

 

27

P3.5/A5

 

 

P3.2/A2/A10

3

 

 

26

P3.6/A6

 

 

P3.1/A1/A9

4

 

 

25

P3.7/A7

 

 

P3.0/A0/A8

5

 

 

24

P0.4/PWM OUT

 

 

 

 

PLASTIC

 

 

 

 

 

 

 

 

 

P0.2/VPP

6

DUAL

 

23

P0.3

 

 

 

IN-LINE

 

 

 

 

 

 

 

 

 

 

 

 

 

PACKAGE

22

P1.7/T0/D7

 

 

P0.1/SDA/OE±PGM

7

AND

 

 

 

 

 

SHRINK

21

 

 

 

 

 

 

 

P0.0/SCL/ASEL

8

SMALL

P1.6/INT1/D6

 

 

 

 

OUTLINE

20

 

 

 

 

 

 

 

 

RST

9 PACKAGE

P1.5/INT0/D5

 

 

 

X2

10

 

 

19

AVCC

 

 

 

X1

11

 

 

18

AVSS

 

 

 

VSS

12

 

 

17

P1.4/ADC4/D4

 

 

P1.0/ADC0/D0

13

 

 

16

P1.3/ADC3/D3

 

 

P1.1/ADC1/D1

14

 

 

15

P1.2/ADC2/D2

 

 

 

 

4

1

26

 

 

 

 

 

 

 

 

5

 

 

25

 

 

 

 

 

 

 

 

PLASTIC

 

 

 

 

 

 

 

 

 

 

 

LEADED

 

 

 

 

 

 

 

 

 

 

 

CHIP

 

 

 

 

 

 

 

 

 

 

CARRIER

 

 

 

 

 

 

 

 

 

11

 

 

19

 

 

 

 

 

 

 

 

12

 

 

18

 

 

 

 

 

 

 

Pin

Function

Pin

Function

 

 

1

P3.4/A4

 

 

15

P1.2/ADC2/D2

 

 

2

P3.3/A3

 

 

16

P1.3/ADC3/D3

 

 

3

P3.2/A2/A10

 

17

P1.4/ADC4/D4

 

 

4

P3.1/A1/A9

 

18

AVSS

 

 

5

P3.0/A0/A8

 

19

AVCC

 

 

6

P0.2/VPP

 

20

 

 

 

 

 

 

P1.5/INT0/D5

 

 

7

P0.1/SDA/OE-PGM

21

 

 

 

 

 

P1.6/INT1/D6

 

 

8

P0.0/SCL/ASEL

 

22

P1.7/T0/D7

 

 

9

RST

 

 

23

P0.3

 

 

 

 

 

 

 

10

X2

 

 

24

P0.4/PWM OUT

 

 

11

X1

 

 

25

P3.7/A7

 

 

12

VSS

 

 

26

P3.6/A6

 

 

13

P1.0/ADC0/D0

 

27

P3.5/A5

 

 

14

P1.1/ADC1/D1

 

28

VCC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SU00318

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1998 May 01

4

Philips Semiconductors Product specification

80C51 8-bit microcontroller family

83C752/87C752

 

2K/64 OTP/ROM, 5 channel 8 bit A/D, I2C, PWM, low pin count

 

 

 

PIN DESCRIPTION

 

 

 

 

 

 

 

 

 

 

MNEMONIC

PIN NO.

TYPE

NAME AND FUNCTION

 

 

 

 

 

 

 

 

VSS

12

I

Circuit Ground Potential.

 

 

VCC

28

I

Supply voltage during normal, idle, and power-down operation.

 

 

P0.0±P0.4

8±6

I/O

Port 0: Port 0 is a 5-bit bidirectional port. Port 0.0±P0.2 are open drain. Port 0.0±P0.2 pins that have

 

 

23, 24

 

1s written to them float, and in that state can be used as high-impedance inputs. P0.3±P0.4 are

 

 

 

 

bidirectional I/O port pins with internal pull-ups. Port 0 also serves as the serial I2C interface. When this

 

 

 

 

feature is activated by software, SCL and SDA are driven low in accordance with the I2C protocol.

 

 

 

 

These pins are driven low if the port register bit is written with a 0 or if the I2C subsystem presents a 0.

 

 

 

 

The state of the pin can always be read from the port register by the program. Port 0.3 and 0.4 have

 

 

 

 

internal pull-ups that function identically to port 3. Pins that have 1s written to them are pulled high by

 

 

 

 

the internal pull-ups and can be used as inputs.

 

 

 

 

 

To comply with the I2C specification, P0.0 and P0.1 are open drain bidirectional I/O pins with the

 

 

 

 

electrical characteristics listed in the tables that follow. While these differ from ªstandard TTLº

 

 

 

 

characteristics, they are close enough for the pins to still be used as general-purpose I/O in non-I2C

 

 

 

 

applications.

 

 

6I VPP (P0.2) ± Programming voltage input. (See Note 2.)

7I OE/PGM (P0.1) ± Input which specifies verify mode (output enable) or the program mode.

OE/PGM = 1 output enabled (verify mode). OE/PGM = 0 program mode.

8I ASEL (P0.0) ± Input which indicates which bits of the EPROM address are applied to port 3. ASEL = 0 low address byte available on port 3.

ASEL = 1 high address byte available on port 3 (only the three least significant bits are used).

P1.0±P1.7

13±17,

I/O

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

 

20±22

 

them are pulled high by the internal pull-ups and can be used as inputs. P0.3±P0.4 pins are

 

 

 

bidirectional I/O port pins with internal pull-ups. As inputs, port 1 pins that are externally pulled low will

 

 

 

source current because of the internal pull-ups. (See DC Electrical Characteristics: IIL). Port 1 also

 

 

 

serves the special function features of the SC80C51 family as listed below:

 

20

I

 

(P1.5): External interrupt.

 

INT0

 

21

I

 

(P1.6): External interrupt.

 

INT1

 

22

I

T0 (P1.7): Timer 0 external input.

 

13±17

I

ADC0 (P1.0)±ADC4 (P1.4): Port 1 also functions as the inputs to the five channel multiplexed A/D

 

 

 

converter. These pins can be used as outputs only if the A/D function has been disabled. These pins

 

 

 

can be used as inputs while the A/D converter is enabled.

 

 

 

Port 1 serves to output the addressed EPROM contents in the verify mode and accepts as inputs the

 

 

 

value to program into the selected address during the program mode.

P3.0±P3.7

5±1,

I/O

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

 

27±25

 

them are pulled high by the internal pull-ups and can be used as inputs. As inputs, port 3 pins that are

 

 

 

externally being pulled low will source current because of the pull-ups. (See DC Electrical

 

 

 

Characteristics: IIL). Port 3 also functions as the address input for the EPROM memory location to be

 

 

 

programmed (or verified). The 11-bit address is multiplexed into this port as specified by P0.0/ASEL.

RST

9

I

Reset: A high on this pin for two machine cycles while the oscillator is running resets the device. An

 

 

 

internal diffused resistor to VSS permits a power-on RESET using only an external capacitor to VCC.

 

 

 

After the device is reset, a 10-bit serial sequence, sent LSB first, applied to RESET, places the device

 

 

 

in the programming state allowing programming address, data and VPP to be applied for programming

 

 

 

or verification purposes. The RESET serial sequence must be synchronized with the X1 input.

X1

11

I

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

 

 

 

also serves as the clock to strobe in a serial bit stream into RESET to place the device in the

 

 

 

programming state.

X2

10

O

Crystal 2: Output from the inverting oscillator amplifier.

AVCC 1

19

I

Analog supply voltage and reference input.

AVSS 1

18

I

Analog supply and reference ground.

NOTE:

1.AVSS (reference ground) must be connected to 0V (ground). AVCC (reference input) cannot differ from VCC by more than ±0.2V, and must be in the range 4.5V to 5.5V.

2.When P0.2 is at or close to 0V, it may affect the internal ROM operation. We recommend that P0.2 be tied to VCC via a small pull-up

(e.g., 2kΩ).

1998 May 01

5

Philips Semiconductors Product specification

80C51 8-bit microcontroller family

83C752/87C752

2K/64 OTP/ROM, 5 channel 8 bit A/D, I2C, PWM, low pin count

 

OSCILLATOR CHARACTERISTICS

X1 and X2 are the input and output, respectively, of an inverting amplifier which can be configured for use as an on-chip oscillator.

To drive the device from an external clock source, X1 should be driven while X2 is left unconnected. There are no requirements on the duty cycle of the external clock signal, because the input to the internal clock circuitry is through a divide-by-two flip-flop. However, minimum and maximum high and low times specified in the data sheet must be observed.

IDLE MODE

The 8XC752 includes the 80C51 power-down and idle mode features. In idle mode, the CPU puts itself to sleep while all of the on-chip peripherals except the A/D and PWM stay active. The functions that continue to run while in the idle mode are Timer 0, the I2C interface including Timer I, and the interrupts. The instruction to invoke the idle mode is the last instruction executed in the normal operating mode before the idle mode is activated. The CPU contents, the on-chip RAM, and all of the special function registers remain intact during this mode. The idle mode can be terminated either by any enabled interrupt (at which time the process is picked up at the interrupt service routine and continued), or by a hardware reset which starts the processor in the same manner as a power-on reset. Upon powering-up the circuit, or exiting from idle mode, sufficient time must be allowed for stabilization of the internal analog reference voltages before an A/D conversion is started.

DIFFERENCES BETWEEN THE 8XC752 AND THE 80C51

Program Memory

On the 8XC752, program memory is 2048 bytes long and is not externally expandable, so the 80C51 instructions MOVX, LJMP, and LCALL are not implemented. If these instructions are executed, the appropriate number of instruction cycles will take place along with external fetches; however, no operation will take place. The LJMP may not respond to all program address bits. The only fixed locations in program memory are the addresses at which execution is taken up in response to reset and interrupts, which are as follows:

 

 

 

 

Program Memory

Event

Address

Reset

000

External

 

 

003

INT0

Counter/timer 0

00B

External

 

 

013

INT1

Timer I

01B

I2C serial

023

ADC

02B

PWM

033

Memory Organization

The 8XC752 manipulates operands in three memory address spaces. The first is the program memory space which contains program instructions as well as constants such as look-up tables. The program memory space contains 2k bytes in the 8XC752.

Special Function Registers

The special function registers (directly addressable only) contain all of the 8XC751 registers except the program counter and the four register banks. Most of the 21 special function registers are used to control the on-chip peripheral hardware. Other registers include arithmetic registers (ACC, B, PSW), stack pointer (SP) and data pointer registers (DPH, DPL). Nine of the SFRs are bit addressable.

Data Pointer

The data pointer (DPTR) consists of a high byte (DPH) and a low byte (DPL). In the 80C51 this register allows the access of external data memory using the MOVX instruction. Since the 83C752 does not support MOVX or external memory accesses, this register is generally used as a 16-bit offset pointer of the accumulator in a

MOVC instruction. DPTR may also be manipulated as two independent 8-bit registers.

The second memory space is the data memory array which has a logical address space of 128 bytes. However, only the first 64 (0 to

3FH) are implemented in the 8XC752.

The third memory space is the special function register array having a 128-byte address space (80H to FFH). Only selected locations in this memory space are used (see Table 2). Note that the architecture of these memory spaces (internal program memory, internal data memory, and special function registers) is identical to the 80C51, and the 8XC752 varies only in the amount of memory physically implemented.

The 8XC752 does not directly address any external data or program memory spaces. For this reason, the MOVX instructions in the 80C51 instruction set are not implemented in the 83C752, nor are the alternate I/O pin functions RD and WR.

POWER-DOWN MODE

In the power-down mode, the oscillator is stopped and the instruction to invoke power-down is the last instruction executed. Only the contents of the on-chip RAM are preserved. A hardware reset is the only way to terminate the power-down mode. The control bits for the reduced power modes are in the special function register PCON.

Table 1. External Pin Status During Idle and

Power-Down Modes

MODE

Port 0*

Port 1

Port 2

 

 

 

 

Idle

Data

Data

Data

Power-down

Data

Data

Data

 

 

 

 

*Except for PWM output (P0.4).

1998 May 01

6

Philips Semiconductors Product specification

80C51 8-bit microcontroller family

83C752/87C752

2K/64 OTP/ROM, 5 channel 8 bit A/D, I2C, PWM, low pin count

 

READ

 

ALTERNATE

 

READ

 

ALTERNATE

 

 

OUTPUT

 

 

OUTPUT

 

LATCH

 

 

LATCH

 

 

 

FUNCTION

VDD

 

FUNCTION

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

INTERNAL

 

 

 

 

 

 

 

PULL-UP

 

 

 

 

INT. BUS

D

Q

 

INT. BUS

D

Q

 

 

 

P1.X

P1.X

 

 

P0.X

P0.X

 

 

LATCH

 

 

LATCH

 

 

PIN

 

 

PIN

 

 

 

 

 

 

WRITE TO

CL

Q

 

WRITE TO

CL

Q

 

LATCH

 

LATCH

 

 

 

 

 

 

 

READ

 

 

 

READ

 

 

 

PIN

 

ALTERNATE INPUT

 

PIN

 

ALTERNATE INPUT

 

 

 

 

 

 

 

 

 

FUNCTION

 

 

 

FUNCTION

 

SU00306

Figure 1. Port Bit Latches and I/O Buffers

I/O Ports

The I/O pins provided by the 83C752 consist of port 0, port 1, and port 3.

Port 0

Port 0 is a 5-bit bidirectional I/O port and includes alternate functions on some pins of this port. Pins P0.3 and P0.4 are provided with internal pullups while the remaining pins (P0.0, P0.1, and P0.2) have open drain output structures. The alternate functions for port 0 are:

P0.0 SCL ± the I2C bus clock

P0.1 SDA ± the I2C bus data

P0.4 PWM ± the PWM output

If the alternate functions, I2C and PWM, are not being used, then these pins may be used as I/O ports.

Port 1

Port 1 is an 8-bit bidirectional I/O port whose structure is identical to the 80C51, but also includes alternate input functions on all pins. The alternate pin functions for port 1 are:

P1.0-P1.4 - ADC0-ADC4 - A/D converter analog inputs P1.5 INT0 - external interrupt 0 input

P1.6 INT1 - external interrupt 1 input

P1.7 - T0 - timer 0 external input

If the alternate functions INT0, INT1, or T0 are not being used, these pins may be used as standard I/O ports. It is necessary to connect AVCC and AVSS to VCC and VSS, respectively, in order to use these pins as standard I/O pins. When the A/D converter is enabled, the analog channel connected to the A/D may not be used as a digital input; however, the remaining analog inputs may be used as digital inputs. They may not be used as digital outputs. While the A/D is enabled, the analog inputs are floating.

Port 3

Port 3 is an 8-bit bidirectional I/O port whose structure is identical to the 80C51. Note that the alternate functions associated with port 3 of the 80C51 have been moved to port 1 of the 83C752 (as applicable). See Figure 1 for port bit configurations.

Counter/Timer Subsystem

The 8XC752 has one counter/timer called timer/counter 0. Its operation is similar to mode 2 operation on the 80C51, but is extended to 16 bits with 16 bits of autoload. The controls for this counter are centralized in a single register called TCON.

A watchdog timer, called Timer I, is for use with the I2C subsystem. In I2C applications, this timer is dedicated to time-generation and bus monitoring of the I2C. In non-I2C applications, it is available for use as a fixed time-base.

Interrupt SubsystemÐFixed Priority

The IP register and the 2-level interrupt system of the 80C51 are eliminated. The interrupt structure is a seven-source, one-level interrupt system similar to the 8XC751. Simultaneous interrupt conditions are resolved by a single-level, fixed priority as follows:

 

 

 

 

 

Highest priority:

Pin INT0

 

 

Counter/timer flag 0

 

 

Pin

 

 

 

 

INT1

 

 

PWM

 

 

Timer I

 

 

Serial I2C

Lowest priority:

 

ADC

The vector addresses are as follows:

Source

Vector Address

INT0

 

0003H

TF0

 

000BH

INT1

 

0013H

TIMER I

 

001BH

SIO

 

0023H

ADC

 

002BH

PWM

 

0033H

Interrupt Control Registers

The 80C51 interrupt enable register is modified to take into account the different interrupt sources of the 8XC752.

1998 May 01

7

Philips Semiconductors Product specification

80C51 8-bit microcontroller family

83C752/87C752

2K/64 OTP/ROM, 5 channel 8 bit A/D, I2C, PWM, low pin count

 

Interrupt Enable Register

MSB

 

 

 

 

 

 

 

 

 

LSB

 

 

 

 

 

 

 

 

 

 

 

EA

EAD

 

ETI

 

ES

EPWM

EX1

ET0

 

EX0

 

 

 

 

 

 

 

 

 

 

 

Position Symbol

 

 

Function

 

 

 

 

IE.7

EA

 

Global interrupt disable when EA = 0

 

IE.6

EAD

 

A/D conversion complete

 

 

 

IE.5

ETI

 

Timer I

 

 

 

 

 

IE.4

ES

 

I2C serial port

 

 

 

 

IE.3

EPWM

 

PWM counter overflow

 

 

 

IE.2

EX1

 

External interrupt 1

 

 

 

 

IE.1

ET0

 

Timer 0 overflow

 

 

 

 

IE.0

EX0

 

External interrupt 0

 

 

 

 

Serial Communications

The 8XC752 contains an I2C serial communications port instead of the 80C51 UART. The I2C serial port is a single bit hardware interface with all of the hardware necessary to support multimaster and slave operations. Also included are receiver digital filters and timer (timer I) for communication watch-dog purposes. The I2C serial port is controlled through four special function registers; I2C control, I2C data, I2C status, and I2C configuration.

The I2C bus uses two wires (SDA and SCL) to transfer information between devices connected to the bus. The main technical features of the bus are:

Bidirectional data transfer between masters and slaves

Serial addressing of slaves

Acknowledgment after each transferred byte

Multimaster bus

Arbitration between simultaneously transmitting master without corruption of serial data on bus

With 82B715, communication distance is extended to beyond 100 feet (30M)

A large family of I2C compatible ICs is available. See the I2C section for more details on the bus and available ICs.

The 83C752 I2C subsystem includes hardware to simplify the software required to drive the I2C bus. This circuitry is the same as that on the 83C751. (See the 83C751 section for a detailed discussion of this subsystem).

Pulse Width Modulation Output (P0.4)

The PWM outputs pulses of programmable length and interval. The repetition frequency is defined by an 8-bit prescaler which generates the clock for the counter. The prescaler register is PWMP. The prescaler and counter are not associated with any other timer. The 8-bit counter counts modulo 255, that is from 0 to 254 inclusive. The value of the 8-bit counter is compared to the contents of a compare register, PWM. When the counter value matches the contents of this register, the output of the PWM is set high. When the counter reaches zero, the output of the PWM is set low. The pulse width ratio (duty cycle) is defined by the contents of the compare register and is in the range of 0 to 1 programmed in increments of 1/255. The PWM output can be set to be continuously high by loading the compare register with 0 and the output can be set to be continuously low by loading the compare register with 255. The PWM output is enabled by a bit in a special function register, PWENA. When enabled, the pin output is driven with a fully active pull-up. That is, when the output is high, a strong pull-up is continuously applied. when disabled, the pin functions as a normal bidirectional I/O pin, however, the counter remains active.

The PWM function is disabled during RESET and remains disabled after reset is removed until re-enabled by software. The PWM output is high during power down and idle. The counter is disabled during idle. The repetition frequency of the PWM is given by:

fPWM = fOSC / 2 (1 + PWMP) 255

The low/high ratio of the PWM signal is PWM / (255 ± PWM) for PWM not equal to 255. For PWM = 255, the output is always low.

The repetition frequency range is 92Hz to 23.5kHz for an oscillator frequency of 12MHz.

An interrupt will be asserted upon PWM counter overflow if the interrupt is not masked off.

The PWM output is an alternative function of P0.4. In order to use this port as a bidirectional I/O port, the PWM output must be disabled by clearing the enable/disable bit in PWENA. In this case, the PWM subsystem can be used as an interval timer by enabling the PWM interrupt.

1998 May 01

8

Loading...
+ 16 hidden pages