Rainbow-electronics AT90LS2343 Bedienungsanleitung

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

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 64
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
1
Features
Utilizes the AVR
®
RISC Architecture
AVR – High-performance and Low-power RISC Architecture
118 Powerful Instructions – Most Single Clock Cycle Execution
32 x 8 General-purpose Working Registers
Up to 10 MIPS Throughput at 10 MHz
Data and Nonvolatile Program Memory
2K Bytes of In-System Programmable Flash
Endurance: 1,000 Write/Erase Cycles
128 Bytes Internal RAM
128 Bytes of In-System Programmable EEPROM
Endurance: 100,000 Write/Erase Cycles
Programming Lock for Flash Program and EEPROM Data Security
Peripheral Features
One 8-bit Timer/Counter with Separate Prescaler
Programmable Watchdog Timer with On-chip Oscillator
SPI Serial Interface for In-System Programming
Special Microcontroller Features
Low-power Idle and Power-down Modes
External and Internal Interrupt Sources
Power-on Reset Circuit
Selectable On-chip RC Oscillator
Specifications
Low-power, High-speed CMOS Process Technology
Fully Static Operation
Power Consumption at 4 MHz, 3V, 25°C
Active: 2.4 mA
Idle Mode: 0.5 mA
Power-down Mode: <1 µA
I/O and Packages
Three Programmable I/O Lines for AT90S/LS2323
Five Programmable I/O Lines for AT90S/LS2343
8-pin PDIP and SOIC
Operating Voltages
4.0 - 6.0V for AT90S2323/AT90S2343
2.7 - 6.0V for AT90LS2323/AT90LS2343
Speed Grades
0 - 10 MHz for AT90S2323/AT90S2343-10
0 - 4 MHz for AT90LS2323/AT90LS2343-4
0 - 1 MHz for AT90LS2343-1
Pin Configuration
PDIP/SOIC
1
2
3
4
8
7
6
5
RESET
XTAL1
XTAL2
GND
VCC
PB2 (SCK/T0)
PB1 (MISO/INT0)
PB0 (MOSI)
AT90S/LS2323
1
2
3
4
8
7
6
5
RESET
(CLOCK) PB3
PB4
GND
VCC
PB2 (SCK/T0)
PB1 (MISO/INT0)
PB0 (MOSI)
AT90S/LS2343
8-bit
Microcontroller
with 2K Bytes of
In-System
Programmable
Flash
AT90S2323
AT90LS2323
AT90S2343
AT90LS2343
Rev. 1004D09/01
Seitenansicht 0
1 2 3 4 5 6 ... 63 64

Inhaltsverzeichnis

Seite 1 - Features

1Features• Utilizes the AVR® RISC Architecture• AVR – High-performance and Low-power RISC Architecture– 118 Powerful Instructions – Most Single Clock

Seite 2

10AT90S/LS2323/23431004D–09/01X-register, Y-register and Z-registerThe registers R26..R31 have some added functions to their general-purpose usage.The

Seite 3

11AT90S/LS2323/23431004D–09/01SRAM Data Memory Figure 9 shows how the AT90S2323/2343 Data Memory is organized.Figure 9. SRAM OrganizationThe 224 data

Seite 4

12AT90S/LS2323/23431004D–09/01Program and Data Addressing ModesThe AT90S2323/2343 AVR RISC microcontroller supports powerful and efficientaddressing m

Seite 5

13AT90S/LS2323/23431004D–09/01I/O Direct Figure 12. I/O Direct AddressingOperand address is contained in six bits of the instruction word. n is the d

Seite 6

14AT90S/LS2323/23431004D–09/01Data Indirect Figure 15. Data Indirect AddressingOperand address is the contents of the X-, Y-, or the Z-register.Data

Seite 7

15AT90S/LS2323/23431004D–09/01Constant Addressing Using the LPM InstructionFigure 18. Code Memory Constant AddressingConstant byte address is specifi

Seite 8

16AT90S/LS2323/23431004D–09/01Memory Access and Instruction Execution TimingThis section describes the general access timing concepts for instruction

Seite 9

17AT90S/LS2323/23431004D–09/01Figure 23. On-chip Data SRAM Access CyclesI/O Memory The I/O space definition of the AT90S2323/2343 is shown in Table 2

Seite 10 - AT90S/LS2323/2343

18AT90S/LS2323/23431004D–09/01and OUT, the I/O addresses $00 - $3F must be used. When addressing I/O registers asSRAM, $20 must be added to these addr

Seite 11

19AT90S/LS2323/23431004D–09/01• Bit 0 – C: Carry FlagThe carry flag C indicates a carry in an arithmetical or logical operation. See the Instruc-tion

Seite 12

2AT90S/LS2323/23431004D–09/01Description The AT90S/LS2323 and AT90S/LS2343 are low-power, CMOS, 8-bit microcontrollersbased on the AVR RISC architectu

Seite 13

20AT90S/LS2323/23431004D–09/01The most typical program setup for the Reset and Interrupt vector addresses are:Reset Sources The AT90S2323/2343 provide

Seite 14

