ATmega128 (961723), страница 70
Текст из файла (страница 70)
Added the note atthe end of the “Bit Rate Generator Unit” on page 204. Added the description at theend of “Address Match Unit” on page 205.14. Added a note regarding usage of Timer/Counter0 combined with the clock.See “XTAL Divide Control Register – XDIV” on page 41.Changes from Rev.2467B-09/01 to Rev.2467C-02/021.
Corrected Description of Alternate Functions of Port GCorrected description of TOSC1 and TOSC2 in “Alternate Functions of Port G” onpage 82.2. Added JTAG Version Numbers for rev. F and rev. GUpdated Table 100 on page 256.3Added Some Preliminary Test Limits and Characterization DataRemoved some of the TBD's in the following tables and pages:Table 19 on page 48, Table 20 on page 52, “DC Characteristics” on page 321,Table 131 on page 323, Table 134 on page 325, and Table 136 on page 328.4. Corrected “Ordering Information” on page 370.5. Added some Characterization Data in Section “ATmega128 Typical Characteristics” on page 335.6. Removed Alternative Algortihm for Leaving JTAG Programming Mode.See “Leaving Programming Mode” on page 318.7.
Added Description on How to Access the Extended Fuse Byte Through JTAGProgramming Mode.See “Programming the Fuses” on page 320 and “Reading the Fuses and Lock Bits”on page 320.382ATmega1282467M–AVR–11/04ATmega128Table of ContentsFeatures................................................................................................
1Pin Configurations............................................................................... 2Overview............................................................................................... 2Block Diagram ...................................................................................................... 3ATmega103 and ATmega128 Compatibility ......................................................... 4Pin Descriptions.................................................................................................... 5About Code Examples......................................................................... 7AVR CPU Core ..................................................................................... 8Introduction ...........................................................................................................
8Architectural Overview.......................................................................................... 8ALU – Arithmetic Logic Unit.................................................................................. 9Status Register ..................................................................................................... 9General Purpose Register File ...........................................................................
10Stack Pointer ...................................................................................................... 12Instruction Execution Timing............................................................................... 13Reset and Interrupt Handling.............................................................................. 13AVR ATmega128 Memories .............................................................. 16In-System Reprogrammable Flash Program Memory ........................................SRAM Data Memory...........................................................................................EEPROM Data Memory......................................................................................I/O Memory .........................................................................................................External Memory Interface..................................................................................1617192424System Clock and Clock Options ....................................................
34Clock Systems and their Distribution ..................................................................Clock Sources.....................................................................................................Default Clock Source ..........................................................................................Crystal Oscillator.................................................................................................Low-frequency Crystal Oscillator ........................................................................External RC Oscillator ........................................................................................Calibrated Internal RC Oscillator ........................................................................External Clock.....................................................................................................Timer/Counter Oscillator.....................................................................................343535363738394041Power Management and Sleep Modes.............................................
42Idle Mode ............................................................................................................ADC Noise Reduction Mode...............................................................................Power-down Mode..............................................................................................Power-save Mode...............................................................................................Standby Mode.....................................................................................................Extended Standby Mode ....................................................................................434343434444i2467M–AVR–11/04Minimizing Power Consumption ......................................................................... 45System Control and Reset ................................................................
47Internal Voltage Reference ................................................................................. 52Watchdog Timer ................................................................................................. 52Timed Sequences for Changing the Configuration of the Watchdog Timer ....... 55Interrupts ............................................................................................ 57Interrupt Vectors in ATmega128.........................................................................
57I/O Ports.............................................................................................. 63Introduction .........................................................................................................Ports as General Digital I/O ................................................................................Alternate Port Functions .....................................................................................Register Description for I/O Ports .......................................................................63646884External Interrupts............................................................................. 878-bit Timer/Counter0 with PWM and Asynchronous Operation ....
90Overview............................................................................................................. 90Timer/Counter Clock Sources............................................................................. 91Counter Unit........................................................................................................
91Output Compare Unit.......................................................................................... 92Compare Match Output Unit ............................................................................... 94Modes of Operation ............................................................................................ 95Timer/Counter Timing Diagrams......................................................................... 998-bit Timer/Counter Register Description .........................................................
101Asynchronous Operation of the Timer/Counter ................................................ 104Timer/Counter Prescaler................................................................................... 10716-bit Timer/Counter (Timer/Counter1 and Timer/Counter3)....... 109Overview...........................................................................................................Accessing 16-bit Registers ...............................................................................Timer/Counter Clock Sources...........................................................................Counter Unit......................................................................................................Input Capture Unit.............................................................................................Output Compare Units ......................................................................................Compare Match Output Unit .............................................................................Modes of Operation ..........................................................................................Timer/Counter Timing Diagrams.......................................................................16-bit Timer/Counter Register Description .......................................................109112115115116118120121128131Timer/Counter3, Timer/Counter2, and Timer/Counter1 Prescalers ...1428-bit Timer/Counter2 with PWM......................................................
144iiATmega1282467M–AVR–11/04ATmega128Overview...........................................................................................................Timer/Counter Clock Sources...........................................................................Counter Unit......................................................................................................Output Compare Unit........................................................................................Compare Match Output Unit .............................................................................Modes of Operation ..........................................................................................Timer/Counter Timing Diagrams.......................................................................1441451451461481491548-bit Timer/Counter Register Description .....................................