background image

3

The AT89C52 provides the following standard features: 8K bytes of Flash, 256 bytes of RAM, 32 I/O lines,
three 16-bit timer/counters, a six-vector two-level interrupt architecture, a full-duplex serial port, on-chip
oscillator, and clock circuitry. In addition, the AT89C52 is designed with static logic for operation down to
zero frequency and supports two software selectable power saving modes. The Idle Mode stops the CPU
while allowing the RAM, timer/counters, serial port, and interrupt system to continue functioning. The
Power-down mode saves the RAM contents but freezes the oscillator, disabling all other chip functions
until the next hardware reset.

PIN DESCRIPTION

VCC
Supply voltage.

GND
Ground.

Port 0
Port 0 is an 8-bit open drain bi-directional I/O port. As an output port, each pin can sink eight TTL inputs.
When 1s are written to port 0 pins, the pins can be used as high impedance inputs. 
Port 0 can also be configured to be the multiplexed low order address/data bus during accesses to
external program and data memory. In this mode, P0 has internal pullups.
Port 0 also receives the code bytes during Flash programming and outputs the code bytes during program
verification. External pullups are required during program verification. 

Port 1
Port 1 is an 8-bit bi-directional I/O port with internal pullups. The Port 1 output buffers can sink/source four
TTL inputs. When 1s are written to Port 1 pins, they are pulled high by the internal pullups and can be
used as inputs. As inputs, Port 1 pins that are externally being pulled low will source current (I

IL

) because

of the internal pullups. 

In addition, P1.0 and P1.1 can be configured to be the timer/counter 2 external count input (P1.0/T2) and
the timer/counter 2 trigger input (P1.1/T2EX), respectively, as shown in the following table.
Port 1 also receives the low-order address bytes during Flash programming and verification.

Port 2
Port 2 is an 8-bit bi-directional I/O port with internal pullups. The Port 2 output buffers can sink/source four
TTL inputs. When 1s are written to Port 2 pins, they are pulled high by the internal pullups and can be
used as inputs. As inputs, Port 2 pins that are externally being pulled low will source current (I

IL

) because

of the internal pullups. Port 2 emits the high-order address byte during fetches from external program
memory and during accesses to external data memory that use 16-bit addresses (MOVX@DPTR). In this
application, Port 2 uses strong internal pullups when emitting 1s. During accesses to external data
memory that use 8-bit addresses (MOVX@RI), Port 2 emits the contents of the P2 Special Function
Register. Port 2 also receives the high-order address bits and some control signals during Flash
programming and verification.

Port 3
Port 3 is an 8-bit bi-directional I/O port with internal pullups. The Port 3 output buffers can sink/source four
TTL inputs. When 1s are written to Port 3 pins, they are pulled high by the internal pullups and can be
used as inputs. As inputs, Port 3 pins that are externally being pulled low will source current (I

IL

) because

of the pullups.
Port 3 also serves the functions of various special features of the AT89C51, as shown in the following
table. 
Port 3 also receives some control signals for Flash programming and verification.

Port Pin

Alternate Functions

P1.0

T2 (external count input to Timer/Counter 2), clock-out

P1.1

T2EX (Timer/Counter 2 capture/reload trigger and direction control)

Содержание PW-9242N

Страница 1: ...ERVICE MANUAL P R O G R A M TIMER PW 9242N...

Страница 2: ...cations 5 Electrical Parts List 6 7 Top and Bottom View of P C Board 8 Wiring Diagram 11 Block Diagram 12 Schematic Diagram 13 14 Exploded View of Cabinet Chassis Mechanical Parts List 15 16 Ass y Dra...

Страница 3: ...QFP 1 2 3 4 5 6 7 8 9 10 11 33 32 31 30 29 28 27 26 25 24 23 P1 5 P1 6 P1 7 RST RXD P3 0 NC TXD P3 1 INT0 P3 2 INT1 P3 3 T0 P3 4 iT1 P3 5 P0 4 AD4 P0 5 AD5 P0 6 AD6 P0 7 AD7 EA VPP NC ALE PROG PSEN P2...

Страница 4: ...OGRAM COUNTER DPTR RAM ADDR REGISTER INSTRUCTION REGISTER B REGISTER INTERRUPT SERIAL PORT AND TIMER BLOCKS STACK POINTER ACC TMP2 TMP1 ALU PSW TIMING AND CONTROL PORT 3 LATCH PORT 3 DRIVERS P3 0 P3 7...

Страница 5: ...0 and P1 1 can be configured to be the timer counter 2 external count input P1 0 T2 and the timer counter 2 trigger input P1 1 T2EX respectively as shown in the following table Port 1 also receives th...

Страница 6: ...ory When the AT89C52 is executing code from external program memory PSEN is activated twice each machine cycle except that two PSEN activations are skipped during each access to external data memory E...

Страница 7: ...s No 2 3 seconds No 3 3 seconds No 4 5 seconds No 5 5 seconds No 6 7 seconds No 7 7 seconds No 8 10 seconds No 9 10 seconds No 10 15 seconds No 11 20 seconds No 12 30 seconds No 13 30 seconds No 14 40...

Страница 8: ...CB 4005179300 PCB MAIN B D PW 9242N PCB RLY5 5528001040 RELAY RZ 24 RY24W DC24V RY24W RLY4 5528001040 RELAY RZ 24 RY24W DC24V RY24W RLY3 5528001040 RELAY RZ 24 RY24W DC24V RY24W RLY2 5528001040 RELAY...

Страница 9: ...CK B D PW 9242N PCB JK11 4438191010 D SUB PLUG M 9P D SUB9 JK12 4465997702 SCREW TERMINAL 2P 2P CR11 S35101035331 CAP CE B0 01UF 50V K 0805 2012 0 01 50 CR12 S35101035331 CAP CE B0 01UF 50V K 0805 201...

Страница 10: ...8 TOP AND BOTTOM VIEW OF P C BOARD...

Страница 11: ...9...

Страница 12: ...10...

Страница 13: ...11 WIRING DIAGRAM...

Страница 14: ...12 BLOCK DIAGRAM...

Страница 15: ...14 13 IC DIAGRAM...

Страница 16: ...16 15 D VIEW OF CABINET CHASSIS MECHANICAL PARTS LIST...

Страница 17: ...UT CHANNEL IN 24V RS 232C 3 4 5 6 7 2 1 8 15 16 14 13 11 10 9 12 1 1 2 2 3 4 5 6 7 TACK KNOB 1 048543992220 AC INLET AC OUTLET 5 4438193810 1 8 046121673113 1 9 10 11 12 1 4 046121673112 1 04612369471...

Страница 18: ...19 NOTE...

Страница 19: ...www inter m com MADE IN KOREA 2003 8 9017100400...

Отзывы: