AT90USB162 Atmel Corporation, AT90USB162 Datasheet - Page 23
![no-image](/images/manufacturer_photos/0/0/79/atmel_corporation_sml.jpg)
AT90USB162
Manufacturer Part Number
AT90USB162
Description
Manufacturer
Atmel Corporation
Specifications of AT90USB162
Flash (kbytes)
16 Kbytes
Pin Count
32
Max. Operating Frequency
16 MHz
Cpu
8-bit AVR
Hardware Qtouch Acquisition
No
Max I/o Pins
22
Ext Interrupts
21
Usb Transceiver
1
Usb Speed
Full Speed
Usb Interface
Device
Spi
2
Uart
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Analog Comparators
1
Resistive Touch Screen
No
Temp. Sensor
No
Crypto Engine
No
Sram (kbytes)
0.5
Eeprom (bytes)
512
Self Program Memory
YES
Dram Memory
No
Nand Interface
No
Picopower
No
Temp. Range (deg C)
-40 to 85
I/o Supply Class
2.7 to 5.5
Operating Voltage (vcc)
2.7 to 5.5
Fpu
No
Mpu / Mmu
no / no
Timers
2
Output Compare Channels
5
Input Capture Channels
1
Pwm Channels
4
32khz Rtc
No
Calibrated Rc Oscillator
Yes
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
AT90USB162-16AU
Manufacturer:
Atmel
Quantity:
30 024
Part Number:
AT90USB162-16AU
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Company:
Part Number:
AT90USB162-16AUR
Manufacturer:
Atmel
Quantity:
2 751
Company:
Part Number:
AT90USB162-16MU
Manufacturer:
Atmel
Quantity:
42 926
Part Number:
AT90USB162-16MU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Company:
Part Number:
AT90USB162-16MUR
Manufacturer:
TT
Quantity:
400 000
7618C–AVR–07/08
;*F************************************************************************
**
; NAME: flash_page_erase_public
;--------------------------------------------------------------------------
--
; PARAMS:
;--------------------------------------------------------------------------
--
; PURPOSE:
;--------------------------------------------------------------------------
--
; NOTE:
; erase the hardware temporary temp buffer after page erase
;**************************************************************************
**
flash_page_erase_public:
;*F************************************************************************
**
; NAME: flash_rww_enable
;--------------------------------------------------------------------------
--
; PARAMS:
;--------------------------------------------------------------------------
--
; PURPOSE:
section
; after a flash prog (erase or write page)
;**************************************************************************
**
RCALL
MOV
MOV
OUT
LDI
OUTSPMCSR, R20; argument 2 decides function (r18)
SPM
RCALL
RCALL
RET
flash_rww_enable:
RCALL
LDI
OUT SPMCSR, R20 ; argument 2 decides function (r18)
SPM
RJMP
!!!!This function set the RWWSE bit after erase. Thus it
WAIT_SPMEN
R31,R17
R30,R16
RAMPZ, R18
R20,$03
flash_rww_enable
WAIT_SPMEN
R20,$11
WAIT_SPMEN
R18:17:R16: The byte address of the page
WAIT_SPMEN
none
Launch the erase sequence of the target page
Set RWSE bit. It allows to execute code in the application
;Store program memory
;Wait for SPMEN flag cleared
;move adress to z pointer (R31=ZH R30=ZL)
;(1<<PGERS) + (1<<SPMEN)))
;Wait for SPMEN flag cleared
;(1<<WWSRE) + (1<<SPMEN)))
;Store program memory
;Wait for SPMEN flag cleared
;Wait for SPMEN flag cleared
23