ATmega168 Automotive Atmel Corporation, ATmega168 Automotive Datasheet - Page 262

no-image

ATmega168 Automotive

Manufacturer Part Number
ATmega168 Automotive
Description
Manufacturer
Atmel Corporation

Specifications of ATmega168 Automotive

Flash (kbytes)
16 Kbytes
Pin Count
32
Max. Operating Frequency
16 MHz
Cpu
8-bit AVR
# Of Touch Channels
16
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
No
Crypto Engine
No
Sram (kbytes)
1
Eeprom (bytes)
512
Self Program Memory
YES
Dram Memory
No
Nand Interface
No
Picopower
No
Temp. Range (deg C)
-40 to 150
I/o Supply Class
2.7 to 5.5
Operating Voltage (vcc)
2.7 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
262
ATmega48/88/168 Automotive
Rdloop:
Return:
not ready yet
Do_spm:
Wait_spm:
Wait_ee:
rcall
;
ldi
ldi
subi
sbci
lpm
ld
cpse
rjmp
sbiw
brne
;
;
in
sbrs
ret
;
ldi
rcall
rjmp
;
in
sbrc
rjmp
;
;
in
cli
;
sbic
rjmp
;
out
spm
;
out
ret
read back and check, optional
return to RWW section
verify that RWW section is safe to read
re-enable the RWW section
check for previous SPM complete
input: spmcrval determines SPM action
disable interrupts if enabled, store status
check that no EEPROM write access is present
SPM timed sequence
restore SREG (to enable interrupts if originally enabled)
Do_spm
looplo, low(PAGESIZEB);init loop variable
loophi, high(PAGESIZEB);not required for PAGESIZEB<=256
YL, low(PAGESIZEB)
YH, high(PAGESIZEB)
r0, Z+
r1, Y+
r0, r1
Error
loophi:looplo, 1
Rdloop
temp1, SPMCSR
temp1, RWWSB
spmcrval, (1<<RWWSRE) | (1<<SELFPRGEN)
Do_spm
Return
temp1, SPMCSR
temp1, SELFPRGEN
Wait_spm
temp2, SREG
EECR, EEPE
Wait_ee
SPMCSR, spmcrval
SREG, temp2
;restore pointer
;use subi for PAGESIZEB<=256
; If RWWSB is set, the RWW section is
7530I–AVR–02/10

Related parts for ATmega168 Automotive