41 lines
825 B
C
41 lines
825 B
C
|
#ifndef __ISP_H
|
|||
|
#define __ISP_H
|
|||
|
|
|||
|
|
|||
|
#define STATE_OK 0x5a
|
|||
|
#define STATE_ERROR 0xff
|
|||
|
|
|||
|
#define UART_ERASE 0xfe
|
|||
|
#define UART_PROGRAM 0xfd
|
|||
|
#define UART_BLANK_CHECK 0xfc
|
|||
|
#define UART_CHECKSUM_CHECK 0xfb
|
|||
|
#define UART_READ 0xfa
|
|||
|
#define UART_READ4B 0xf9
|
|||
|
#define UART_SOFT_RESET 0xf8
|
|||
|
|
|||
|
#define CODE_SECTOR 1 //512Bytes
|
|||
|
#define CODE_SIZE 122 //64KBytes = 512byte*128<32><38><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2Kbyte<74><65><EFBFBD><EFBFBD>ISP<53><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ԥ<EFBFBD><D4A4>4K EEPROM
|
|||
|
|
|||
|
#define E2P_SECTOR 1 //512Bytes(EEPROM One Sector Size<7A><65><EFBFBD><EFBFBD>λΪ512Bytes)
|
|||
|
#define E2P_SIZE 8 //8KBytes(EEPROM all Sector Size<7A><65><EFBFBD><EFBFBD>λΪ512Bytes)
|
|||
|
|
|||
|
#define PROGRAM_LENGTH 64
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
extern U8 xdata ucUartBuf[];
|
|||
|
extern U8 xdata ucUartBufPT;
|
|||
|
extern U8 xdata ucUartSndLength;
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
//extern void ISPProcess(void);
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
#endif
|