Electronic Components Datasheet Search
  English  ▼

X  

ATMEGA640 Datasheet(PDF) 292 Page - Microchip Technology

Part # ATMEGA640
Description  8-bit Microcontroller with 16/32/64KB In-System Programmable Flash
PDF  436 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

ATMEGA640 Datasheet(HTML) 292 Page - Microchip Technology

Back Button ATMEGA640 Datasheet HTML 288Page - Microchip Technology ATMEGA640 Datasheet HTML 289Page - Microchip Technology ATMEGA640 Datasheet HTML 290Page - Microchip Technology ATMEGA640 Datasheet HTML 291Page - Microchip Technology ATMEGA640 Datasheet HTML 292Page - Microchip Technology ATMEGA640 Datasheet HTML 293Page - Microchip Technology ATMEGA640 Datasheet HTML 294Page - Microchip Technology ATMEGA640 Datasheet HTML 295Page - Microchip Technology ATMEGA640 Datasheet HTML 296Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 292 / 436 page
background image
292
ATmega640/V-1280/V-1281/V-2560/V-2561/V [DATASHEET]
DS40002211A
•
At the TMS input, apply the sequence 1, 0, 0 at the rising edges of TCK to enter the Shift Data Register – Shift-
DR state. While in this state, upload the selected Data Register (selected by the present JTAG instruction in
the JTAG Instruction Register) from the TDI input at the rising edge of TCK. In order to remain in the Shift-DR
state, the TMS input must be held low during input of all bits except the MSB. The MSB of the data is shifted in
when this state is left by setting TMS high. While the Data Register is shifted in from the TDI pin, the parallel
inputs to the Data Register captured in the Capture-DR state is shifted out on the TDO pin.
•
Apply the TMS sequence 1, 1, 0 to re-enter the Run-Test/Idle state. If the selected Data Register has a latched
parallel-output, the latching takes place in the Update-DR state. The Exit-DR, Pause-DR, and Exit2-DR states
are only used for navigating the state machine.
As shown in the state diagram, the Run-Test/Idle state need not be entered between selecting JTAG instruction
and using Data Registers, and some JTAG instructions may select certain functions to be performed in the Run-
Test/Idle, making it unsuitable as an Idle state.
Note:
Independent of the initial state of the TAP Controller, the Test-Logic-Reset state can always be entered by holding TMS
high for five TCK clock periods.
For detailed information on the JTAG specification, refer to the literature listed in “Bibliography” on page 294.
27.4 Using the Boundary-scan Chain
A complete description of the Boundary-scan capabilities are given in the section “IEEE 1149.1 (JTAG) Boundary-
scan” on page 295.
27.5 Using the On-chip Debug System
As shown in Figure 27-1 on page 290, the hardware support for On-chip Debugging consists mainly of:
•
A scan chain on the interface between the internal AVR CPU and the internal peripheral units
•
Break Point unit
•
Communication interface between the CPU and JTAG system
All read or modify/write operations needed for implementing the Debugger are done by applying AVR instructions
via the internal AVR CPU Scan Chain. The CPU sends the result to an I/O memory mapped location which is part
of the communication interface between the CPU and the JTAG system.
The Break Point Unit implements Break on Change of Program Flow, Single Step Break, two Program Memory
Break Points, and two combined Break Points. Together, the four Break Points can be configured as either:
•
4 single Program Memory Break Points
•
3 Single Program Memory Break Point + 1 single Data Memory Break Point
•
2 single Program Memory Break Points + 2 single Data Memory Break Points
•
2 single Program Memory Break Points + 1 Program Memory Break Point with mask (“range Break Point”)
•
2 single Program Memory Break Points + 1 Data Memory Break Point with mask (“range Break Point”)
A debugger, like the AVR Studio, may however use one or more of these resources for its internal purpose, leaving
less flexibility to the end-user.
A list of the On-chip Debug specific JTAG instructions is given in “On-chip Debug Specific JTAG Instructions” on
page 293.
The JTAGEN Fuse must be programmed to enable the JTAG Test Access Port. In addition, the OCDEN Fuse must
be programmed and no Lock bits must be set for the On-chip debug system to work. As a security feature, the On-
chip debug system is disabled when either of the LB1 or LB2 Lock bits are set. Otherwise, the On-chip debug sys-
tem would have provided a back-door into a secured device.
The AVR Studio® enables the user to fully control execution of programs on an AVR device with On-chip Debug
capability, AVR In-Circuit Emulator, or the built-in AVR Instruction Set Simulator. AVR Studio supports source level



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com