Você está na página 1de 3

AT89C52 is an 8-bit microcontroller and belongs to Atmel's 8051 family.

AT89C52 has 8KB of Flash programmable and erasable read only memory (PEROM) and 256 bytes of RAM. AT89C52 has an endurance of 1000 Write/Erase cycles which means that it can be erased and programmed to a maximum of 1000 times.

Though very slight difference between the features of AT89C51 and AT89C52, they are very similar in their pin configurations* and operations. The differences between AT89C51 and AT89C52 have been tabulated below.

RAM Flash Number of Timers/Counters Number of Interrupt Sources

AT89C52 256 Bytes 8 KB 3 (16-bit each) 8

AT89C51 128 Bytes 4 KB 2 (16-bit each) 6

*The pin configuration of AT89C52 is exactly similar to that of AT89C51 except that the first two pins, P1.0 and P1.1 are multiplexed to correspond to Timer2 operations as given in the following table.

Existing P1.0 P1.1

Alternate T2 T2 EX

Function Timer/counter 2 External Count input Timer/counter 2 Trigger input

While AT89C51 has two timers (Timer0 & Timer1), AT89C52 also has Timer2. Corresponding to Timer2, there are extra SFRs (Special Function Registers) T2CON & T2MOD. Also there are registers RCAP2H & RCAP2L to configure 16 bit Capture & Auto-reload modes of Timer2.

Pin Diagram:

Pin Description: Pin No Function External count input to Timer/Counter 2, clock1 out Timer/Counter 2 capture/reload trigger and 2 direction control 3 4 5 8 bit input/output port (P1) pins 6 7 8 9 Reset pin; Active high

Name T2 T2 EX P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 Reset

10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

Input (receiver) for serial communication Output (transmitter) for serial communication External interrupt 1 External interrupt 2 Timer1 external input Timer2 external input Write to external data memory Read from external data memory

RxD TxD Int0 Int1 T0 T1 Write Read 8 bit input/output port (P3) pins

P3.0 P3.1 P3.2 P3.3 P3.4 P3.5 P3.6 P3.7 Crystal 2 Crystal 1 Ground P2.0/ A8 P2.1/ A9 P2.2/ A10 P2.3/ A11 P2.4/ A12 P2.5/ A13 P2.6/ A14 P2.7/ A15 PSEN ALE Prog EA Vpp P0.7/ AD7 P0.6/ AD6 P0.5/ AD5 P0.4/ AD4 P0.3/ AD3 P0.2/ AD2 P0.1/ AD1 P0.0/ AD0 Vcc

Quartz crystal oscillator (up to 24 MHz) Ground (0V) 8 bit input/output port (P2) pins / High-order address bits when interfacing with external memory

31 32 33 34 35 36 37 38 39 40

Program store enable; Read from external program memory Address Latch Enable Program pulse input during Flash programming External Access Enable; Vcc for internal program executions Programming enable voltage; 12V (during Flash programming) 8 bit input/output port (P0) pins Low-order address bits when interfacing with external memory

Supply voltage; 5V (up to 6.6V)

Você também pode gostar