Rainbow-electronics AT89LS8252 Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Capteurs Rainbow-electronics AT89LS8252. Rainbow Electronics AT89LS8252 User Manual Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 31
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 0
AT89LS8252
4-137
8-Bit
Microcontroller
with 8K Bytes
Flash
AT89LS8252
Features
Compatible with MCS-51
Products
8K Bytes of In-System Reprogrammable Downloadable Flash Memory
- SPI Serial Interface for Program Downloading
- Endurance: 1,000 Write/Erase Cycles
2K Bytes EEPROM
- Endurance: 100,000 Write/Erase Cycles
2.7V to 6V Operating Range
Fully Static Operation: 0 Hz to 12 MHz
Three-Level Program Memory Lock
256 x 8 bit Internal RAM
32 Programmable I/O Lines
Three 16 bit Timer/Counters
Nine Interrupt Sources
Programmable UART Serial Channel
SPI Serial Interface
Low Power Idle and Power Down Modes
Interrupt Recovery From Power Down
Programmable Watchdog Timer
Dual Data Pointer
Power Off Flag
Description
The AT89LS8252 is a low-power, wide-voltage range, high-performance CMOS 8-bit
microcomputer with 8K bytes of Downloadable Flash programmable and erasable
read only memory and 2K bytes of EEPROM. The device is manufactured using
Atmel’s high density nonvolatile memory technology and is compatible with the indus-
try standard 80C51 instruction set and pinout. The on-chip Downloadable Flash
allows the program memory to be reprogrammed in-system through an SPI serial
interface or by a conventional nonvolatile memory programmer. By combining a ver-
satile 8-bit CPU with Downloadable Flash on a monolithic chip, the Atmel
AT89LS8252 is a powerful microcomputer which provides a highly flexible and cost
effective solution to many embedded control applications.
The AT89LS8252 provides the following standard features: 8K bytes of Downloadable
Flash, 2K bytes of EEPROM, 256 bytes of RAM, 32 I/O lines, programmable watch-
dog timer, two Data Pointers, three 16-bit timer/counters, a six-vector two-level inter-
rupt architecture, a full duplex serial port, on-chip oscillator, and clock circuitry. In
addition, the AT89LS8252 is designed with static logic for operation down to zero fre-
quency and supports two software selectable power saving modes. The Idle Mode
stops the CPU while allowing the RAM, timer/counters, serial port, and interrupt sys-
tem to continue functioning. The Power Down Mode saves the RAM contents but
freezes the oscillator, disabling all other chip functions until the next interrupt or hard-
ware reset.
The Downloadable Flash can be changed a single byte at a time and is accessible
through the SPI serial interface. Holding RESET active forces the SPI bus into a serial
programming interface and allows the program memory to be written to or read from
unless Lock Bit 2 has been activated.
0850B-B–12/97
Vue de la page 0
1 2 3 4 5 6 ... 30 31

Résumé du contenu

Page 1 - Description

AT89LS82524-1378-Bit Microcontrollerwith 8K Bytes FlashAT89LS8252 Features•Compatible with MCS-51™Products•8K Bytes of In-System Reprogrammable Downlo

Page 2

AT89LS82524-146Timer 0 and 1Timer 0 and Timer 1 in the AT89LS8252 operate the sameway as Timer 0 and Timer 1 in the AT89C51, AT89C52 andAT89C55. For f

Page 3

AT89LS82524-147Figure 2 shows Timer 2 automatically counting up whenDCEN = 0. In this mode, two options are selected by bitEXEN2 in T2CON. If EXEN2 =

Page 4

AT89LS82524-148Figure 3. Timer 2 Auto Reload Mode (DCEN = 1)Figure 4. Timer 2 in Baud Rate Generator ModeOSCSMOD1RCLKTCLKRxCLOCKTxCLOCKT2EX PINT2 PI

Page 5

AT89LS82524-149Baud Rate GeneratorTimer 2 is selected as the baud rate generator by settingTCLK and/or RCLK in T2CON (Table 2). Note that the baudrate

Page 6

AT89LS82524-150Programmable Clock OutA 50% duty cycle clock can be programmed to come out onP1.0, as shown in Figure 5. This pin, besides being a regu

Page 7

AT89LS82524-151The interconnection between master and slave CPUs withSPI is shown in the following figure. The SCK pin is theclock output in the maste

Page 8

