Example: air traffic controller

線上燒錄 In System Program (ISP) 應用筆記

Internal ISP Application Note In System Program (ISP) . IC SM5964 SM5964A SM59128 SM59264 SM59D03/04G2 SM59R08/16A2.. 1. ISP ..2. 2..3. 2-2 UART ..5. 3. ISP ..8. 3-1 ISP ..8. 3-2 ..9. 4..11. 5..12. A ..13. B ISP ..15. B-2 Generate baud rate with Timer1 ..16. B-3 IIC C ..18. C-1 PC MCU ..18. C-2 MCU PC ..18. C-3 ISP ..19. C-4 ..20. C-5 ..21. C-6 ..22. C-7 ..23. C-8 MCU ..24. D ..25. D-1 Page Erase(Code Flash) ..25. Specifications subject to change without notice, contact your sales representatives for the most recent information. IRFSX-0009 1 Ver. D 2009/03. Internal ISP Application Note 1. ISP . ISP(In System Program ) IC. UART IIC . ISP . PC . Internal ISP ISP . COM Port UART. UART .. LPT Port IIC.

Internal ISP Application Note Specifications subject to change without notice, contact your sales representatives for the most recent information.

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Transcription of 線上燒錄 In System Program (ISP) 應用筆記

1 Internal ISP Application Note In System Program (ISP) . IC SM5964 SM5964A SM59128 SM59264 SM59D03/04G2 SM59R08/16A2.. 1. ISP ..2. 2..3. 2-2 UART ..5. 3. ISP ..8. 3-1 ISP ..8. 3-2 ..9. 4..11. 5..12. A ..13. B ISP ..15. B-2 Generate baud rate with Timer1 ..16. B-3 IIC C ..18. C-1 PC MCU ..18. C-2 MCU PC ..18. C-3 ISP ..19. C-4 ..20. C-5 ..21. C-6 ..22. C-7 ..23. C-8 MCU ..24. D ..25. D-1 Page Erase(Code Flash) ..25. Specifications subject to change without notice, contact your sales representatives for the most recent information. IRFSX-0009 1 Ver. D 2009/03. Internal ISP Application Note 1. ISP . ISP(In System Program ) IC. UART IIC . ISP . PC . Internal ISP ISP . COM Port UART. UART .. LPT Port IIC.

2 IIC .. Windows . { . ISP();. WinHost ..}. ISP . ISP . Windows ISP hex/bin .. Specifications subject to change without notice, contact your sales representatives for the most recent information. IRFSX-0009 2 Ver. D 2009/03. Internal ISP Application Note 2.. 2-1 IIC . (a) IIC (MSM9040) Printer Port 5V VGA cable (Target board) Monitor Target board VGA. D-sub IIC IIC Target board . IIC MSM9040. (b) ( ) IIC IC LTP1 IIC. SETTING ID 36h Delay 5us SCL Erase Program . Auto Run . Specifications subject to change without notice, contact your sales representatives for the most recent information. IRFSX-0009 3 Ver. D 2009/03. Internal ISP Application Note - IIC . IIC IC . Specifications subject to change without notice, contact your sales representatives for the most recent information.

3 IRFSX-0009 4 Ver. D 2009/03. Internal ISP Application Note 2-2 UART . (a) RS232 cable UART (MSM9041) COM Port UART . , (Target board) Target board 5V .. UART MSM9041. (b) ( ). 1. UART IC COM Port .. 2.. Specifications subject to change without notice, contact your sales representatives for the most recent information. IRFSX-0009 5 Ver. D 2009/03. Internal ISP Application Note - UART . SyncMOS ISP IC 64KB . WinHost ISAP .. IC 16KB . Specifications subject to change without notice, contact your sales representatives for the most recent information. IRFSX-0009 6 Ver. D 2009/03. Internal ISP Application Note . SM59128 128KB ISP CODE BANK0 . BANK1 BANK0 BANK1 WinHost ISAP .. Specifications subject to change without notice, contact your sales representatives for the most recent information.

4 IRFSX-0009 7 Ver. D 2009/03. Internal ISP Application Note 3. ISP . 3-1 ISP . ISP ISP IC IC ISP . 512 Byte ISP . IC ISP Hex/Bin . WinHost ISAP . C:\ Program Files\SyncMOS\SyncMOS Writers\WinHost\Int_isp\FW. C:\ Program Files\SyncMOS\SyncMOS Writers\ISAP\ISP. IC ISP . ISAP. IC Flash ROM ISP ISP . SM5964 SM5964A 64KB FE00H. SM59264. SM59128 128KB SM59128 ISP FE00H, 1FE00H. SM59D03G2 SM59D04G2 16KB 3E00H. SM59R08A2 32KB 3E00H. SM59R16A2 64KB FE00H. WinHost IC Flash ROM ISP ISP . SM5964 SM5964A 64KB FE00H. SM59264 SM59364. SM59128 128KB SM59128 ISP FE00H, 1FE00H. SM59D03G2 SM59D04G2 16KB 3E00H. IC ISP Code Protect ISP . SyncMOS MSM9169 Config N=1 0xFE00. ~ 0xFFFF Protect . Config=1 . SM59XX SM59 DXX IC ISP.

