DS87C530/DS83C530 EPROM/ROM Microcontrollers with Real-Time Clock

 

PIN DESCRIPTION (continued)

 

 

 

 

 

 

 

 

 

 

 

 

 

PIN

 

NAME

 

 

FUNCTION

 

 

 

 

 

 

 

 

 

PLCC

 

TQFP

 

 

 

 

 

 

 

 

 

 

30

 

23

P2.0 (AD8)

Port 2 (A8–A15), I/O. Port 2 is a bidirectional I/O port. The reset condition of

 

 

31

 

24

P2.1 (AD9)

Port 2 is logic high. In this state, a weak pullup holds the port high. This condition

 

 

 

also serves as an input mode, since any external circuit that writes to the port will

 

 

 

 

 

 

 

 

32

 

25

P2.2 (AD10)

 

 

 

overcome the weak pullup. When software writes a 0 to any port pin, the device

 

 

33

 

26

P2.3 (AD11)

will activate a strong pulldown that remains on until either a 1 is written or a reset

 

 

 

 

 

 

occurs. Writing a 1 after the port has been at 0 will cause a strong transition driver

 

 

34

 

27

P2.4 (AD12)

 

 

 

to turn on, followed by a weaker sustaining pullup. Once the momentary strong

 

 

35

 

28

P2.5 (AD13)

driver turns off, the port again becomes both the output high and input state. As an

 

 

 

 

 

 

alternate function Port 2 can function as MSB of the external address bus. This

 

 

36

 

29

P2.6 (AD14)

 

 

 

bus can be used to read external ROM and read/write external RAM memory or

 

 

37

 

30

P2.7 (AD15)

peripherals.

 

 

 

 

 

 

 

 

 

 

15

 

8

P3.0

Port 3, I/O. Port 3 functions as both an 8-bit, bi-directional I/O port and an

 

 

 

 

 

 

alternate functional interface for external interrupts, Serial Port 0, Timer 0 and 1

 

 

16

 

9

P3.1

Inputs, and RD and WR strobes. The reset condition of Port 3 is with all bits at a

 

 

 

logic 1. In this state, a weak pullup holds the port high. This condition also serves

 

 

 

 

 

 

as an input mode, since any external circuit that writes to the port will overcome

 

 

 

 

 

 

 

 

17

 

10

P3.2

the weak pullup. When software writes a 0 to any port pin, the device will activate

 

 

 

a strong pulldown that remains on until either a 1 is written or a reset occurs.

 

 

 

 

 

 

 

 

 

 

 

 

Writing a 1 after the port has been at 0 will cause a strong transition driver to turn

 

 

 

 

 

 

 

 

18

 

11

P3.3

on, followed by a weaker sustaining pullup. Once the momentary strong driver

 

 

 

 

 

 

turns off, the port again becomes both the output high and input state. The

 

 

19

 

12

P3.4

alternate modes of Port 3 are outlined below.

 

 

 

Port

Alternate

Function

 

 

 

 

 

 

 

 

 

 

 

 

P3.0

RXD0

Serial Port 0 Input

 

 

 

 

 

 

 

 

20

 

13

P3.5

P3.1

TXD0

Serial Port 0 Output

 

 

 

P3.2

INT0

External Interrupt 0

 

 

 

 

 

 

 

 

 

 

 

 

P3.3

INT1

External Interrupt 1

 

 

21

 

14

P3.6

 

 

 

P3.4

T0

Timer 0 External Input

 

 

 

 

 

 

P3.5

T1

Timer 1 External Input

 

 

22

 

15

P3.7

P3.6

WR

External Data Memory Write Strobe

 

 

 

P3.7

RD

External Data Memory Read Strobe

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

42

 

35

 

External Access Input, Active Low. Connect to ground to use an external ROM.

 

 

 

EA

Internal RAM is still accessible as determined by register settings. Connect to VCC

 

 

 

 

 

 

to use internal ROM.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

VBAT Input. Connect to the power source that maintains SRAM and RTC when

 

 

51

 

44

VBAT

VCC < VBAT. Can be connected to a 3V lithium battery or a super cap. Connect to

 

 

 

 

 

 

GND if battery will not be used with device.

 

 

27

 

20

RTCX2

Timekeeping Crystals. A 32.768kHz crystal between these pins supplies the time

 

 

 

base for the RTC. The devices support both 6pF and 12.5pF load capacitance

 

 

 

 

 

 

 

 

 

 

 

 

crystals as selected by an SFR bit (described later). To prevent noise from

 

 

 

 

 

 

 

 

28

 

21

RTCX1

affecting the RTC, the RTCX2 and RTCX1 pins should be guard-ringed with

 

 

 

GND2.

 

 

 

 

 

 

 

 

 

 

 

 

2, 11, 13,

 

4, 6, 7,

 

Not Connected. These pins should not be connected. They are reserved for use

 

 

14, 40,

 

33, 34,

N.C.

 

 

 

with future devices in the family.

 

 

41

 

47

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6 of 47