| поискавой системы для электроныых деталей |
|
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 |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |