Philips pcd3745a DATASHEETS

INTEGRATED CIRCUITS
DATA SH EET
PCD3745A
8-bit microcontroller with 4.5 kbytes OTP memory and 32 kHz real-time clock
Product specification Supersedes data of 1997 Mar 04 File under Integrated Circuits, IC14
1999 Feb 02
Philips Semiconductors Product specification
8-bit microcontroller with 4.5 kbytes OTP memory and 32 kHz real-time clock

CONTENTS

1 FEATURES 2 GENERAL DESCRIPTION 3 ORDERING INFORMATION 4 BLOCK DIAGRAM 5 PINNING INFORMATION
5.1 Pinning
5.2 Pin description 6 REAL-TIME CLOCK (RTC)
6.1 Oscillator
6.2 Divider chain
6.3 Frequency adjustment
6.4 Clock Control Register (CLCR)
6.5 Frequency Adjustment Register (FAR) 7 PERIPHERAL COUNTER 1 AND
COUNTER 2
7.1 Peripheral Counter Control Register (PCCR) 8 THE RTC, COUNTER 1 AND COUNTER 2
INTERRUPTS
9 REDUCED POWER MODES
9.1 Idle mode
9.2 Stop mode 10 INSTRUCTION SET RESTRICTIONS 11 TIMING 12 RESET 13 SUMMARY OF CONFIGURATIONS 14 OTP PROGRAMMING 15 SUMMARY OF DERIVATIVE REGISTERS 16 LIMITING VALUES 17 HANDLING 18 DC CHARACTERISTICS 19 AC CHARACTERISTICS 20 PACKAGE OUTLINES 21 SOLDERING
21.1 Introduction
21.2 Through-hole mount packages
21.3 Surface mount packages
21.4 Suitability of IC packages for wave, reflow and dipping soldering methods
22 DEFINITIONS 23 LIFE SUPPORT APPLICATIONS
PCD3745A
1999 Feb 02 2
Philips Semiconductors Product specification
8-bit microcontroller with 4.5 kbytes OTP memory and 32 kHz real-time clock

1 FEATURES

8-bit CPU, RAM and I/O
4.5 kbytes OTP memory; 224 bytes RAM
32 kHz adjustable crystal oscillator for real-time clock
Over 100 instructions (based on MAB8048) all of
1 or 2 cycles
16 quasi-bidirectional I/O port lines
8-bit programmable Timer/event counter 1
Two 16-bit counters with count inputs pins
2 single-level vectored interrupts:
– external; peripheral Counters 1 and 2; RTC alarm – 8-bit programmable Timer/event counter 1
Two test inputs, one of which also serves as the external
interrupt input
Stop and Idle modes for power saving
Logic supply: 1.8 to 6 V
CPU clock frequency: 1 to 16 MHz
Operating temperature: 25 to +70 °C
Manufactured in silicon gate CMOS process.
PCD3745A

2 GENERAL DESCRIPTION

The PCD3745A is a microcontroller oriented towards communication and metering applications. It has
4.5 kbytes of One Time Programmable (OTP) memory, 224 bytes RAM and 16 I/O lines.
The PCD3745A also incorporates a low power Real-Time Clock (RTC) and two low power 16-bit counters. The RTC runs using a 32 kHz crystal oscillator and is register adjustable. The RTC and the counters are able to operate in all microcontroller modes. The instruction set is based on that of the MAB8048 and is software compatible with the PCD33xxA family.
This data sheet details the specific properties of the PCD3745A. The shared characteristics of the PCD33xxA family of microcontrollers are described in the
Handbook IC14; Section PCD33xxA Family”
be read in conjunction with this publication.
“Data
, which should

3 ORDERING INFORMATION

TYPE NUMBER
NAME DESCRIPTION VERSION
PCD3745AP DIP28 plastic dual in-line package; 28 leads (600 mil) SOT117-1 PCD3745AT SO28 plastic small outline package; 28 leads; body width 7.5 mm SOT136-1 PCD3745AH LQFP32 plastic low profile quad flat package; 32 leads; body 7 × 7 × 1.4 mm SOT358-1
PACKAGE
1999 Feb 02 3
This text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here in
_white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here inThis text is here in
white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader. white to force landscape pages to be ...
1999 Feb 02 4

4 BLOCK DIAGRAM

8-bit microcontroller with 4.5 kbytes OTP
memory and 32 kHz real-time clock
Philips Semiconductors Product specification
P1.0 to P1.6
P1.7/RCO
7
PORT 1
BUFFER
PORT 1
FLIP-FLOP
INTERNAL
CLOCK
FREQ.
PCD3745A
TEMPORARY
REGISTER 1
30
88
RTC1 RTC2
RTC
8
88888
C2LBC1HBC1LBPCCR
CLK2CLK1
C2HB
8
INTERRUPT
LOGIC
8
ACCUMULATOR
timer interrupt
external interrupt
STOP
IDLE
8
TEMPORARY
REGISTER 2
CONTROL AND TIMING
CE/T0
INTERRUPT INITIALIZE
FLIP-FLOPS
32
T1
ARITHMETIC
LOGIC UNIT
DECIMAL
ADJUST
XTAL2XTAL1RESET
OSCILLATOR
MEMORY
TIMER/
EVENT
COUNTER
RESIDENT
OTP-ROM
4.5 kbytes
DECODE
BANK
HIGHER PROGRAM COUNTER
8
88 8
INSTRUCTION
REGISTER DECODER
LOWER PROGRAM COUNTER
5 888 8
AND
CONDITIONAL
BRANCH
LOGIC
PROGRAM
STATUS
WORD
RAM ADDRESS REGISTER
T 1 CE/T0
TIMER
FLAG
CARRY ACC
ACC BIT
TEST
MBH909
P0.0 to P0.7
PORT 0
BUFFER
PORT 0
FLIP-FLOP
MULTIPLEXER
REGISTER 0 REGISTER 1 REGISTER 2 REGISTER 3 REGISTER 4 REGISTER 5
D
REGISTER 6
E
REGISTER 7
C
8 LEVEL STACK
O
(VARIABLE LENGTH)
D
OPTIONAL SECOND
E
REGISTER BANK
DATA STORE
RESIDENT RAM ARRAY
224 bytes
8
8
PCD3745A
Fig.1 Block diagram.
handbook, full pagewidth
Philips Semiconductors Product specification
8-bit microcontroller with 4.5 kbytes OTP memory and 32 kHz real-time clock

5 PINNING INFORMATION

5.1 Pinning

handbook, halfpage
P0.1 P0.2 P0.3 P0.4 P0.5 P0.6 P0.7
T1 XTAL1 XTAL2
RESET
CE/T0
P1.0 P1.1
1 2 3 4 5 6 7
PCD3745A
8
9 10 11 12 13
MBH910
28 27 26 25 24 23 22 21 20 19 18 17 16 1514
P0.0 CLK2 CLK1 EMUN
V
DD RTC2 V
SS RTC1
P1.7/RCO P1.6 P1.5 P1.4 P1.3 P1.2
PCD3745A
handbook, full pagewidth
Fig.2 Pin configuration (SOT117-1 and SOT136-1).
CLK1
CLK2
P0.0
n.c.
P0.1
P0.2
P0.3
P0.4
31
n.c. P0.5 P0.6 P0.7
T1 XTAL1 XTAL2
RESET
32
1 2 3 4 5 6 7 8
9
CE/T0
10
P1.0
30
29
PCD3745A
11
12
P1.1
P1.2
28
13 n.c.
27
14
P1.3
26
15
P1.4
25
16
P1.5
EMUN
24
V
23
RTC2
22
V
21 20
RTC1 P1.7/RCO
19
P1.6
18 17
n.c.
MBH911
DD
SS
Fig.3 Pin configuration (SOT358-1).
1999 Feb 02 5
Philips Semiconductors Product specification
8-bit microcontroller with 4.5 kbytes OTP
PCD3745A
memory and 32 kHz real-time clock

5.2 Pin description Table 1 SOT117-1 and SOT136-1 packages