AT89LS82524-152InterruptsThe AT89LS8252 has a total of six interrupt vectors: twoexternal interrupts (INT0 and INT1), three timer interrupts(Timers 0,

Page 9

AT89LS82524-153Oscillator Characteristics XTAL1 and XTAL2 are the input and output, respectively,of an inverting amplifier that can be configured for

Page 10 - AT89LS8252

AT89LS82524-154Program Memory Lock BitsThe AT89LS8252 has three lock bits that can be left unpro-grammed (U) or can be programmed (P) to obtain the ad

Page 11

AT89LS82524-1557. To verify the byte just programmed, bring pin P2.7 to “L” and read the programmed data at pins P0.0 to P0.7.8. Repeat steps 3 throug

Page 12

AT89LS82524-138Pin DescriptionVCCSupply voltage.GNDGround.Port 0Port 0 is an 8-bit open drain bidirectional I/O port. As anoutput port, each pin can s

Page 13

AT89LS82524-156Instruction SetNotes: 1. DATA polling is used to indicate the end of a write cycle which typically takes less than 10 ms at 2.7V.2. “aa

Page 14

AT89LS82524-157Flash and EEPROM Parallel Programming ModesNotes: 1. “h” = weakly pulled “High” internally.2. Chip Erase and Serial Programming Fuse re

Page 15

AT89LS82524-158Figure 14. Programming the Flash/EEPROM MemoryP1P2.6P3.6P2.0 - P2.5A0-A7ADDR.0000H/27FFHSEE FLASHPROGRAMMINGMODES TABLE3-12 MHzA8 - A13

Page 16

AT89LS82524-159Flash Programming and Verification Characteristics - Parallel ModeTA = 0°C to 70°C, VCC = 5.0V ± 10%Symbol Parameter Min Max UnitsVPPPr

Page 17

AT89LS82524-160Flash/EEPROM Programming and Verification Waveforms - Parallel ModeSerial Downloading Waveforms

Page 18

AT89LS82524-161Absolute Maximum Ratings*Operating Temperature...-55°C to +125°C*NOTICE: Stresses beyond those listed under “Absolut

Page 19

AT89LS82524-162AC Characteristics Under operating conditions, load capacitance for Port 0, ALE/PROG, and PSEN = 100 pF; load capacitance for all other

Page 20

AT89LS82524-163External Program Memory Read CycleExternal Data Memory Read Cycle

Page 21

AT89LS82524-164External Data Memory Write CycleExternal Clock Drive WaveformsExternal Clock DriveSymbol ParameterVCC = 2.7V to 6.0VUnitsMin Max1/tCLCL

Page 22

AT89LS82524-165Serial Port Timing: Shift Register Mode Test ConditionsThe values in this table are valid for VCC = 2.7V to 6V and Load Capacitance = 8

Page 23

AT89LS82524-139Block DiagramPORT 2 DRIVERSPORT 2LATCHP2.0 - P2.7FLASHPORT 0LATCHRAMEEPROMPROGRAMADDRESSREGISTERBUFFERPCINCREMENTERPROGRAMCOUNTERDPTRIN

Page 24

AT89LS82524-166AT89LS8252TYPICAL ICC (ACTIVE) at 25°C0481216202404 8 12 16 20 24F (MHz)V = 6.0VCCV = 5.0VCCV = 3.0VCCICCmA051015203.0V4.0V 5.0V 6.0VIC

Page 25

AT89LS82524-167Ordering InformationSpeed(MHz)PowerSupplyOrdering Code Package Operation Range12 2.7V to 6.0V AT89LS8252-12ACAT89LS8252-12JCAT89LS8252-

Page 26

AT89LS82524-140Pin DescriptionFurthermore, P1.4, P1.5, P1.6, and P1.7 can be configuredas the SPI slave port select, data input/output and shiftclock

Page 27

AT89LS82524-141XTAL1Input to the inverting oscillator amplifier and input to theinternal clock operating circuit. XTAL2Output from the inverting oscil

Page 28

AT89LS82524-142User software should not write 1s to these unlisted loca-tions, since they may be used in future products to invokenew features. In tha

Page 29

AT89LS82524-143Dual Data Pointer Registers To facilitate accessing bothinternal EEPROM and external data memory, two banks of16 bit Data Pointer Regis

Page 30

AT89LS82524-144Table 4. SPCR—SPI Control RegisterSPCR Address = D5H Reset Value = 0000 01XXBSPIE SPE DORD MSTR CPOL CPHA SPR1 SPR0Bit76543210Symbol Fu

Page 31

AT89LS82524-145Data Memory—EEPROM and RAMThe AT89LS8252 implements 2K bytes of on-chipEEPROM for data storage and 256 bytes of RAM. Theupper 128 bytes

Commentaires sur ces manuels

Pas de commentaire