Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

ATTINY817-MFR. Datasheet(PDF) 39 Page - Microchip Technology

Part # ATTINY817-MFR.
Description  AVR짰 Microcontroller with Core Independent Peripherals and picoPower짰 Technology
PDF  492 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

ATTINY817-MFR. Datasheet(HTML) 39 Page - Microchip Technology

Back Button ATTINY817-MFR. Datasheet HTML 35Page - Microchip Technology ATTINY817-MFR. Datasheet HTML 36Page - Microchip Technology ATTINY817-MFR. Datasheet HTML 37Page - Microchip Technology ATTINY817-MFR. Datasheet HTML 38Page - Microchip Technology ATTINY817-MFR. Datasheet HTML 39Page - Microchip Technology ATTINY817-MFR. Datasheet HTML 40Page - Microchip Technology ATTINY817-MFR. Datasheet HTML 41Page - Microchip Technology ATTINY817-MFR. Datasheet HTML 42Page - Microchip Technology ATTINY817-MFR. Datasheet HTML 43Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 39 / 492 page
background image
CPU.SREG is updated after all ALU operations, as specified in the Instruction Set Summary. This will in
many cases remove the need for using the dedicated compare instructions, resulting in faster and more
compact code. CPU.SREG is not automatically stored/restored when entering/returning from an interrupt
service routine. Maintaining the status register between context switches must therefore be handled by
user defined software. CPU.SREG is accessible in the I/O memory space.
Related Links
Instruction Set Summary
8.5.4
Stack and Stack Pointer
The Stack is used for storing return addresses after interrupts and subroutine calls. It can also be used
for storing temporary data. The Stack Pointer (SP) always point to the top of the Stack. The SP is defined
by the Stack Pointer bits (SP) in the Stack Pointer register (CPU.SP). CPU.SP is implemented as two 8-
bit registers that are accessible in the I/O memory space.
Data is pushed and popped from the Stack using the PUSH and POP instructions. The Stack grows from
higher to lower memory locations. This implies that pushing data onto the Stack decreases the SP, and
popping data off the Stack increases the SP. The Stack Pointer is automatically set to the highest address
of the internal SRAM after Reset. If the Stack is changed, it must be set to point above address 0x2000,
and it must be defined before both any subroutine calls are executed and before interrupts are enabled.
During interrupts or subroutine calls, the return address is automatically pushed on the Stack as a word
pointer and the SP is decremented by '2'. The return address consists of two bytes and the least
significant byte is pushed on the Stack first (at the higher address). As an example, a byte pointer return
address of 0x0006 is saved on the Stack as 0x0003 (shifted one bit to the right), pointing to the fourth 16-
bit instruction word in the program memory. The return address is popped off the Stack with RETI (when
returning from interrupts) and RET (when returning from subroutine calls) and the SP is incremented by
'2'.
The SP is decremented by '1' when data is pushed on the Stack with the PUSH instruction, and
incremented by '1' when data is popped off the Stack using the POP instruction.
To prevent corruption when updating the Stack pointer from software, a write to SPL will automatically
disable interrupts for up to four instructions or until the next I/O memory write.
8.5.5
Register File
The register file consists of 32 8-bit general purpose working registers with single clock cycle access time.
The register file supports the following input/output schemes:
•
One 8-bit output operand and one 8-bit result input
•
Two 8-bit output operands and one 8-bit result input
•
Two 8-bit output operands and one 16-bit result input
•
One 16-bit output operand and one 16-bit result input
Six of the 32 registers can be used as three 16-bit address register pointers for data space addressing,
enabling efficient address calculations.
ATtiny417/817
© 2017 Microchip Technology Inc.
Datasheet Complete
DS40001901B-page 39



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