SYMBOL PIN DESCRIPTION
P0.0 to P0.7 28, 1 to 7 Port 0: 8 quasi-bidirectional I/O lines T1 8 Test 1 or count input of 8-bit Timer/event counter 1 XTAL1 9 crystal oscillator or external clock input XTAL2 10 crystal oscillator output RESET 11 reset input CE/
T0 12 chip enable or Test 0 P1.0 to P1.6 13 to 19 Port 1: 7 quasi-bidirectional I/O lines P1.7/RCO 20 Port 1: 1 quasi-bidirectional I/O line/Real Clock Output 16 kHz RTC1 21 RTC 32 kHz oscillator input V
SS
RTC2 23 RTC 32 kHz oscillator output V
DD
EMUN 25 emulation pin, must be connected to V CLK1 26 count input of 16-bit peripheral Counter 1 CLK2 27 count input of 16-bit peripheral Counter 2
22 ground
24 positive supply voltage
for normal mode operation.
DD
Table 2 SOT358-1 package
SYMBOL PIN DESCRIPTION
n.c. 1, 13, 17, 28 not connected T1 5 Test 1 or count input of 8-bit Timer/event counter 1 XTAL1 6 crystal oscillator or external clock input XTAL2 7 crystal oscillator output RESET 8 reset input CE/
T0 9 chip enable or Test 0 P1.0 to P1.6 10 to 12,
Port 1: 7 quasi-bidirectional I/O lines
14 to 16, 18 P1.7/RCO 19 Port 1: 1 quasi-bidirectional I/O line/Real Clock Output 16 kHz RTC1 20 RTC 32 kHz oscillator input V
SS
21 ground RTC2 22 RTC 32 kHz oscillator output V
DD
EMUN 24 emulation pin, must be connected to V
23 positive supply voltage
for normal mode operation.
DD
CLK1 25 count input of 16-bit peripheral Counter 1 CLK2 26 count input of 16-bit peripheral Counter 2 P0.0 to P0.7 27, 29 to 32,
Port 0: 8 quasi-bidirectional I/O lines
2to4
1999 Feb 02 6
Philips Semiconductors Product specification
8-bit microcontroller with 4.5 kbytes OTP memory and 32 kHz real-time clock

6 REAL-TIME CLOCK (RTC)

The RTC consists of a 32 kHz crystal oscillator, a 32 kHz to 1 second, 1.5 second and 1 minute divider chain, an 8-bit Frequency Adjustment Register (FAR) and the Clock Control Register (CLCR). The complete real-time clock section is independent of the microcontroller status, even in Idle or Stop mode.

6.1 Oscillator

The internal 32 kHz oscillator requires an external
32.768 kHz quartz crystal (a positive deviation up to +259 ppm is allowed by using frequency adjustment) and an external feedback resistor (4.7 M) connected between the RTC1 and RTC2 pins. The oscillator is controlled by the RUN bit in the Clock Control Register.

6.2 Divider chain

The divider chain operates with the 32 kHz oscillator output and divides this signal down to produce three different clocks with periods of 1 second, 1.5 second and 1 minute. Depending on the state of the ITS and SITS bits in the Clock Control Register, the falling edge of the 1 second, 1.5 second or 1 minute clock is used to set the Clock Interrupt Flag (CIF) in the Clock Control Register. Since the clock interrupt is used to let the microcontroller leave the Stop mode, it is wire ORed with the external interrupt (CE/ must be enabled in the Clock Control Register (ECI = 1) and by execution of EN I. The clock interrupt will then be treated as an external interrupt
T0) and has the same functionality, e.g. it
PCD3745A

6.3 Frequency adjustment

Frequency adjustment is used to extend the interrupt time by defining the number of 16 kHz clocks in the Frequency Adjustment Register that will be counted twice within the first 1 second or 1.5 second period after a minute interrupt. The DIV512 is reset if its contents is equal to FAR, this will extend the time of the next interrupt. This is done within the first 1 second or 1.5 seconds of every minute. If the second interrupt is used (ITS = 1 and SITS = 0), every 60th interval may be up to 15.3 ms longer than the others as a result of the frequency adjustment. If the 1.5 second interrupt is used (ITS = 1 and SITS = 1), the prolongation will affect every 40th interval. The adjusted Minute Interrupt Time (MIT) shows now a maximum deviation of
0.5 ppm. The frequency adjustment value of the real-time clock
section is defined by the decimal value of the contents of the 8-bit Frequency Adjustment Register. It can be read or written. The significance of the individual bits is illustrated by the following equation:
14
---------------- -
Minute Interrupt Time (MIT) 60 2
Table 7 shows the recommended correction factor FAR for all allowed real-time clock frequencies (FRCO).
The value of CLCR and FAR at reset is 00H.
FRCO
+×=
FAR
----------- -
14
2
Additionally, the divider chain generates a 16 kHz clock (RCO) that can be routed through port line P1.7/RCO, controlled by the ERCO bit in the Clock Control Register.
1999 Feb 02 7
This text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here in
_white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here inThis text is here in
white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader. white to force landscape pages to be ...
1999 Feb 02 8
Philips Semiconductors Product specification
8-bit microcontroller with 4.5 kbytes OTP
memory and 32 kHz real-time clock
RUN
RTC2RTC2
32 kHz
COMPARE LOGIC
register reset
DIV512DIV2
internal bus
compare bit
FAR
DIV32/DIV48
DIV60 60 s
P1.7/RCO
1.5 s
1.0 s
RTCI
ERCOTST1TST2SITS RUN ITS CIF ECI CLCR
INTERRUPT
SELECT
MBH919
PCD3745A
Fig.4 RTC block diagram.
handbook, full pagewidth
Philips Semiconductors Product specification
8-bit microcontroller with 4.5 kbytes OTP
PCD3745A
memory and 32 kHz real-time clock

