ATmega128 (961723), страница 71
Текст из файла (страница 71)
156Output Compare Modulator (OCM1C2).......................................... 160Overview........................................................................................................... 160Description........................................................................................................ 160Serial Peripheral Interface – SPI.....................................................
162SS Pin Functionality.......................................................................................... 166Data Modes ...................................................................................................... 169USART ..............................................................................................
170Overview...........................................................................................................Clock Generation ..............................................................................................Frame Formats .................................................................................................USART Initialization..........................................................................................Data Transmission – The USART Transmitter .................................................Data Reception – The USART Receiver ..........................................................Asynchronous Data Reception .........................................................................Multi-processor Communication Mode .............................................................USART Register Description ............................................................................Examples of Baud Rate Setting........................................................................170172175176177180184187189194Two-wire Serial Interface ................................................................
198Features............................................................................................................Two-wire Serial Interface Bus Definition...........................................................Data Transfer and Frame Format .....................................................................Multi-master Bus Systems, Arbitration and Synchronization ............................Overview of the TWI Module ............................................................................TWI Register Description..................................................................................Using the TWI ...................................................................................................Transmission Modes.........................................................................................Multi-master Systems and Arbitration...............................................................198198199201204206209213226Analog Comparator .........................................................................
228Analog Comparator Multiplexed Input .............................................................. 229Analog to Digital Converter ............................................................ 231iii2467M–AVR–11/04Features............................................................................................................Operation ..........................................................................................................Starting a Conversion .......................................................................................Prescaling and Conversion Timing ...................................................................Changing Channel or Reference Selection ......................................................ADC Noise Canceler.........................................................................................ADC Conversion Result....................................................................................231233233234236237242JTAG Interface and On-chip Debug System .................................
248Features............................................................................................................Overview...........................................................................................................Test Access Port – TAP....................................................................................TAP Controller ..................................................................................................Using the Boundary-scan Chain .......................................................................Using the On-chip Debug System ....................................................................On-chip Debug Specific JTAG Instructions ......................................................On-chip Debug Related Register in I/O Memory ..............................................Using the JTAG Programming Capabilities ......................................................Bibliography ......................................................................................................IEEE 1149.1 (JTAG) Boundary-scan................................................................Features............................................................................................................System Overview..............................................................................................Data Registers ..................................................................................................Boundary-scan Specific JTAG Instructions ......................................................Boundary-scan Related Register in I/O Memory ..............................................Boundary-scan Chain .......................................................................................ATmega128 Boundary-scan Order...................................................................Boundary-scan Description Language Files .....................................................248248248250251251252253253253254254254254256257258268274Boot Loader Support – Read-While-Write Self-Programming .....
275Boot Loader Features .......................................................................................Application and Boot Loader Flash Sections ....................................................Read-While-Write and No Read-While-Write Flash Sections...........................Boot Loader Lock Bits.......................................................................................Entering the Boot Loader Program ...................................................................Addressing the Flash During Self-Programming ..............................................Self-Programming the Flash .............................................................................275275275277278280281Memory Programming.....................................................................
288Program and Data Memory Lock Bits...............................................................Fuse Bits...........................................................................................................Signature Bytes ................................................................................................Calibration Byte ................................................................................................Parallel Programming Parameters, Pin Mapping, and Commands ..................Parallel Programming .......................................................................................Serial Downloading...........................................................................................iv288289291291292294303ATmega1282467M–AVR–11/04ATmega128SPI Serial Programming Pin Mapping ..............................................................
303Programming Via the JTAG Interface............................................................... 308Electrical Characteristics................................................................ 321Absolute Maximum Ratings*.............................................................................DC Characteristics............................................................................................External Clock Drive Waveforms ......................................................................External Clock Drive .........................................................................................Two-wire Serial Interface Characteristics .........................................................SPI Timing Characteristics ...............................................................................ADC Characteristics .........................................................................................External Data Memory Timing ..........................................................................321321322323324325327330ATmega128 Typical Characteristics ..............................................