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

X  

ATTINY817-MFR. Datasheet(PDF) 147 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) 147 Page - Microchip Technology

Back Button ATTINY817-MFR. Datasheet HTML 143Page - Microchip Technology ATTINY817-MFR. Datasheet HTML 144Page - Microchip Technology ATTINY817-MFR. Datasheet HTML 145Page - Microchip Technology ATTINY817-MFR. Datasheet HTML 146Page - Microchip Technology ATTINY817-MFR. Datasheet HTML 147Page - Microchip Technology ATTINY817-MFR. Datasheet HTML 148Page - Microchip Technology ATTINY817-MFR. Datasheet HTML 149Page - Microchip Technology ATTINY817-MFR. Datasheet HTML 150Page - Microchip Technology ATTINY817-MFR. Datasheet HTML 151Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 147 / 492 page
background image
20.3.2
Initialization
To start using the timer/counter in a basic mode, follow these steps:
•
Write a TOP value to the Period register (TCA.PER)
•
Enable the peripheral by writing a '1' to the ENABLE bit in the Control A register (TCA.CTRLA).
The counter will start counting clock ticks according to the prescaler setting in the Clock Select bit
field (CLKSEL) in TCA.CTRLA.
•
Optional: By writing a '1' to the Enable Count on Event Input bit (CNTEI) in the Event Control
register (TCA.EVCTRL), Event inputs are counted instead of clock ticks.
•
The counter value can be read from the Counter bit field (CNT) in the Counter register (TCA.CNT).
20.3.3
Operation
20.3.3.1 Normal Operation
In normal operation, the counter is counting clock ticks in the direction selected by the Direction bit (DIR)
in the Control E register (TCA.CTRLE), until it reaches TOP or BOTTOM. The clock ticks are from the
peripheral clock CLK_PER, optionally prescaled, depending on the Clock Select bit field (CLKSEL) in the
Control A register (TCA.CTRLA).
When up-counting and TOP is reached, the counter will wrap to zero at the next clock tick. When down-
counting, the counter is reloaded with the Period register value (TCA.PER) when BOTTOM is reached.
Figure 20-4. Normal Operation
CNT written
"update"
CNT
DIR
MAX
TOP
BOTTOM
It is possible to change the Counter value in the Counter register (TCA.CNT) when the counter is running.
The write access to TCA.CNT has higher priority than count, clear, or reload, and will be immediate. The
direction of the counter can also be changed during normal operation by writing to DIR in TCA.CTRLE.
20.3.3.2 Double Buffering
The Period register value (TCA.PER) and the Compare n register values (TCA.CMPn) are all double
buffered (TCA.PERBUF and TCA.CMPnBUF).
Each buffer register has a Buffer Valid flag (PERBV, CMPnBV) in the Control F register (TCA.CTRLF),
which indicates that the buffer register contains a valid, i.e. new, value that can be copied into the
corresponding Period or Compare register. When the Period register and Compare n registers are used
for a Compare operation, the BV flag is set when data is written to the buffer register, and cleared on an
UPDATE condition. This is shown for a Compare register in below.
ATtiny417/817
© 2017 Microchip Technology Inc.
Datasheet Complete
DS40001901B-page 147



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