Electronic Components Datasheet Search
  English  ▼

X  

ATTINY412 Datasheet(PDF) 49 Page - Microchip Technology

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

ATTINY412 Datasheet(HTML) 49 Page - Microchip Technology

Back Button ATTINY412 Datasheet HTML 45Page - Microchip Technology ATTINY412 Datasheet HTML 46Page - Microchip Technology ATTINY412 Datasheet HTML 47Page - Microchip Technology ATTINY412 Datasheet HTML 48Page - Microchip Technology ATTINY412 Datasheet HTML 49Page - Microchip Technology ATTINY412 Datasheet HTML 50Page - Microchip Technology ATTINY412 Datasheet HTML 51Page - Microchip Technology ATTINY412 Datasheet HTML 52Page - Microchip Technology ATTINY412 Datasheet HTML 53Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 49 / 479 page
background image
The flash can either be written with the erase and write separately or one command handling both:
Alternative 1:
•
Fill the page buffer
•
Write the page buffer to flash with the erase-write page command
Alternative 2:
•
Write to a location in the page to set up the address
•
Perform a erase page command
•
Fill the page buffer
•
Perform a write page command
The NVM command set supports both a single erase and write operation, and split page erase and page
write commands. This split commands enable shorter programming time for each command, and the
erase operations can be done during non-time-critical programming execution.
The EEPROM programming is similar, but only the bytes updated in the page buffer will be written or
erased in the EEPROM.
9.3.2.4
Commands
Reading of the Flash/EEPROM and writing of the page buffer is handled with normal load/store
instructions. Other operations, such as writing and erasing the memory arrays, are handled by commands
in the NVM.
To execute a command in the NVM:
1.
Write the NVM command unlock to the Configuration Change Protection register in the CPU
(CPU.CCP).
2.
Write the desired command value to the CMD bits in the Control A register (NVMCTRL.CTRLA)
within the next 4 instructions.
Write Command
The write command of the Flash controller writes the content of the page buffer to the Flash or
EEPROM.
If the write is to the Flash, the CPU will stop executing code as long as the Flash is busy with the write
operation. If the write is to the EEPROM, the CPU can continue executing code while the operation is
ongoing.
The page buffer will be automatically cleared after the operation is finished.
Erase Command
The erase command erases the current page. There must be one byte written in the page buffer for the
erase command to take effect.
For erasing the Flash, first write to one address in the desired page, then execute the command. The
whole page in the Flash will then be erased. The CPU will be halted while the erase is ongoing.
For the EEPROM, only the bytes written in the page buffer will be erased when the command is
executed. To erase a specific byte, write to its corresponding address before executing the command. To
erase a whole page all the bytes in the page buffer has to be updated before executing the command.
The CPU can continue running code while the operation is ongoing.
The page buffer will be automatically cleared after the operation is finished.
ATtiny212/412
© 2017 Microchip Technology Inc.
Datasheet Preliminary
DS40001911A-page 49



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