| 전자부품 데이터시트 검색엔진 |
|
DSPIC33F 데이터시트(PDF) 62 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
DSPIC33F 데이터시트(HTML) 62 Page - Microchip Technology |
|
62 / 80 page ![]() dsPIC33F/PIC24H PROGRAMMING SPECIFICATION DS70152D-page 62 Preliminary © 2007 Microchip Technology Inc. 5.7 Writing Configuration Memory The 8-bit Configuration registers are programmable, one register at a time. The default programming values rec- ommended for the Configuration registers are shown in Table 5-6 and Table 5-7. The recommended default FOSCSEL value is 0x07, which selects the FRC clock oscillator setting. The FBS, FSS and FGS Configuration registers are special since they enable code protection for the device. For security purposes, once any bit in these registers is programmed to ‘0’ (to enable code protec- tion), it can only be set back to ‘1’ by performing a Bulk Erase as described in Section 5.5 “Erasing Program Memory”. Programming any of these bits from a ‘0’ to ‘1’ is not possible, but they may be programmed from a ‘1’ to a ‘0’ to enable code protection. Table 5-8 shows the ICSP programming details for clear- ing the Configuration registers. In Step 1, the Reset vec- tor is exited. In Step 2, the write pointer (W7) is loaded with 0x0000, which is the original destination address (in TBLPAG, 0xF8 of program memory). In Step 3, the NVMCON is set to program one Configuration register. In Step 4, the TBLPAG register is initialized to 0xF8 for writing to the Configuration registers. In Step 5, the value to write to each Configuration register is loaded to W0. In Step 6, the Configuration register data is written to the write latch using the TBLWTL instruction. In Steps 7 and 8, the programming cycle is initiated. In Step 9, the inter- nal PC is set to 0x200 as a safety measure to prevent the PC from incrementing into unimplemented memory. Lastly, Steps 4-9 are repeated until all twelve Configuration registers are written. TABLE 5-6: DEFAULT CONFIGURATION REGISTER VALUES FOR dsPIC33FJ12GP201/202, dsPIC33FJ12MC201/202 AND PIC24HJ12GP201/202 TABLE 5-7: DEFAULT CONFIGURATION REGISTER VALUES FOR ALL OTHER DEVICES Address Name Default Value 0xF80000 FBS 0xCF 0xF80002 FSS 0xFF 0xF80004 FGS 0x07 0xF80006 FOSCSEL 0xA7 0xF80008 FOSC 0xE7 0xF8000A FWDT 0xDF 0xF8000C FPOR 0xF7 0xF8000E FICD 0xE3 0xF80010 FUID0 0xFF 0xF80012 FUID1 0xFF 0xF80014 FUID2 0xFF 0xF80016 FUID3 0xFF Address Name Default Value 0xF80000 FBS 0xCF 0xF80002 FSS 0xCF 0xF80004 FGS 0x07 0xF80006 FOSCSEL 0xA7 0xF80008 FOSC 0xC7 0xF8000A FWDT 0xDF 0xF8000C FPOR 0xE7 0xF8000E FICD 0xE3 0xF80010 FUID0 0xFF 0xF80012 FUID1 0xFF 0xF80014 FUID2 0xFF 0xF80016 FUID3 0xFF |
|
링크 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 |