5 IC SM59 RXX IC . Specifications subject to change without notice, contact your sales representatives for the most recent information. IRFSX-0009 8 Ver. D 2009/03. Internal ISP Application Note SyncMOS MSM9169 Config . Config=1 ISP Chip Erase .. 3-2 . Keil C ISP Project . ISP . Project window . ; Specifications subject to change without notice, contact your sales representatives for the most recent information. IRFSX-0009 9 Ver. D 2009/03. Internal ISP Application Note NAME GOTOISP. ?PR?GotoIsp?GOTOISP SEGMENT CODE. PUBLIC GotoIsp RSEG ?PR?GotoIsp?GOTOISP. USING 0. GotoIsp: LJMP 0FE00H ;isp start address END. IC .A51 . IC Flash ROM ISP . SM5964, SM5964A, SM59264 64KB SM59128 128KB SM59D04G2 16KB WinHost Int_isp, A51.

6 X:\ Program Files\SyncMOS ISP\ \Int_isp\A51.. #include < .h>.. extern void GoToIsp(void); // . // SM5964, SM5964A, SM59264, SM59128 GoToIsp(void);. // SM59D04G2 GoToISP_Low (void);.. void main(void). {. if( = = 0) // ISP Pin . {. GoToIsp();. }.. }. Specifications subject to change without notice, contact your sales representatives for the most recent information. IRFSX-0009 10 Ver. D 2009/03. Internal ISP Application Note 4.. (1) Program .. Program Chip Erase . (2) ISP . (a) . (b) ISP Chip Erase ISP Code . Config 1 Protect (XELTEK) . Protect . XELTEK Protect . (c) ISP ISP . (d) Windows XP ISP .. (e) UART mode 5V IIC mode . 5V . (f) ISP CODE Config BANK0 ISP CODE BANK1 ISP CODE. ISP CHIP Erase BANK1 ISP CODE BANK1 ISP.

7 ISP PAGE Erase BANK1 ISP CODE . Specifications subject to change without notice, contact your sales representatives for the most recent information. IRFSX-0009 11 Ver. D 2009/03. Internal ISP Application Note 5.. (1) ISP Chip Erase Page Erase Flash . FF . (2) . (3) MCU Reset UART Auto Scan Baud Rate . (4) Auto Scan Baud Rate MCU Power ON/OFF Auto Scan . (5) ISP ISP Program IC ISP. service Program . 1 ISP enable and disable bit SFR SCONF ISPE . ISP command enable . ISP command disable ISP code ( ). System Control Register (SCONF, $BF). bit-7 bit-0. WDR Unused Unused Unused DFEN ISPE OME ALEI. Read / Write: R/W - - - - R/W R/W R/W. Reset value: 0 * * * * 0 1 0. 2 ISP Byte Program 0xEFFFH 0x0000H ISP Byte Program .

8 ISP mode ISP service Program SM5964 ISP service Program address 0x0000H= 0xFF . 3 ISP service Program . Specifications subject to change without notice, contact your sales representatives for the most recent information. IRFSX-0009 12 Ver. D 2009/03. Internal ISP Application Note A . P3 VGA_5V. S1. VGA_5V. CONNECTOR DB25. 10. 13 9. 25 R1 R2 11 8. 12 10K 75K 12 7. 24 13 6. 11 VGA_5V 14 5. 23 MMBT3904L 15 4. 10 R3 Q1 3. 22 751. GND 2. 9 Q2 1. 21 MMBT3904L R5. R5. 8 S2. 20. 7 SDA_1. 19. 6 GND CONNECTOR DB15. SCL_1. 18. 5 R4 OUTPUT FROM PC. 17 Q3. 4 MMBT3904L. 16 751. 3. 15 P3. GND VGA_5V. 2. S1. 14 10. 1 R7 9. SDA_2. 47K R8 11 8. U1 12 7. P1. 1 8 13 6. A0 VCC 100 SCL_2 14 5. 2 7 R9. 3 A1 WP 6 15 4.

9 4 A2 SCL 5 3. GND SDA 100 2. 1. 24AA02 C1. S2. GND CONNECTOR DB15. GND. GND. MSM9040 IIC . Specifications subject to change without notice, contact your sales representatives for the most recent information. IRFSX-0009 13 Ver. D 2009/03. Internal ISP Application Note MSM9041 UART . Specifications subject to change without notice, contact your sales representatives for the most recent information. IRFSX-0009 14 Ver. D 2009/03. Internal ISP Application Note B ISP . B-1 ISP . (a) ISPFAH: Flash address-high for ISP function FA15 FA14 FA13 FA12 FA11 FA10 FA9 FA8. Reset Value 0 0 0 0 0 0 0 0. (b) ISPFAL: Flash address-low for ISP function FA7 FA6 FA5 FA4 FA3 FA2 FA1 FA0. Reset Value 0 0 0 0 0 0 0 0.

10 (c) ISPFD: 8-bit data for ISP function FD7 FD6 FD5 FD4 FD3 FD2 FD1 FD0. Reset Value 0 0 0 0 0 0 0 0. ISP : MOV ISPFD, #55h MOV ISPFD, #0 AAh MOV ISPFD, #55h (d) ISP Registers System Control Register (SCONF $BF). WDR Unused Unused Unused DFEN ISPE OME ALEI. (BANK). Read/Write R/W - - - R/W R/W R/W R/W. Reset Value 0 * * * 0 0 0 0. ISPE: ISP ISP 1. SM59264: SM59128: DFEN: 1: Enable Data Flash BANK: 1: BANK1. 0: Disable Data Flash 0: BANK0. SM59264 Data Flash DFEN=1(Enable). Specifications subject to change without notice, contact your sales representatives for the most recent information. IRFSX-0009 15 Ver. D 2009/03. Internal ISP Application Note (e) ISPC: ISP Control Register (ISPC $F7). START Unused FAU0 Unused Unused Unused ISPF1 ISPF0.


Related search queries