Rainbow-electronics T89C51RD2 Bedienungsanleitung Seite 1

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

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 86
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
Rev. F - 15 February, 2001 1
T89C51RD2
0 to 40MHz Flash Programmable 8-bit Microcontroller
1. Description
ATMEL Wireless and Microcontrollers T89C51RD2 is
high performance CMOS Flash version of the 80C51
CMOS single chip 8-bit microcontroller. It contains a
64 Kbytes Flash memory block for program and for data.
The 64 Kbytes Flash memory can be programmed either
in parallel mode or in serial mode with the ISP capability
or with software. The programming voltage is internally
generated from the standard V
CC
pin.
The T89C51RD2 retains all features of the ATMEL
Wireless and Microcontrollers 80C52 with 256 bytes of
internal RAM, a 7-source 4-level interrupt controller and
three timer/counters.
In addition, the T89C51RD2 has a Programmable
Counter Array, an XRAM of 1024 bytes, an EEPROM
of 2048 bytes, a Hardware Watchdog Timer, a more
versatile serial channel that facilitates multiprocessor
communication (EUART) and a speed improvement
mechanism (X2 mode). Pinout is either the standard 40/
44 pins of the C52 or an extended version with 6 ports
in a 64/68 pins package.
The fully static design of the T89C51RD2 allows to
reduce system power consumption by bringing the clock
frequency down to any value, even DC, without loss of
data.
The T89C51RD2 has 2 software-selectable modes of
reduced activity for further reduction in power
consumption. In the idle mode the CPU is frozen while
the peripherals and the interrupt system are still
operating. In the power-down mode the RAM is saved
and all other functions are inoperative.
The added features of the T89C51RD2 makes it more
powerful for applications that need pulse width
modulation, high speed I/O and counting capabilities
such as alarms, motor control, corded phones, smart card
readers.
2. Features
80C52 Compatible
8051 pin and instruction compatible
Four 8-bit I/O ports (or 6 in 64/68 pins packages)
Three 16-bit timer/counters
256 bytes scratch pad RAM
7 Interrupt sources with 4 priority levels
ISP (In System Programming) using standard V
CC
power supply.
Boot FLASH contains low level FLASH
programming routines and a default serial loader
High-Speed Architecture
40 MHz in standard mode
20 MHz in X2 mode (6 clocks/machine cycle)
64K bytes on-chip Flash program / data Memory
Byte and page (128 bytes) erase and write
10k write cycles
On-chip 1024 bytes expanded RAM (XRAM)
Software selectable size (0, 256, 512, 768, 1024
bytes)
768 bytes selected at reset for T87C51RD2
compatibility
Dual Data Pointer
Variable length MOVX for slow RAM/peripherals
Improved X2 mode with independant selection for
CPU and each peripheral
2 k bytes EEPROM block for data storage
100K Write cycle
Programmable Counter Array with:
High Speed Output,
Compare / Capture,
Pulse Width Modulator,
Watchdog Timer Capabilities
Asynchronous port reset
Full duplex Enhanced UART
Low EMI (inhibit ALE)
Hardware Watchdog Timer (One-time enabled with
Reset-Out)
Power control modes:
Idle Mode.
Power-down mode.
Seitenansicht 0
1 2 3 4 5 6 ... 85 86

Inhaltsverzeichnis

Seite 1 - T89C51RD2

Rev. F - 15 February, 2001 1T89C51RD20 to 40MHz Flash Programmable 8-bit Microcontroller1. DescriptionATMEL Wireless and Microcontrollers T89C51RD2 is

Seite 2

Rev. F - 15 February, 2001 10T89C51RD26. Enhanced FeaturesIn comparison to the original 80C52, the T89C51RD2 implements some new features, which are:

Seite 3

11 Rev. F - 15 February, 2001T89C51RD2Figure 2. Mode Switching WaveformsThe X2 bit in the CKCON register (See Table 2.) allows to switch from 12 clock

Seite 4

Rev. F - 15 February, 2001 12T89C51RD2Reset Value = X000 0000bNot bit addressable1 T0X2Timer0 clock (This control bit is validated when the CPU clock

Seite 5

Rev. F - 15 February, 2001 13T89C51RD26.2. Dual Data Pointer Register DdptrThe additional data pointer can be used to speed up code execution and redu

Seite 6 - VQFP64 1.4

14 Rev. F - 15 February, 2001T89C51RD2; Block move using dual data pointers; Modifies DPTR0, DPTR1, A and PSW; note: DPS exits opposite of entry state

Seite 7

Rev. F - 15 February, 2001 15T89C51RD26.3. Expanded RAM (XRAM)The T89C51RD2 provide additional Bytes of random access memory (RAM) space for increased

Seite 8

16 Rev. F - 15 February, 2001T89C51RD2• The XRAM bytes can be accessed by indirect addressing, with EXTRAM bit cleared and MOVX instructions.This part

Seite 9

Rev. F - 15 February, 2001 17T89C51RD26.4. Timer 2The timer 2 in the T89C51RD2 is compatible with the timer 2 in the 80C52.It is a 16-bit timer/counte

Seite 10 - 6.1.1. Description

18 Rev. F - 15 February, 2001T89C51RD2Figure 5. Auto-Reload Mode Up/Down Counter (DCEN = 1)6.4.2. Programmable Clock-OutputIn the clock-out mode, tim

Seite 11

Rev. F - 15 February, 2001 19T89C51RD2It is possible to use timer 2 as a baud rate generator and a clock generator simultaneously. For this configurat

Seite 12

2 Rev. F - 15 February, 2001T89C51RD2• Power supply:- M version: Commercial and industrial4.5V to 5.5V : 40MHz X1 Mode, 20MHz X2 Mode3V to 5.5V : 33MH

Seite 13 - Application

20 Rev. F - 15 February, 2001T89C51RD2Table 5. T2CON RegisterT2CON - Timer 2 Control Register (C8h)Reset Value = 0000 0000bBit addressable7 6 5 4 3 2

Seite 14

Rev. F - 15 February, 2001 21T89C51RD2Table 6. T2MOD RegisterT2MOD - Timer 2 Mode Control Register (C9h)Reset Value = XXXX XX00bNot bit addressable7 6

Seite 15

Rev. F - 15 February, 2001 22T89C51RD26.5. Programmable Counter Array PCAThe PCA provides more timing capabilities with less CPU intervention than the

Seite 16

23 Rev. F - 15 February, 2001T89C51RD2Figure 7. PCA Timer/CounterTable 7. CMOD: PCA Counter Mode RegisterThe CMOD SFR includes three additional bits a

Seite 17 - 6.4.1. Auto-Reload Mode

Rev. F - 15 February, 2001 24T89C51RD2• The ECF bit which when set causes an interrupt and the PCA overflow flag CF (in the CCON SFR) to be setwhen th

Seite 18

25 Rev. F - 15 February, 2001T89C51RD2Figure 8. PCA Interrupt SystemPCA Modules: each one of the five compare/capture modules has six possible functio

Seite 19

Rev. F - 15 February, 2001 26T89C51RD2Table 9. CCAPMn: PCA Modules Compare/Capture Control RegistersTable 10. PCA Module Modes (CCAPMn Registers)There

Seite 20

27 Rev. F - 15 February, 2001T89C51RD2Table 11. CCAPnH: PCA Modules Capture/Compare Registers HighTable 12. CCAPnL: PCA Modules Capture/Compare Regist

Seite 21

Rev. F - 15 February, 2001 28T89C51RD2Figure 9. PCA Capture Mode6.5.2. 16-bit Software Timer / Compare ModeThe PCA modules can be used as software tim

Seite 22

29 Rev. F - 15 February, 2001T89C51RD2Figure 10. PCA Compare Mode and PCA Watchdog TimerBefore enabling ECOM bit, CCAPnL and CCAPnH should be set with

Seite 23

Rev. F - 15 February, 2001 3T89C51RD24. SFR MappingThe Special Function Registers (SFRs) of the T89C51RD2 fall into the following categories:• C51 cor

Seite 24

Rev. F - 15 February, 2001 30T89C51RD2Figure 11. PCA High Speed Output ModeBefore enabling ECOM bit, CCAPnL and CCAPnH should be set with a non zero v

Seite 25

31 Rev. F - 15 February, 2001T89C51RD2SFR the output will be low, when it is equal to or greater than the output will be high. When CL overflows fromF

Seite 26

Rev. F - 15 February, 2001 32T89C51RD26.6. Serial I/O PortThe serial I/O port in the T89C51RD2 is compatible with the serial I/O port in the 80C52.It

Seite 27 - 6.5.1. PCA Capture Mode

33 Rev. F - 15 February, 2001T89C51RD2Figure 15. UART Timings in Modes 2 and 36.6.2. Automatic Address RecognitionThe automatic address recognition f

Seite 28

Rev. F - 15 February, 2001 34T89C51RD2The SADEN byte is selected so that each slave may be addressed separately.For slave A, bit 0 (the LSB) is a don’

Seite 29 - 6.5.3. High Speed Output Mode

35 Rev. F - 15 February, 2001T89C51RD2SCON - Serial Control Register (98h)Reset Value = 0000 0000bBit addressable7 6 5 4 3 2 1 0FE/SM0 SM1 SM2 REN TB8

Seite 30 - Write to

Rev. F - 15 February, 2001 36T89C51RD2Table 16. PCON RegisterPCON - Power Control Register (87h)Reset Value = 00X1 0000bNot bit addressablePower-off f

Seite 31 - 6.5.5. PCA Watchdog Timer

Rev. F - 15 February, 2001 37T89C51RD26.7. Interrupt SystemThe T89C51RD2 has a total of 7 interrupt vectors: two external interrupts (INT0 and INT1),

Seite 32

38 Rev. F - 15 February, 2001T89C51RD2Table 17. Priority Level Bit ValuesA low-priority interrupt can be interrupted by a high priority interrupt, but

Seite 33 - 6.6.3. Given Address

Rev. F - 15 February, 2001 39T89C51RD2Table 19. IP RegisterIP - Interrupt Priority Register (B8h)Reset Value = X000 0000bBit addressable7 6 5 4 3 2 1

Seite 34 - 6.6.5. Reset Addresses

4 Rev. F - 15 February, 2001T89C51RD2reserved

Seite 35

40 Rev. F - 15 February, 2001T89C51RD2Table 20. IPH RegisterIPH - Interrupt Priority High Register (B7h)Reset Value = X000 0000bNot bit addressable7 6

Seite 36

Rev. F - 15 February, 2001 41T89C51RD26.8. Idle modeAn instruction that sets PCON.0 causes that to be the last instruction executed before going into

Seite 37

42 Rev. F - 15 February, 2001T89C51RD2This table shows the state of ports during idle and power-down modes.* Port 0 can force a 0 level. A "one&q

Seite 38

Rev. F - 15 February, 2001 43T89C51RD26.10. Hardware Watchdog TimerThe WDT is intended as a recovery method in situations where the CPU may be subject

Seite 39

44 Rev. F - 15 February, 2001T89C51RD2Table 22. WDTPRG RegisterWDTPRG Address (0A7h)Reset value XXXX X0006.10.2. WDT during Power Down and IdleIn Powe

Seite 40

Rev. F - 15 February, 2001 45T89C51RD26.11. ONCE(TM) Mode (ON Chip Emulation)The ONCE mode facilitates testing and debugging of systems using T89C51RD

Seite 41

Rev. F - 15 February, 2001 46T89C51RD26.12. Reduced EMI ModeThe ALE signal is used to demultiplex address and data buses on port 0 when used with exte

Seite 42

Rev. F - 15 February, 2001 47T89C51RD27. EEPROM data memory7.1. General descriptionThe EEPROM memory block contains 2048 bytes and is organized in 32

Seite 43 - 6.10.1. Using the WDT

48 Rev. F - 15 February, 2001T89C51RD2Example : ... ; DPTR = EEPROM data pointer, A = Data to write Wait : MOV A,EECON

Seite 44

Rev. F - 15 February, 2001 49T89C51RD2Table 26. EETIM RegisterEETIM (S:0D3h)EEPROM timing Control RegisterReset Value= 0000 0000b76543210EETIMBit Numb

Seite 45

Rev. F - 15 February, 2001 5T89C51RD25. Pin ConfigurationP1.7CEX4 P1.4/CEX1RSTP3.0/RxDP3.1/TxD P1.3CEX0 1P1.5/CEX2P1.6/CEX3P3.2/INT0P3.3/INT1P3.4/T0P3

Seite 46

Rev. F - 15 February, 2001 50T89C51RD28. FLASH EEprom Memory8.1. General descriptionThe FLASH memory increases EPROM and ROM functionality with in-cir

Seite 47

51 Rev. F - 15 February, 2001T89C51RD2The bootloader and the In Application Programming (IAP) routines are located in the last kilobyte of the FLASH,l

Seite 48

Rev. F - 15 February, 2001 52T89C51RD28.4.2.1. Boot Loader Lock Bit (BLLB)One bit of the HSB is used to secure by hardware the internal boot loader se

Seite 49

53 Rev. F - 15 February, 2001T89C51RD2Table 28. Program Lock bitsU: unprogrammed or "one" level.P: programmed or "zero" level.X:do

Seite 50

Rev. F - 15 February, 2001 54T89C51RD2They are several software registers described in Table 29Table 29. Default valuesAfter programming the part by I

Seite 51 - 8.4.2. Hardware register

55 Rev. F - 15 February, 2001T89C51RD2Table 31. Program Lock bits of the SSBU: unprogrammed or "one" level.P: programmed or "zero"

Seite 52

Rev. F - 15 February, 2001 56T89C51RD2erase block, program byte or page, verify byte or page, program security lock bit, etc. The Boot FLASH can beloc

Seite 53 - 8.4.3. Software registers

57 Rev. F - 15 February, 2001T89C51RD2Boot process summaryThe boot process is summarized on the following flowchart:Figure 21. Boot process flowchartC

Seite 54

Rev. F - 15 February, 2001 58T89C51RD28.7. In-System Programming (ISP)The In-System Programming (ISP) is performed without removing the microcontrolle

Seite 55 - Boot loader FLASH

59 Rev. F - 15 February, 2001T89C51RD2Table 32. Intel-Hex Records Used by In-System ProgrammingRECORD TYPE COMMAND/DATA FUNCTION00Data Record:nnaaaa00

Seite 56 - Reset Code Execution

6 Rev. F - 15 February, 2001T89C51RD21210151413111617181920212223242526P5.5P0.3/AD3P0.2/AD2P5.6P0.1/AD1P0.0/AD0P5.7VCCVSS1P1.0/T2P4.0P1.1/T2EXP1.2/ECI

Seite 57 - Boot process summary

Rev. F - 15 February, 2001 60T89C51RD203Miscellaneous Write Functions:nnxxxx03ffssddccWhere:nn = number of bytes (hex) in recordxxxx = required field,

Seite 58

61 Rev. F - 15 February, 2001T89C51RD28.8. In-Application Programming MethodSeveral Application Program Interface (API) calls are available for use by

Seite 59

Rev. F - 15 February, 2001 62T89C51RD2PROGRAM DATA PAGEInput Parameters:R0 = osc freq (integer Not required)R1 = 09hDPTR0 = address of the first byte

Seite 60

63 Rev. F - 15 February, 2001T89C51RD2API call ParameterREAD copy of the deviceID#1Input Parameters:R0 = osc freq (integer Not required, left for Phil

Seite 61

Rev. F - 15 February, 2001 64T89C51RD2Note: These functions can only be called by user’s code. The standard boot loader cannot decrease the security l

Seite 62

65 Rev. F - 15 February, 2001T89C51RD2Mode Name Mode Rst PsenAle__|_|EA P2.6 P2.7 P3.6 P3.7 P0[7..0]PELCKProgram or Erase Lock.Disable the Erasure or

Seite 63

Rev. F - 15 February, 2001 66T89C51RD2Note 1: P3.2 is pulled low during programming to indicate RDY/BUSY.(P3.2 = 1 Ready; P3.2 = 0 Busy).Note 2: In Pa

Seite 64 - 8.9.2. Set-up modes

67 Rev. F - 15 February, 2001T89C51RD2Figure 22. Set-Up Modes Configuration8.9.4. Programming AlgorithmTo program the T89C51RD2 the following sequence

Seite 65

Rev. F - 15 February, 2001 68T89C51RD2• Step 8: Input the valid address on the address lines.• Step 9: Pulse ALE/PROG once until P3.2 is high or the s

Seite 66 - 8.9.3. Definition of terms

69 Rev. F - 15 February, 2001T89C51RD2All other addresses are reservedCopy of device ID #2 0060h FChCopy of device ID #1 0031h D7hCopy of Manufacturer

Seite 67 - 8.9.4. Programming Algorithm

Rev. F - 15 February, 2001 7T89C51RD2MnemonicPin NumberTypeName and FunctionDIL LCC VQFP 1.4VSS20 22 16 I Ground: 0V referenceVss1 1 39 I Optional Gro

Seite 68 - 8.9.6. Extra memory mapping

Rev. F - 15 February, 2001 70T89C51RD29. Electrical Characteristics9.1. Absolute Maximum Ratings(1)Ambiant Temperature Under Bias:C = commercial 0°Cto

Seite 69

71 Rev. F - 15 February, 2001T89C51RD29.2. DC Parameters for Standard Voltage (1)TA =0°Cto+70°C; VSS=0V;VCC=5V± 10%;F=0to40MHz.TA = -40°Cto+85°C; VSS=

Seite 70

Rev. F - 15 February, 2001 72T89C51RD29.3. DC Parameters for Standard Voltage (2)TA =0°Cto+70°C; VSS=0V;VCC=3Vto5.5V;F=0to33MHz.TA = -40°Cto+85°C; VSS

Seite 71 - Max Unit Test Conditions

73 Rev. F - 15 February, 2001T89C51RD29.4. DC Parameters for Low VoltageTA =0°Cto+70°C; VSS=0V;VCC=2.7Vto3.6V;F=0to25MHz.TA = -40°Cto+85°C; VSS=0V;VCC

Seite 72

Rev. F - 15 February, 2001 74T89C51RD2Figure 24. ICCTest Condition, Active ModeFigure 25. ICCTest Condition, Idle ModeFigure 26. ICCTest Condition, Po

Seite 73

75 Rev. F - 15 February, 2001T89C51RD2Figure 27. Clock Signal Waveform for ICCTests in Active and Idle Modes9.5. AC Parameters9.5.1. Explanation of th

Seite 74

Rev. F - 15 February, 2001 76T89C51RD29.5.2. External Program Memory CharacteristicsTable 38. Symbol DescriptionSymbol ParameterT Oscillator clock per

Seite 75 - 9.5. AC Parameters

77 Rev. F - 15 February, 2001T89C51RD29.5.3. External Program Memory Read CycleTable 40. AC Parameters for a Variable ClockSymbol Type StandardClockX2

Seite 76 - Table 38. Symbol Description

Rev. F - 15 February, 2001 78T89C51RD29.5.4. External Data Memory CharacteristicsTable 41. Symbol DescriptionSymbol ParameterTRLRHRD Pulse WidthTWLWHW

Seite 77 - 77 Rev. F - 15 February, 2001

79 Rev. F - 15 February, 2001T89C51RD2Table 42. AC Parameters for a Fix ClockSymbol -M -L UnitsMin Max Min MaxTRLRH130 130 nsTWLWH130 130 nsTRLDV100 1

Seite 78 - Table 41. Symbol Description

8 Rev. F - 15 February, 2001T89C51RD2MnemonicPin NumberTypeName and FunctionDIL LCC VQFP 1.417 19 13 O RD (P3.7): External data memory read strobeRese

Seite 79 - 79 Rev. F - 15 February, 2001

Rev. F - 15 February, 2001 80T89C51RD29.5.5. External Data Memory Write CycleTable 43. AC Parameters for a Variable ClockSymbol Type StandardClockX2 C

Seite 80 - Rev. F - 15 February, 2001 80

81 Rev. F - 15 February, 2001T89C51RD29.5.6. External Data Memory Read Cycle9.5.7. Serial Port Timing - Shift Register ModeTable 44. Symbol Descriptio

Seite 81 - Table 44. Symbol Description

Rev. F - 15 February, 2001 82T89C51RD29.5.8. Shift Register Timing WaveformsTable 46. AC Parameters for a Variable ClockSymbol Type StandardClockX2 Cl

Seite 82 - Rev. F - 15 February, 2001 82

83 Rev. F - 15 February, 2001T89C51RD29.5.9. FLASH EEPROM Programming and Verification CharacteristicsTA =21°Cto27°C; VSS= 0V; VCC=5V± 10%.9.5.10. FLA

Seite 83

Rev. F - 15 February, 2001 84T89C51RD29.5.11. External Clock Drive Characteristics (XTAL1)Table 48. AC Parameters9.5.12. External Clock Drive Waveform

Seite 84 - 9.5.14. Float Waveforms

85 Rev. F - 15 February, 2001T89C51RD29.5.15. Clock WaveformsValid in normal clock mode. In X2 mode XTAL2 must be changed to XTAL2/2.This diagram indi

Seite 85 - 9.5.15. Clock Waveforms

Rev. F - 15 February, 2001 86T89C51RD210. Ordering InformationPackages:3C: PDIL40SL: PLCC44RL: VQFP44 (1.4mm)SM: PLCC68RD: VQFP64, square-package (1.

Seite 86

Rev. F - 15 February, 2001 9T89C51RD25.1. Pin Description for 64/68 pin PackagesPort 4 and Port 5 are 8-bit bidirectional I/O ports with internal pull

Kommentare zu diesen Handbüchern

Keine Kommentare