ATmega88P Atmel Corporation, ATmega88P Datasheet - Page 116

no-image

ATmega88P

Manufacturer Part Number
ATmega88P
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of ATmega88P

Flash (kbytes)
8 Kbytes
Pin Count
32
Max. Operating Frequency
20 MHz
Cpu
8-bit AVR
# Of Touch Channels
12
Hardware Qtouch Acquisition
No
Max I/o Pins
23
Ext Interrupts
24
Usb Speed
No
Usb Interface
No
Spi
2
Twi (i2c)
1
Uart
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
8
Adc Resolution (bits)
10
Adc Speed (ksps)
15
Analog Comparators
1
Resistive Touch Screen
No
Temp. Sensor
Yes
Crypto Engine
No
Sram (kbytes)
1
Eeprom (bytes)
512
Self Program Memory
YES
Dram Memory
No
Nand Interface
No
Picopower
Yes
Temp. Range (deg C)
-40 to 85
I/o Supply Class
1.8 to 5.5
Operating Voltage (vcc)
1.8 to 5.5
Fpu
No
Mpu / Mmu
no / no
Timers
3
Output Compare Channels
6
Input Capture Channels
1
Pwm Channels
6
32khz Rtc
Yes
Calibrated Rc Oscillator
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATmega88P-20AU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega88P-20AUR
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega88P-20MU
Manufacturer:
ATMEL
Quantity:
12 246
Part Number:
ATmega88P-20PI
Manufacturer:
ATMEL
Quantity:
1 200
Part Number:
ATmega88P-20PU
Manufacturer:
SEMIKRON
Quantity:
100
Part Number:
ATmega88PA-15AZ
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega88PA-15MZ
Manufacturer:
ATMEL
Quantity:
228
Part Number:
ATmega88PA-AN
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega88PA-ANR
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega88PA-AU
Manufacturer:
ATMEL
Quantity:
14 000
Part Number:
ATmega88PA-AU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATmega88PA-MMH
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
16.3.1
16.4
116
Timer/Counter Clock Sources
ATmega48P/88P/168P
Reusing the Temporary High Byte Register
Note:
The assembly code example requires that the r17:r16 register pair contains the value to be writ-
ten to TCNT1.
If writing to more than one 16-bit register where the high byte is the same for all registers written,
then the high byte only needs to be written once. However, note that the same rule of atomic
operation described previously also applies in this case.
The Timer/Counter can be clocked by an internal or an external clock source. The clock source
is selected by the Clock Select logic which is controlled by the Clock Select (CS12:0) bits
located in the Timer/Counter control Register B (TCCR1B). For details on clock sources and
prescaler, see
Assembly Code Example
C Code Example
TIM16_WriteTCNT1:
void TIM16_WriteTCNT1( unsigned int i )
{
}
; Save global interrupt flag
in r18,SREG
; Disable interrupts
cli
; Set TCNT1 to r17:r16
out TCNT1H,r17
out TCNT1L,r16
; Restore global interrupt flag
out SREG,r18
ret
unsigned char sreg;
unsigned int i;
/* Save global interrupt flag */
sreg = SREG;
/* Disable interrupts */
_CLI();
/* Set TCNT1 to i */
TCNT1 = i;
/* Restore global interrupt flag */
SREG = sreg;
1.
See ”About Code Examples” on page 8.
For I/O Registers located in extended I/O map, “IN”, “OUT”, “SBIS”, “SBIC”, “CBI”, and “SBI”
instructions must be replaced with instructions that allow access to extended I/O. Typically
“LDS” and “STS” combined with “SBRS”, “SBRC”, “SBR”, and “CBR”.
”Timer/Counter0 and Timer/Counter1 Prescalers” on page
(1)
(1)
139.
8025M–AVR–6/11

Related parts for ATmega88P