| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
ATTINY441 bảng dữ liệu(PDF) 21 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
ATTINY441 bảng dữ liệu(HTML) 21 Page - ATMEL Corporation |
|
21 / 366 page ![]() 21 ATtiny441/841 [DATASHEET] 8495H–AVR–05/2014 The next code examples show assembly and C functions for reading the EEPROM. The examples assume that interrupts are controlled so that no interrupts will occur during execution of these functions. Note: See “Code Examples” on page 6. Note: See “Code Examples” on page 6. 5.4 Register Description 5.4.1 EEARH – EEPROM Address Register High Bits 7:1 – Res: Reserved These bits are reserved and will always read zero. Bit 0 – EEAR8: EEPROM Address This is the high address bit in ATtiny841. It is not implemented in ATtiny441. Assembly Code Example EEPROM_read: ; Wait for completion of previous write sbic EECR, EEPE rjmp EEPROM_read ; Set up address (r18:r17) in address registers out EEARH, r18 out EEARL, r17 ; Start eeprom read by writing EERE sbi EECR, EERE ; Read data from data register in r16, EEDR ret C Code Example unsigned char EEPROM_read(unsigned int ucAddress) { /* Wait for completion of previous write */ while(EECR & (1<<EEPE)); /* Set up address register */ EEAR = ucAddress; /* Start eeprom read by writing EERE */ EECR |= (1<<EERE); /* Return data from data register */ return EEDR; } Bit 7 65 43 21 0 0x1F (0x3F) –– –– –– – EEAR8 EEARH Read/Write RRR RR RR R/W Initial Value 0 0 0 0 0 0 0 X/0 |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |