| Electronic Components Datasheet Search |
|
SH89F52P/044PR Datasheet(PDF) 28 Page - SINOWEALTH Electronic Ltd |
|
|
|||||||||||||||||||||||||||||
SH89F52P/044PR Datasheet(HTML) 28 Page - SINOWEALTH Electronic Ltd |
|
28 / 105 page ![]() SH88F516(SH88F54/SH89F52) 28 8.4.3 SSP Programming Notice To successfully complete SSP programming, the user’s software must be set as the following the steps: (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: SH88F516 has 1K(0000H-03FFH) 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. Note: FAC must be cleared when you don't need to do EEPROM-like operation. 8.4.4 Readable Random Code Every chip is cured an 8-bit readable random code after production. Readable random code is 0-255 random value,and can not be erased, read by program or tools. How to read random code: set FAC bit, Assigned to the DPTR as “0A7FH”, clear A, then use “MOVC A, @A+DPTR” to read. Note: It is needed to clear FAC after reading readable random code, otherwise it will influence on the instructions execution of reading program ROM. FLASHCON register description is as follows: Table 8.12 Flash Access Control Register A7H 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 7-1 - Reserved 0 FAC FAC: Flash access control 0: MOVC or SSP access Main Block 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 |