6.4 Clock Control Register (CLCR) Table 3 Clock Control Register (address 20H)

76543210
SITS TST2 TST1 ERCO RUN ITS CIF ECI
Table 4 Description of CLCR bits
BIT SYMBOL DESCRIPTION
7 SITS Second Interrupt Time Select. If SITS = 1 and ITS = 1, then the interrupt time is
1.5 seconds. 6 TST2 Test 2 input. This is a test bit and must be fixed at zero by user software. 5 TST1 Test 1 input. This is a test bit and must be fixed at zero by user software. 4 ERCO Enable 16 kHz Clock Output. If ERCO = 0, then P1.7/RCO is a port line. If ERCO = 1,
then P1.7/RCO is a 16 kHz clock output. The port instructions for P1.7/RCO are not inhibited and therefore the state of both the port line and flip-flop may be read in and the port flip-flop may be written to by port instructions.
3 RUN Clock Run/Stop. If RUN = 0, then the 32 kHz oscillator is stopped and the divider chain
is reset. If RUN = 1, then the 32 kHz oscillator and the divider chain are running.
2 ITS Interrupt Time Select.If ITS = 1 and SITS = 0, then the interrupt time is one second. If
ITS = 0 and SITS = X, then the interrupt time is one minute.
1 CIF Clock Interrupt Flag. Set by hardware, if RTC divider chain overflows (every second,
1.5 second or minute depending on ITS) or by software. Reset: by software. 0 ECI Enable Clock Interrupt. If ECI = 0, the RTC interrupt is disabled. If ECI = 1, the RTC
interrupt is enabled.

6.5 Frequency Adjustment Register (FAR) Table 5 Frequency Adjustment Register (address 21H)

76543210
FAR7 FAR6 FAR5 FAR4 FAR3 FAR2 FAR1 FAR0
Table 6 Description of FAR bits
BIT SYMBOL DESCRIPTION
7 FAR7 The state of these 8-bits determine the frequency adjustment value for the real-time 6 FAR6 5 FAR5 4 FAR4 3 FAR3 2 FAR2 1 FAR1 0 FAR0
clock section; see Table 7.
1999 Feb 02 9
Philips Semiconductors Product specification
8-bit microcontroller with 4.5 kbytes OTP memory and 32 kHz real-time clock
Table 7 Selection of FRCO
FAR (HEX) FRCO
00 16384.000 01 16384.018 02 16384.033 03 16384.051 04 16384.066 05 16384.084 06 16384.100 07 16384.117 08 16384.135 09 16384.150 0A 16384.168
0B 16384.184 0C 16384.201 0D 16384.217 0E 16384.234 0F 16384.250
10 16384.268
11 16384.283
12 16384.301
13 16384.316
14 16384.334
15 16384.350
16 16384.367
17 16384.385
18 16384.400
19 16384.418 1A 16384.434 1B 16384.451 1C 16384.467 1D 16384.484 1E 16384.500 1F 16384.518
20 16384.533
21 16384.551
PCD3745A
FAR (HEX) FRCO
22 16384.566 23 16384.584 24 16384.600 25 16384.617 26 16384.635 27 16384.650 28 16384.668 29 16384.684 2A 16384.701
2B 16384.717 2C 16384.734 2D 16384.750 2E 16384.768 2F 16384.783
30 16384.801
31 16384.816
32 16384.834
33 16384.850
34 16384.867
35 16384.885
36 16384.900
37 16384.918
38 16384.934
39 16384.951 3A 16384.967 3B 16384.984 3C 16385.000 3D 16385.018 3E 16385.033 3F 16385.051
40 16385.066
41 16385.084
42 16385.100
43 16385.117
1999 Feb 02 10
Loading...
+ 22 hidden pages