Rainbow-electronics AT89S53 Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Sensoren Rainbow-electronics AT89S53 herunter. Rainbow Electronics AT89S53 User Manual Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 33
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
1
Features
Compatible with MCS-51
Products
12K Bytes of In-System Reprogrammable Downloadable Flash Memory
SPI Serial Interface for Program Downloading
Endurance: 1,000 Write/Erase Cycles
4V to 6V Operating Range
Fully Static Operation: 0 Hz to 24 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 AT89S53 is a low-power, high-performance CMOS 8-bit microcomputer with 12K
bytes of downloadable Flash programmable and erasable read only memory. The
device is manufactured using Atmels high-density nonvolatile memory technology
and is compatible with the industry-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 versatile 8-bit CPU with downloadable Flash on a monolithic chip, the
Atmel AT89S53 is a powerful microcomputer which provides a highly-flexible and
cost-effective solution to many embedded control applications.
The AT89S53 provides the following standard features: 12K bytes of downloadable
Flash, 256 bytes of RAM, 32 I/O lines, programmable watchdog timer, two Data Point-
ers, 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 AT89S53 is
designed with static logic for operation down to zero frequency and supports two soft-
ware 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 interrupt or hardware reset.
The downloadable Flash can change a single byte at a time and is accessible through
the SPI serial interface. Holding RESET active forces the SPI bus into a serial pro-
gramming interface and allows the program memory to be written to or read from
unless Lock Bit 2 has been activated.
Rev. 0787D06/00
8-bit
Microcontroller
with 12K Bytes
Flash
AT89S53
Seitenansicht 0
1 2 3 4 5 6 ... 32 33

Inhaltsverzeichnis

Seite 1 - Microcontroller

1Features• Compatible with MCS-51™ Products• 12K Bytes of In-System Reprogrammable Downloadable Flash Memory– SPI Serial Interface for Program Downloa

Seite 2 - Pin Configurations

AT89S5310Capture ModeIn the capture mode, two options are selected by bitEXEN2 in T2CON. If EXEN2 = 0, Timer 2 is a 16-bit timeror counter which upon

Seite 3 - Block Diagram

AT89S5311Figure 2. Timer 2 in Auto Reload Mode (DCEN = 0)Table 9. T2MOD—Timer 2 Mode Control RegisterT2MOD Address = 0C9H Reset Value = XXXX XX00BNo

Seite 4

AT89S5312Figure 3. Timer 2 Auto Reload Mode (DCEN = 1)Figure 4. Timer 2 in Baud Rate Generator ModeOSCSMOD1RCLKTCLKRxCLOCKTxCLOCKT2EX PINT2 PINTR2

Seite 5

AT89S5313Baud Rate GeneratorTimer 2 is selected as the baud rate generator by settingTCLK and/or RCLK in T2CON (Table 2). Note that thebaud rates for

Seite 6 - Special Function Registers

AT89S5314Figure 5. Timer 2 in Clock-Out ModeFigure 6. SPI Block DiagramOSCILLATOR8/16-BIT SHIFT REGISTERREAD DATA BUFFERPIN CONTROL LOGICSPI CONTROL

Seite 7

AT89S5315UARTThe UART in the AT89S53 operates the same way as theUART in the AT89C51, AT89C52 and AT89C55. For fur-ther information, see the October 1

Seite 8

AT89S5316Figure 9. SPI Transfer Format with CPHA = 1*Not defined but normally LSB of previously transmitted characterInterruptsThe AT89S53 has a tota

Seite 9 - Timer 0 and 1

AT89S5317Timer 2 interrupt is generated by the logical OR of bits TF2and EXF2 in register T2CON. Neither of these flags iscleared by hardware when the

Seite 10 - Capture Mode

AT89S5318Idle ModeIn idle mode, the CPU puts itself to sleep while all the on-chip peripherals remain active. The mode is invoked bysoftware. The cont

Seite 11

AT89S5319Programming the FlashAtmel’s AT89S53 Flash Microcontroller offers 12K bytes ofin-system reprogrammable Flash Code memory.The AT89S53 is norma

Seite 12

AT89S532Pin DescriptionVCCSupply voltage.GNDGround.Port 0Port 0 is an 8-bit open drain bidirectional I/O port. As anoutput port, each pin can sink eig

Seite 13 - Programmable Clock Out

AT89S5320Reading the Signature Bytes: The signature bytes areread by the same procedure as a normal verification oflocations 030H and 031H, except tha

