Datenblatt-Suchmaschine für elektronische Bauteile |
|
AT90USB162 Datenblatt(PDF) 23 Page - ATMEL Corporation |
|
AT90USB162 Datenblatt(HTML) 23 Page - ATMEL Corporation |
23 / 28 page 23 7618C–AVR–07/08 ;*F************************************************************************ ** ; NAME: flash_page_erase_public ;-------------------------------------------------------------------------- -- ; PARAMS: R18:17:R16: The byte address of the page ;-------------------------------------------------------------------------- -- ; PURPOSE: Launch the erase sequence of the target page ;-------------------------------------------------------------------------- -- ; NOTE: !!!!This function set the RWWSE bit after erase. Thus it ; erase the hardware temporary temp buffer after page erase ;************************************************************************** ** flash_page_erase_public: RCALL WAIT_SPMEN ;Wait for SPMEN flag cleared MOV R31,R17 MOV R30,R16 ;move adress to z pointer (R31=ZH R30=ZL) OUT RAMPZ, R18 LDI R20,$03 ;(1<<PGERS) + (1<<SPMEN))) OUTSPMCSR, R20; argument 2 decides function (r18) SPM ;Store program memory RCALL WAIT_SPMEN ;Wait for SPMEN flag cleared RCALL flash_rww_enable RET ;*F************************************************************************ ** ; NAME: flash_rww_enable ;-------------------------------------------------------------------------- -- ; PARAMS: none ;-------------------------------------------------------------------------- -- ; PURPOSE: Set RWSE bit. It allows to execute code in the application section ; after a flash prog (erase or write page) ;************************************************************************** ** flash_rww_enable: RCALL WAIT_SPMEN ;Wait for SPMEN flag cleared LDI R20,$11 ;(1<<WWSRE) + (1<<SPMEN))) OUT SPMCSR, R20 ; argument 2 decides function (r18) SPM ;Store program memory RJMP WAIT_SPMEN ;Wait for SPMEN flag cleared |
Ähnliche Teilenummer - AT90USB162 |
|
Ähnliche Beschreibung - AT90USB162 |
|
|
Link URL |
Privatsphäre und Datenschutz |
ALLDATASHEETDE.COM |
War ALLDATASHEET hilfreich? [ DONATE ] |
Über Alldatasheet | Werbung | Kontakt | Privatsphäre und Datenschutz | Linktausch | Hersteller All Rights Reserved©Alldatasheet.com |
Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
Family Site : ic2ic.com |
icmetro.com |