12.07.2015 Views

ATmega32A Datasheet - Sunrom Technologies

ATmega32A Datasheet - Sunrom Technologies

ATmega32A Datasheet - Sunrom Technologies

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>ATmega32A</strong>The active states are:• Capture-DR: Data in the IDCODE-register is sampled into the Boundary-scan Chain.• Shift-DR: The IDCODE scan chain is shifted by the TCK input.24.4.3 SAMPLE_PRELOAD; $2Mandatory JTAG instruction for pre-loading the output latches and talking a snap-shot of theinput/output pins without affecting the system operation. However, the output latches are notconnected to the pins. The Boundary-scan Chain is selected as Data Register.The active states are:• Capture-DR: Data on the external pins are sampled into the Boundary-scan Chain.• Shift-DR: The Boundary-scan Chain is shifted by the TCK input.• Update-DR: Data from the Boundary-scan Chain is applied to the output latches. However,the output latches are not connected to the pins.24.4.4 AVR_RESET; $CThe AVR specific public JTAG instruction for forcing the AVR device into the Reset mode orreleasing the JTAG Reset source. The TAP controller is not reset by this instruction. The one bitReset Register is selected as Data Register. Note that the reset will be active as long as there isa logic 'one' in the Reset Chain. The output from this chain is not latched.The active states are:• Shift-DR: The Reset Register is shifted by the TCK input.24.4.5 BYPASS; $FMandatory JTAG instruction selecting the Bypass Register for Data Register.The active states are:• Capture-DR: Loads a logic “0” into the Bypass Register.• Shift-DR: The Bypass Register cell between TDI and TDO is shifted.24.5 Boundary-scan ChainThe Boundary-scan chain has the capability of driving and observing the logic levels on the digitalI/O pins, as well as the boundary between digital and analog logic for analog circuitry havingOff-chip connection.24.5.1 Scanning the Digital Port PinsFigure 24-3 shows the Boundary-scan Cell for a bi-directional port pin with pull-up function. Thecell consists of a standard Boundary-scan cell for the Pull-up Enable – PUExn – function, and abi-directional pin cell that combines the three signals Output Control – OCxn, Output Data –ODxn, and Input Data – IDxn, into only a two-stage Shift Register. The port and pin indexes arenot used in the following description.The Boundary-scan logic is not included in the figures in the datasheet. Figure 24-4 shows asimple digital Port Pin as described in the section “I/O Ports” on page 50. The Boundary-scandetails from Figure 24-3 replaces the dashed box in Figure 24-4.When no alternate port function is present, the Input Data – ID – corresponds to the PINxn Registervalue (but ID has no synchronizer), Output Data corresponds to the PORT Register, Output8155C–AVR–02/11237

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!