Seite 14 - Figure 6. SPI Block Diagram

AT89S5321.Notes: 1. “h” = weakly pulled “High” internally.2. Chip Erase and Serial Programming Fuse require a 10 ms PROG pulse. Chip Erase needs to be

Seite 15 - 8-BIT SHIFT REGISTER

AT89S5322Figure 13. Programming the Flash MemoryFigure 14. Verifying the Flash MemoryFigure 15. Flash Serial DownloadingP1P2.6P3.6P2.0 - P2.5A0 -

Seite 16 - 1 2 3 4 5 6 7 8

AT89S5323Flash Programming and Verification Characteristics – Parallel ModeTA = 0°C to 70°C, VCC = 5.0V ± 10%Symbol Parameter Min Max UnitsVPPProgramm

Seite 17 - Oscillator Characteristics

AT89S5324Flash Programming and Verification Waveforms – Parallel ModeSerial Downloading WaveformsSERIAL CLOCK INPUTSERIAL DATA INPUTSCK/P1.7MOSI/P1.5M

Seite 18

AT89S5325Notes: 1. Under steady state (non-transient) conditions, IOL must be externally limited as follows:Maximum IOL per port pin: 10 mAMaximum IOL

Seite 19 - Programming the Flash

AT89S5326AC Characteristics Under operating conditions, load capacitance for Port 0, ALE/PROG, and PSEN = 100 pF; load capacitance for all otheroutput

Seite 20 - Serial Downloading

AT89S5327External Program Memory Read CycleExternal Data Memory Read Cycle

Seite 21 - Instruction Set

AT89S5328External Data Memory Write CycleExternal Clock Drive WaveformsExternal Clock DriveSymbol Parameter VCC = 4.0V to 6.0VMin Max Units1/tCLCLOsci

Seite 22

AT89S5329.Shift Register Mode Timing WaveformsAC Testing Input/Output Waveforms(1)Notes: 1. AC Inputs during testing are driven at VCC - 0.5V for a lo

Seite 23 - = 5.0V ± 10%

AT89S533Block DiagramPORT 2 DRIVERSPORT 2LATCHP2.0 - P2.7FLASHPORT 0LATCHRAMPROGRAMADDRESSREGISTERBUFFERPCINCREMENTERPROGRAMCOUNTERDPTRINSTRUCTIONREGI

Seite 24 - Serial Downloading Waveforms

AT89S5330Notes: 1. XTAL1 tied to GND for ICC (power-down)2. Lock bits programmed

Seite 25 - DC Characteristics

AT89S5331Ordering InformationSpeed(MHz)PowerSupplyOrdering Code Package Operation Range24 4.0V to 6.0V AT89S53-24ACAT89S53-24JCAT89S53-24PC44A44J40P6C

Seite 26 - AC Characteristics

AT89S5332Packaging InformationControlling dimension: millimeters1.20(0.047) MAX10.10(0.394)9.90(0.386)SQ12.21(0.478)11.75(0.458)SQ0.75(0.030)0.45(0.01

Seite 27

© Atmel Corporation 2000.Atmel Corporation makes no warranty for the use of its products, other than those expressly contained in the Company’s standa

Seite 28 - External Clock Drive

AT89S534Some Port 1 pins provide additional functions. P1.0 andP1.1 can be configured to be the timer/counter 2 externalcount input (P1.0/T2) and the

Seite 29 - Float Waveforms

AT89S535EA/VPPExternal Access Enable. EA must be strapped to GND inorder to enable the device to fetch code from external pro-gram memory locations st

Seite 30 - 2. Lock bits programmed

AT89S536Special Function RegistersA map of the on-chip memory area called the Special Func-tion Register (SFR) space is shown in Table 1.Note that not

Seite 31 - Ordering Information

AT89S537SPI Registers Control and status bits for the Serial Periph-eral Interface are contained in registers SPCR (shown inTable 4) and SPSR (shown i

Seite 32 - Packaging Information

AT89S538Table 4. SPCR—SPI Control RegisterSPCR Address = D5H Reset Value = 0000 01XXBSPIE SPE DORD MSTR CPOL CPHA SPR1 SPR0Bit76543210Symbol Function

Seite 33 - 0787D–06/00/xM

AT89S539Data Memory - RAMThe AT89S53 implements 256 bytes of RAM. The upper128 bytes of RAM occupy a parallel space to the SpecialFunction Registers.

Kommentare zu diesen Handbüchern

Keine Kommentare