ATMEGA163L-4PI Atmel, ATMEGA163L-4PI Datasheet - Page 142

IC AVR MCU 16K A/D 2.7V 40DIP

ATMEGA163L-4PI

Manufacturer Part Number
ATMEGA163L-4PI
Description
IC AVR MCU 16K A/D 2.7V 40DIP
Manufacturer
Atmel
Series
AVR® ATmegar
Datasheet

Specifications of ATMEGA163L-4PI

Core Processor
AVR
Core Size
8-Bit
Speed
4MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
32
Program Memory Size
16KB (8K x 16)
Program Memory Type
FLASH
Eeprom Size
512 x 8
Ram Size
1K x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
40-DIP (0.600", 15.24mm)
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
142
ATmega163(L)
Wrloop:
Rdloop:
Return:
Do_spm:
Wait_ee:
Wait_spm:
; re-enable the Application Section
; transfer data from RAM to Flash page buffer
; execute page write
; re-enable the Application Section
; read back and check, optional
; return to Application Section
; verify that Application Section is safe to read
; re-enable the Applicaiton Section
; input: spmcrval determines SPM action
; check that no EEPROM write access is running
; SPM timed sequence
; check for SPM complete
ldi
call
ldi
ldi
ld
ld
ldi
call
adiw
sbiw
brne
subi
sbci
ldi
call
ldi
call
ldi
ldi
subi
sbci
lpm
ld
cpse
jmp
sbiw
brne
in
sbrs
ret
ldi
call
rjmp
sbic
rjmp
out
spm
.dw $FFFF
nop
in
spmcrval, (1<<ASRE) + (1<<SPMEN)
Do_spm
looplo, low(PAGESIZEB)
loophi, high(PAGESIZEB)
r0, Y+
r1, Y+
spmcrval, (1<<SPMEN)
Do_spm
ZH:ZL, 2
loophi:looplo, 2
Wrloop
ZL, low(PAGESIZEB)
ZH, high(PAGESIZEB)
spmcrval, (1<<PGWRT) + (1<<SPMEN)
Do_spm
spmcrval, (1<<ASRE) + (1<<SPMEN)
Do_spm
looplo, low(PAGESIZEB)
loophi, high(PAGESIZEB)
YL, low(PAGESIZEB)
YH, high(PAGESIZEB)
r0, Z+
r1, Y+
r0, r1
Error
loophi:looplo, 1
Rdloop
temp1, SPMCR
temp1, ASB
spmcrval, (1<<ASRE) + (1<<SPMEN)
Do_spm
Return
EECR, EEWE
Wait_ee
SPMCR, spmcrval
temp1, SPMCR
;restore pointer
;use subi for PAGESIZEB<=256
; If ASB is set, the AS is not ready yet
; ensure proper pipelining
; of next instruction
;init loop variable
;not required for PAGESIZEB<=256
;use subi for PAGESIZEB<=256
;restore pointer
;not required for PAGESIZEB<=256
;init loop variable
;not required for PAGESIZEB<=256
1142E–AVR–02/03

Related parts for ATMEGA163L-4PI