| 数据搜索系统,热门电子元器件搜索 |
|
DSPIC33F 数据表(PDF) 65 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
DSPIC33F 数据表(HTML) 65 Page - Microchip Technology |
|
65 / 80 page ![]() © 2007 Microchip Technology Inc. Preliminary DS70152D-page 65 dsPIC33F/PIC24H PROGRAMMING SPECIFICATION 5.9 Reading Configuration Memory The procedure for reading configuration memory is similar to the procedure for reading code memory, except that 16-bit data words are read (with the upper byte read being all ‘0’s) instead of 24-bit words. Since there are twelve Configuration registers, they are read one register at a time. Table 5-10 shows the ICSP programming details for reading all of configuration memory. Note that the TBLPAG register is hard coded to 0xF8 (the upper byte address of configuration memory) and the read pointer, W6, is initialized to 0x0000. TABLE 5-10: SERIAL INSTRUCTION EXECUTION FOR READING ALL CONFIGURATION MEMORY Command (Binary) Data (Hex) Description Step 1: Exit Reset vector. 0000 0000 0000 0000 000000 000000 040200 000000 NOP NOP GOTO 0x200 NOP Step 2: Initialize TBLPAG, the read pointer (W6) and the write pointer (W7) for TBLRD instruction. 0000 0000 0000 0000 0000 200F80 880190 EB0300 207847 000000 MOV #0xF8, W0 MOV W0, TBLPAG CLR W6 MOV #VISI, W7 NOP Step 3: Read the Configuration register and write it to the VISI register (located at 0x784) and clock out the VISI register using the REGOUT command. 0000 0000 0000 0001 BA0BB6 000000 000000 <VISI> TBLRDL [W6++], [W7] NOP NOP Clock out contents of VISI register Step 4: Repeat step 3 twelve times to read all the Configuration registers. Step 5: Reset device internal PC. 0000 0000 040200 000000 GOTO 0x200 NOP |
|
链接网址 |
| 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 |