| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
PIC16F bảng dữ liệu(PDF) 30 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC16F bảng dữ liệu(HTML) 30 Page - Microchip Technology |
|
30 / 40 page ![]() PIC16F/LF182X/PIC12F/LF1822 DS41390C-page 30 Advance Information 2010 Microchip Technology Inc. 7.4 Checksum Computation The checksum is calculated by two different methods dependent on the setting of the CP Configuration bit. 7.4.1 PROGRAM CODE PROTECTION DISABLED With the program code protection disabled, the checksum is computed by reading the contents of the PIC16F/LF182X and PIC12F/LF1822 program memory locations and adding up the program memory data starting at address 0000h, up to the maximum user addressable location. Any Carry bit exceeding 16 bits are ignored. Additionally, the relevant bits of the Configuration Words are added to the checksum. All unimplemented Configuration bits are masked to ‘0’. EXAMPLE 7-1: CHECKSUM COMPUTED WITH PROGRAM CODE PROTECTION DISABLED PIC16F1827, BLANK DEVICE EXAMPLE 7-2: CHECKSUM COMPUTED WITH PROGRAM CODE PROTECTION DISABLED PIC16LF1827, 00AAh AT FIRST AND LAST ADDRESS TABLE 7-1: CONFIGURATION WORD MASK VALUES Device Config. Word 1 Mask Config. Word 2 Mask PIC16F1826 3FFFh 3713h PIC16F1827 3FFFh 3713h PIC16LF1826 3FFFh 3703h PIC16LF1827 3FFFh 3703h PIC12F1822 3FFFh 3713h PIC12LF1822 3FFFh 3713h PIC16F1823 3FFFh 3713h PIC16LF1823 3FFFh 3713h PIC16F1824 3FFFh 3713h PIC16LF1824 3FFFh 3713h PIC16F1825 3FFFh 3713h PIC16LF1825 3FFFh 3713h PIC16F1828 3FFFh 3713h PIC16LF1828 3FFFh 3713h PIC16F1829 3FFFh 3713h PIC16LF1829 3FFFh 3713h Note: Data memory does not effect the checksum. PIC16F1827 Sum of Memory addresses 0000h-0FFFh F000h Configuration Word 1 3FFFh Configuration Word 1 mask 3FFFh Configuration Word 2 3FFFh Configuration Word 2 mask 3713h Checksum = F000h + (3FFFh and 3FFFh) + (3FFFh and 3713h) = F000h + 3FFFh + 3713h = 6712h PIC16LF1827 Sum of Memory addresses 0000h-0FFFh 7156h Configuration Word 1 3FFFh Configuration Word 1 mask 3FFFh Configuration Word 2 3FFFh Configuration Word 2 mask 3703h Checksum = 7156h + (3FFFh and 3FFFh) + (3FFFh and 3703h) = 7156h + 3FFFh + 3703h = E858h |
|
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 |