21AT90S/LS2323/23431004D–09/01Note: 1. The Power-on Reset will not work unless the supply voltage has been below VPOT(falling).Note: 1. The Power-on R

Seite 15

22AT90S/LS2323/23431004D–09/01Figure 25. MCU Start-up, RESET Tied to VCC.Figure 26. MCU Start-up, RESET Controlled ExternallyExternal Reset An exter

Seite 16

23AT90S/LS2323/23431004D–09/01Watchdog Reset When the Watchdog times out, it will generate a short reset pulse of 1 CPU clock cycleduration. On the fa

Seite 17

24AT90S/LS2323/23431004D–09/01Interrupt Handling The AT90S2323/2343 has two 8-bit interrupt mask control registers; GIMSK (GeneralInterrupt Mask regis

Seite 18

25AT90S/LS2323/23431004D–09/01General Interrupt Flag Register – GIFR• Bit 7 – Res: Reserved BitThis bit is a reserved bit in the AT90S2323/2343 and al

Seite 19

26AT90S/LS2323/23431004D–09/01• Bit 0 – Res: Reserved BitThis bit is a reserved bit in the AT90S2323/2343 and always reads zero.External Interrupt The

Seite 20

27AT90S/LS2323/23431004D–09/01activate the interrupt are defined in Table 9. The value on the INT01 pin is sampledbefore detecting edges. If edge or t

Seite 21

28AT90S/LS2323/23431004D–09/01Timer/Counter The AT90S2323/2343 provides one general-purpose 8-bit Timer/Counter –Timer/Counter0. The Timer/Counter has

Seite 22

29AT90S/LS2323/23431004D–09/01Figure 30. Timer/Counter 0 Block DiagramTimer/Counter0 Control Register – TCCR0• Bits 7..3 – Res: Reserved BitsThese bi

Seite 23

3AT90S/LS2323/23431004D–09/01Figure 2. The AT90S/LS2323 Block DiagramThe AT90S2323/2343 provides the following features: 2K bytes of In-System Progra

Seite 24

30AT90S/LS2323/23431004D–09/01The Stop condition provides a Timer Enable/Disable function. The CK down dividedmodes are scaled directly from the CK os

Seite 25

31AT90S/LS2323/23431004D–09/01Watchdog Timer Control Register – WDTCR• Bits 7..5 – Res: Reserved BitsThese bits are reserved bits in the AT90S2323/234

Seite 26

32AT90S/LS2323/23431004D–09/01EEPROM Read/Write AccessThe EEPROM access registers are accessible in the I/O space.The write access time is in the rang

Seite 27

33AT90S/LS2323/23431004D–09/01EEPROM Control Register – EECR• Bits 7..3 – Res: Reserved BitsThese bits are reserved bits in the AT90S2323/2343 and wil

Seite 28

34AT90S/LS2323/23431004D–09/01Prevent EEPROM CorruptionDuring periods of low VCC, the EEPROM data can be corrupted because the supply volt-age is too

Seite 29

35AT90S/LS2323/23431004D–09/01I/O Port B All AVR ports have true read-modify-write functionality when used as general digital I/Oports. This means tha

Seite 30

36AT90S/LS2323/23431004D–09/01Port B Input Pins Address – PINBThe Port B Input Pins address (PINB) is not a register and this address enables accessto

Seite 31

37AT90S/LS2323/23431004D–09/01Memory ProgrammingProgram and Data Memory Lock BitsThe AT90S2323/2343 MCU provides two Lock bits that can be left unprog

Seite 32

38AT90S/LS2323/23431004D–09/013. $002: $03 (indicates AT90S/LS2343 when signature byte $001 is $91)Note: When both Lock bits are programmed (Lock mode

Seite 33

39AT90S/LS2323/23431004D–09/01High-voltage Serial Programming AlgorithmTo program and verify the AT90S/LS2323 and AT90S/LS234 in the high-voltage Seri

Seite 34

4AT90S/LS2323/23431004D–09/01chip, the Atmel AT90S2323/2343 is a powerful microcontroller that provides a highlyflexible and cost-effective solution t

Seite 35

40AT90S/LS2323/23431004D–09/01Table 16. High-voltage Serial Programming Instruction SetInstructionInstruction FormatOperation RemarksInstr.1 Instr.2

Seite 36

41AT90S/LS2323/23431004D–09/01Note: a = address high bitsb = address low bitsi = data ino = data outx = don’t care1 = Lock Bit12 = Lock Bit2F = FSTRT

Seite 37

42AT90S/LS2323/23431004D–09/01High-voltage Serial Programming CharacteristicsFigure 34. High-voltage Serial Programming TimingLow-voltage Serial Down

Seite 38

43AT90S/LS2323/23431004D–09/01For the EEPROM, an auto-erase cycle is provided within the self-timed Write instructionand there is no need to first exe

Seite 39

44AT90S/LS2323/23431004D–09/017. At the end of the programming session, RESET can be set high to commence normal operation.8. Power-off sequence (if n

Seite 40

45AT90S/LS2323/23431004D–09/01Notes: 1. a = address high bitsb = address low bitsH = 0 – Low byte, 1 – High byteo = data outi = data inx = don’t care1

Seite 41

46AT90S/LS2323/23431004D–09/01Low-voltage Serial Programming CharacteristicsFigure 37. Low-voltage Serial Programming TimingTable 20. Low-voltage Se

Seite 42

47AT90S/LS2323/23431004D–09/01Electrical CharacteristicsNotes: 1. “Max” means the highest value where the pin is guaranteed to be read as low.2. “Min”

Seite 43

48AT90S/LS2323/23431004D–09/01External Clock Drive WaveformsFigure 38. WaveformsExternal Clock DriveTA = -40°C to 85°CSymbol ParameterVCC: 2.7V to 4.

Seite 44

49AT90S/LS2323/23431004D–09/01Typical CharacteristicsThe following charts show typical behavior. These figures are not tested during manu-facturing. A

Seite 45

5AT90S/LS2323/23431004D–09/01Pin Descriptions AT90S/LS2343VCC Supply voltage pin.GND Ground pin.Port B (PB4..PB0) Port B is a 5-bit bi-directional I/O

Seite 46

50AT90S/LS2323/23431004D–09/01Figure 40. Active Supply Current vs. VCCFigure 41. Active Supply Current vs. VCC0123456789102 2.5 3 3.5 4 4.5 5 5.5 6A

Seite 47

51AT90S/LS2323/23431004D–09/01Figure 42. Idle Supply Current vs. FrequencyFigure 43. Idle Supply Current vs. VCC00.511.522.533.544.550 1 2 3 4 5 6 7

Seite 48

52AT90S/LS2323/23431004D–09/01Figure 44. Idle Supply Current vs. VCCFigure 45. Power-down Supply Current vs. VCC00.10.20.30.40.50.60.70.82 2.5 3 3.5

Seite 49

53AT90S/LS2323/23431004D–09/01Figure 46. Power-down Supply Current vs. VCCFigure 47. Watchdog Oscillator Frequency vs. VCC0204060801001201401601802

Seite 50

54AT90S/LS2323/23431004D–09/01Note: Sink and source capabilities of I/O ports are measured on one pin at a time.Figure 48. Pull-up Resistor Current v

Seite 51

55AT90S/LS2323/23431004D–09/01Figure 50. I/O Pin Sink Current vs. Output VoltageFigure 51. I/O PIn Source Current vs. Output Voltage0102030405060700

Seite 52

56AT90S/LS2323/23431004D–09/01Figure 52. I/O Pin Sink Current vs. Output VoltageFigure 53. I/O Pin Source Current vs. Output voltage05101520250 0.5

Seite 53

57AT90S/LS2323/23431004D–09/01Figure 54. I/O Pin Input Threshold Voltage vs. VCCFigure 55. I/O Pin Input Hysteresis vs. VCC00.511.522.52.7 4.0 5.0Th

Seite 54

58AT90S/LS2323/23431004D–09/01Note: 1. For compatibility with future devices, reserved bits should be written to zero if accessed. Reserved I/O memory

Seite 55

59AT90S/LS2323/23431004D–09/01 Instruction Set SummaryMnemonic Operands Description Operation Flags # ClocksARITHMETIC AND LOGIC INSTRUCTIONSADD Rd, R

Seite 56

6AT90S/LS2323/23431004D–09/01Figure 4. External Clock Drive ConfigurationGNDGNDEXTERNALOSCILATORSIGNALEXTERNALOSCILATORSIGNALNCXTAL2XTAL1PB3AT90S/LS2

Seite 57

60AT90S/LS2323/23431004D–09/01DATA TRANSFER INSTRUCTIONSMOV Rd, Rr Move between Registers Rd ← Rr None 1LDI Rd, K Load Immediate Rd ← K None 1LD Rd, X

Seite 58

61AT90S/LS2323/23431004D–09/01Notes: 1. The speed grade refers to maximum clock rate when using an external crystal or external clock drive. The inter

Seite 59

62AT90S/LS2323/23431004D–09/01Packaging Information8P310.16(0.400)9.017(0.355)PIN17.11(0.280)6.10(0.240).300 (7.62) REF5.33(0.210) MAX254(0.100) BSC 0

Seite 60

63AT90S/LS2323/23431004D–09/018S2.020 (.508).012 (.305).213 (5.41).205 (5.21).330 (8.38).300 (7.62)PIN 1 .050 (1.27) BSC.212 (5.38).203 (5.16).080 (2.

Seite 61

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

Seite 62

7AT90S/LS2323/23431004D–09/01Architectural OverviewThe fast-access register file concept contains 32 x 8-bit general-purpose working regis-ters with a

Seite 63

8AT90S/LS2323/23431004D–09/01The AVR has Harvard architecture – with separate memories and buses for programand data. The program memory is accessed w

Seite 64 - 1004D–09/01/xM

9AT90S/LS2323/23431004D–09/01General-purpose Register FileFigure 7 shows the structure of the 32 general-purpose registers in the CPU.Figure 7. AVR C

Kommentare zu diesen Handbüchern

Keine Kommentare