| 전자부품 데이터시트 검색엔진 |
|
AT90USB82 데이터시트(PDF) 24 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
AT90USB82 데이터시트(HTML) 24 Page - ATMEL Corporation |
|
24 / 28 page ![]() 24 7618C–AVR–07/08 ;*F************************************************************************ ** ; NAME: flash_read_sig ;-------------------------------------------------------------------------- -- ; PARAMS: ; Return: R16: signature value ;-------------------------------------------------------------------------- -- ; PURPOSE: Read harware signature byte. THe byte is selected trought the addr ; passed as argument (see product data sheet) ;************************************************************************** ** flash_read_sig: 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,$21 ;(1<<SPMEN) | (1<<SIGRD)) OUT SPMCSR, R20; argument 2 decides function (r18) LPM ;Store program memory MOV R16, R0 ;Store return value (1byte->R16 register) RJMP WAIT_SPMEN ;Wait for SPMEN flag cleared ;*F************************************************************************ ** ; NAME: flash_read_fuse ;-------------------------------------------------------------------------- -- ; Return: R16: fuse value ;-------------------------------------------------------------------------- -- ; PURPOSE: Read fuse byte. The fuse byte is elected through the address passed ; as argument (See product datasheet for addr value) ;************************************************************************** ** flash_read_fuse: 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,$09 ;(1<<SPMEN) | (1<<BLBSET)) OUT SPMCSR, R20; argument 2 decides function (r18) LPM ;Store program memory MOV R16, R0 ;Store return value (1byte->R16 register) |
|
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |