| Electronic Components Datasheet Search |
|
SH79F166AP/044PR Datasheet(PDF) 27 Page - SINOWEALTH Electronic Ltd |
|
|
|||||||||||||||||||||||||||||
SH79F166AP/044PR Datasheet(HTML) 27 Page - SINOWEALTH Electronic Ltd |
|
27 / 113 page ![]() SH79F166A 27 7.4.3 SSP Programming Notice To successfully complete SSP programming, the user’s software must following the steps below: (1) For Code/Data Programming: 1. Disable interrupt; 2. Fill in the XPAGE, IB_OFFSET for the corresponding address; 3. Fill in IB_DATA if programming is wanted; 4. Fill in IB_CON1-5 sequentially; 5. Add 4 nops for more stable operation; 6. Code/Data programming, CPU will be in IDLE mode; 7. Go to Step 2 if more data are to be programmed; 8. Clear XPAGE; enable interrupt if necessary. (2) For Sector Erase: 1. Disable interrupt; 2. Fill in the XPAGE for the corresponding sector; 3. Fill in IB_CON1-5 sequentially; 4. Add 4 NOPs for more stable operation; 5. Sector Erase, CPU will be in IDLE mode; 6. Go to step 2 if more sectors are to be erased; 7. Clear XPAGE; enable interrupt if necessary. (3) For Code Reading: Just Use “MOVC A, @A+DPTR” or “MOVC A, @A+PC”. (4) For EEPROM-Like: Steps is same as code programming,the diffenrences are: 1.Set FAC bit in FLASHCON register before programming or erase EEPROM-Like; 2.One sector of EEPROM-Like is 256 bytes.not 1024 bytes. Table 7.12 Flash Access Control Register A7H, Bank0 Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 FLASHCON - - - - - - - FAC R/W - - - - - - - R/W Reset Value (POR/WDT/LVR/PIN) - - - - - - - 0 Bit Number Bit Mnemonic Description 0 FAC FAC: Flash access control 0: MOVC or SSP access main memory 1: MOVC or SSP access EEPROM-like |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |