AT90CAN128-16AE ATMEL Corporation, AT90CAN128-16AE Datasheet - Page 95

no-image

AT90CAN128-16AE

Manufacturer Part Number
AT90CAN128-16AE
Description
8-bit Avr Microcontroller With 128K Bytes of Isp Flash And CAN Controller.flash (Kbytes) 128 Vcc (V) 2.7-5.5 EEPROM (Kbytes) 4 SRAM (bytes) 4K CAN (mess. Obj.) 15
Manufacturer
ATMEL Corporation
Datasheet
8-bit Timer/Counter0 with PWM
Features
Overview
Registers
4250C–CAN–03/04
Timer/Counter0 is a general purpose, single channel, 8-bit Timer/Counter module. The
main features are:
Many register and bit references in this section are written in general form.
A simplified block diagram of the 8-bit Timer/Counter is shown in Figure 36. For the
actual placement of I/O pins, refer to “Pinout AT90CAN128- TQFP” on page 4. CPU
accessible I/O Registers, including I/O bits and I/O pins, are shown in bold. The device-
specific I/O Register and bit locations are listed in the “8-bit Timer/Counter Register
Description” on page 105.
Figure 36. 8-bit Timer/Counter Block Diagram
The Timer/Counter (TCNT0) and Output Compare Register (OCR0A) are 8-bit registers.
Interrupt request (abbreviated to Int.Req. in the figure) signals are all visible in the Timer
Single Channel Counter
Clear Timer on Compare Match (Auto Reload)
Glitch-free, Phase Correct Pulse Width Modulator (PWM)
Frequency Generator
External Event Counter
10-bit Clock Prescaler
Overflow and Compare Match Interrupt Sources (TOV0 and OCF0A)
A lower case “n” replaces the Timer/Counter number, in this case 0. However, when
using the register or bit defines in a program, the precise form must be used, i.e.,
TCNT0 for accessing Timer/Counter0 counter value and so on.
A lower case “x” replaces the Output Compare unit channel, in this case A.
However, when using the register or bit defines in a program, the precise form must
be used, i.e., OCR0A for accessing Timer/Counter0 output compare channel A
value and so on.
Timer/Counter
OCRnx
TCNTn
=
direction
count
clear
BOTTOM
= 0
Control Logic
=
TCCRn
TOP
0xFF
clk
Tn
Generation
Waveform
Clock Select
( From Prescaler )
Detector
Edge
AT90CAN128
OCn
(Int.Req.)
OCnx
TOVn
(Int.Req.)
Tn
95

Related parts for AT90CAN128-16AE