ATA6602 ATMEL Corporation, ATA6602 Datasheet - Page 293
ATA6602
Manufacturer Part Number
ATA6602
Description
LIN and Microcontroller System-In-Package: LIN Transceiver, integrated 5V/50 mA voltage regulator, window watchdog and automotive AVR ATmega88 (8 kBytes Flash); green QFN48 package.
Manufacturer
ATMEL Corporation
Datasheet
1.ATA6602.pdf
(362 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
ATA6602-PLQW
Manufacturer:
ATMEL
Quantity:
1 727
Part Number:
ATA6602-PLQW
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Company:
Part Number:
ATA6602NPLQW
Manufacturer:
ATMEL
Quantity:
7 234
- Current page: 293 of 362
- Download datasheet (5Mb)
4.23.7.12
4921C–AUTO–01/07
Simple Assembly Code Example for a Boot Loader
.equ PAGESIZEB = PAGESIZE*2
.org SMALLBOOTSTART
Write_page:
Wrloop:
Rdloop:
;-the routine writes one page of data from RAM to Flash
; the first data location in RAM is pointed to by the Y pointer
; the first data location in Flash is pointed to by the Z-pointer
;-error handling is not included
;-the routine must be placed inside the Boot space
; (at least the Do_spm sub routine). Only code inside NRWW section can
; be read during Self-Programming (Page Erase and Page Write).
;-registers used: r0, r1, temp1 (r16), temp2 (r17), looplo (r24),
; loophi (r25), spmcrval (r20)
; storing and restoring of registers is not included in the routine
; register usage can be optimized at the expense of code size
;-It is assumed that either the interrupt table is moved to the Boot
; loader section or that the interrupts are disabled.
; Page Erase
ldi
call Do_spm
; re-enable the RWW section
ldi
call Do_spm
; transfer data from RAM to Flash page buffer
ldi
ldi
ld
ld
ldi
call Do_spm
adiw ZH:ZL, 2
sbiw loophi:looplo, 2
brne Wrloop
; execute Page Write
subi ZL, low(PAGESIZEB)
sbci ZH, high(PAGESIZEB)
ldi
call Do_spm
; re-enable the RWW section
ldi
call Do_spm
; read back and check, optional
ldi
ldi
subi YL, low(PAGESIZEB)
sbci YH, high(PAGESIZEB)
lpm
ld
cpse r0, r1
jmp
sbiw loophi:looplo, 1
brne Rdloop
spmcrval, (1<<PGERS) | (1<<SELFPRGEN)
spmcrval, (1<<RWWSRE) | (1<<SELFPRGEN)
looplo, low(PAGESIZEB)
loophi, high(PAGESIZEB)
r0, Y+
r1, Y+
spmcrval, (1<<SELFPRGEN)
spmcrval, (1<<PGWRT) | (1<<SELFPRGEN)
spmcrval, (1<<RWWSRE) | (1<<SELFPRGEN)
looplo, low(PAGESIZEB)
loophi, high(PAGESIZEB)
r0, Z+
r1, Y+
Error
;PAGESIZEB is page size in BYTES, not words
;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
;restore pointer
;use subi for PAGESIZEB<=256
ATA6602/ATA6603
293
Related parts for ATA6602
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Digital Attenuator, 50 Db, 6-bit, Ttl Driver, Dc - 2 Ghz
Manufacturer:
Tyco Electronics
Datasheet:
Part Number:
Description:
Voltage Variable Absorptive Attenuator, 30 Db 0.5 - 2 Ghz
Manufacturer:
Tyco Electronics
Datasheet:
Part Number:
Description:
3 Volt Voltage Variable Absorptive Attenuator 40 Db, 0.5-2.0 Ghz
Manufacturer:
Tyco Electronics
Datasheet:
Part Number:
Description:
Digital Attenu A T O R, 15 Db, 4-bit Dc - 2 Ghz
Manufacturer:
Tyco Electronics
Datasheet:
Part Number:
Description:
Digital Attenuator, 30 Db, 4-bit Dc - 2 Ghz
Manufacturer:
Tyco Electronics
Datasheet:
Part Number:
Description:
Digital Attenuator, 28 Db, 3-bit Dc - 2 Ghz
Manufacturer:
Tyco Electronics
Datasheet:
Part Number:
Description:
Digital Attenuator, 15.5 Db, 5-bit Dc - 2 Ghz
Manufacturer:
Tyco Electronics
Datasheet:
Part Number:
Description:
2.25 Volt Voltage Variable Absorptive Attenuator - 40 dB/ 1.8.2.5 GHz
Manufacturer:
Tyco Electronics
Datasheet:
Part Number:
Description:
Low Current/ High Performance NPN Silicon Bipolar Transistor
Manufacturer:
Agilent(Hewlett-Packard)
Datasheet:
Part Number:
Description:
Low Current/ High Performance NPN Silicon Bipolar Transistor
Manufacturer:
Agilent(Hewlett-Packard)
Datasheet:
Part Number:
Description:
Low Current/ High Performance NPN Silicon Bipolar Transistor
Manufacturer:
Agilent(Hewlett-Packard)
Datasheet:
Part Number:
Description:
(AT-332 / AT-337) Voltage Variable Absorptive Attenuator DC - 2 GHz
Manufacturer:
Tyco Electronics
Datasheet:
Part Number:
Description:
Digital Attenuator, 31.5 Db, 6-bit, Ttl Driver, Dc - 2 Ghz
Manufacturer:
Tyco Electronics
Datasheet:
Part Number:
Description:
2.25 Volt Voltage Variable Absorptive Attenuator - 40 Db, 1.8.2.5 Ghz
Manufacturer:
Tyco Electronics
Datasheet:
Part Number:
Description:
Digital Attenuator, 30 Db, 4-bit, Dc - 2 Ghz
Manufacturer:
Tyco Electronics
Datasheet: