at87f52-20qi ATMEL Corporation, at87f52-20qi Datasheet
at87f52-20qi
Related parts for at87f52-20qi
at87f52-20qi Summary of contents
Page 1
... Flash allows the program memory to be user programmed by a conventional nonvola- tile memory programmer. By combining a versatile 8-bit CPU with QuickFlash on a monolithic chip, the Atmel AT87F52 is a powerful microcomputer which provides a highly flexible and cost effective solution to many embedded control applications. ...
Page 2
Block Diagram V CC GND RAM ADDR. REGISTER B REGISTER PSEN TIMING ALE/PROG INSTRUCTION AND REGISTER CONTROL PP RST OSC 2 P0.0 - P0.7 PORT 0 DRIVERS PORT 0 PORT 2 RAM LATCH LATCH ACC TMP1 TMP2 ...
Page 3
... QuickFlash, 256 bytes of RAM, 32 I/O lines, three 16-bit timer/counters, a six-vector two-level interrupt archi- tecture, a full duplex serial port, on-chip oscillator, and clock circuitry. In addition, the AT87F52 is designed with static logic for operation down to zero frequency and sup- ports two software selectable power saving modes. The ...
Page 4
... PSEN Program Store Enable is the read strobe to external pro- gram memory. When the AT87F52 is executing code from external pro- gram memory, PSEN is activated twice each machine cycle, except that two PSEN activations are skipped during each access to external data memory. ...
Page 5
... EXEN2 = 1. When either RCLK or TCLK = 1, this bit is ignored and the timer is forced to auto-reload on Timer 2 overflow. Data Memory The AT87F52 implements 256 bytes of on-chip RAM. The upper 128 bytes occupy a parallel address space to the Special Function Registers. That means the upper 128 bytes have the same addresses as the SFR space but are physically separate from SFR space ...
Page 6
... Note that stack operations are examples of indirect addressing, so the upper 128 bytes of data RAM are avail- able as stack space. Timer 0 and 1 Timer 0 and Timer 1 in the AT87F52 operate the same way as Timer 0 and Timer 1 in the AT87F51. Timer 2 Timer 16-bit Timer/Counter that can operate as either a timer or an event counter ...
Page 7
Figure 2 shows Timer 2 automatically counting up when DCEN = 0. In this mode, two options are selected by bit EXEN2 in T2CON. If EXEN2 = 0, Timer 2 counts up to 0FFFFH and then sets the TF2 bit ...
Page 8
Figure 3. Timer 2 Auto Reload Mode (DCEN = 1) ÷ 12 OSC C/ C/ PIN Figure 4. Timer 2 in Baud Rate Generator Mode NOTE: OSC. FREQ. IS DIVIDED BY 2, NOT 12 ÷ ...
Page 9
Baud Rate Generator Timer 2 is selected as the baud rate generator by setting TCLK and/or RCLK in T2CON (Table 2). Note that the baud rates for transmit and receive can be different if Timer 2 is used for the ...
Page 10
... RCAP2H and RCAP2L. Interrupts The AT87F52 has a total of six interrupt vectors: two exter- nal interrupts (INT0 and INT1), three timer interrupts (Tim- ers 0, 1, and 2), and the serial port interrupt. These inter- rupts are all shown in Figure 6 ...
Page 11
Oscillator Characteristics XTAL1 and XTAL2 are the input and output, respectively inverting amplifier that can be configured for use as an on-chip oscillator, as shown in Figure 7. Either a quartz crystal or ceramic resonator may be used. ...
Page 12
... Programming Algorithm: Before programming the AT87F52, the address, data, and control signals should be set up according to the QuickFlash programming mode table and Figures 9 and 10. To program the AT87F52, take the following steps: 1. Input the desired memory location on the address lines. 2. Input the appropriate data byte on the data lines. ...
Page 13
Programming Interface Every code byte in the QuickFlash array can be pro- grammed by using the appropriate combination of control signals. The write operation cycle is self-timed and once initiated, will automatically time itself to completion. QuickFlash Programming Modes Mode ...
Page 14
... Figure 10. Verifying the QuickFlash Memory + ADDR. OOOOH/1FFFH PGM P0 DATA ALE PROG SEE FLASH PROGRAMMING MODES TABLE 3-24 MHz RST V IH PSEN PP Not +5V AT87F52 PGM DATA P0 P2.0 - P2.4 (USE 10K A8 - A12 PULLUPS) P2.6 P2.7 ALE P3.6 P3.7 XTAL 2 EA XTAL1 RST GND PSEN Min Max Units 11.5 12 ...
Page 15
QuickFlash Programming and Verification Waveforms P1.0 - P1.7 P2.0 - P2.4 PORT 0 ALE/PROG EA/V PP P2.7 (ENABLE) P3.4 (RDY/BSY) PROGRAMMING ADDRESS DATA DVGL GHDX t AVGL t SHGL t GLGH V PP (2) t EHSH t ...
Page 16
Absolute Maximum Ratings* Operating Temperature.................................. -55°C to +125°C Storage Temperature ..................................... -65°C to +150°C Voltage on Any Pin with Respect to Ground .....................................-1.0V to +7.0V Maximum Operating Voltage ............................................ 6.6V DC Output Current...................................................... 15 Characteristics The values shown ...
Page 17
AC Characteristics Under operating conditions, load capacitance for Port 0, ALE/PROG, and PSEN = 100 pF; load capacitance for all other outputs = 80 pF. External Program and Data Memory Characteristics Symbol Parameter 1/t Oscillator Frequency CLCL t ALE Pulse ...
Page 18
External Program Memory Read Cycle t LHLL ALE t AVLL PSEN PORT 0 PORT 2 External Data Memory Read Cycle t LHLL ALE PSEN RD t AVLL PORT FROM RI OR DPL PORT 2 P2.0 - ...
Page 19
External Data Memory Write Cycle t LHLL ALE PSEN WR t AVLL PORT FROM RI OR DPL PORT 2 P2 A15 FROM DPH External Clock Drive Waveforms t CHCX V - ...
Page 20
Serial Port Timing: Shift Register Mode Test Conditions The values in this table are valid for V Symbol Parameter t Serial Port Clock Cycle Time XLXL t Output Data Setup to Clock Rising Edge QVXH t Output Data Hold After ...
Page 21
... Ordering Code AT87F52-12AC AT87F52-12JC AT87F52-12PC AT87F52-12AI AT87F52-12JI AT87F52-12PI AT87F52-16AC AT87F52-16JC AT87F52-16PC AT87F52-16AI AT87F52-16JI AT87F52-16PI AT87F52-20AC AT87F52-20JC AT87F52-20PC AT87F52-20AI AT87F52-20JI AT87F52-20QI AT87F52-24AC AT87F52-24JC AT87F52-24PC AT87F52-24AI AT87F52-24JI AT87F52-24PI Package Type Package Operation Range 44A Commercial 44J ( 40P6 44A Industrial 44J (- ...
Page 22
Packaging Information 44A, 44-Lead, Thin (1.0 mm) Plastic Gull Wing Quad Flat Package (TQFP) Dimensions in Millimeters and (Inches)* PIN 1 ID 0.80(0.031) BSC 0 7 0.20(.008) 0.09(.003) 0.75(0.030) 0.45(0.018) *Controlling dimension: millimeters 40P6, 40-Lead, 0.600" Wide, Plastic Dual Inline ...
Page 23
23 ...
Page 24
... Copyright Atmel Corporation 1998. Atmel Corporation assumes no responsibility for the use of any circuitry other than circuitry embodied in an Atmel Corporation product. No other circuit patent licenses are implied. Atmel Corporation’s products are not authorized for use as critical components in life support devices or systems. ...