宏定义 | |
#define | PER_LIB_MCU_MUODEL STC8Ax |
如果没有定义这个宏,默认为STC8Ax。 If the mirco is undefined,select to STC8Ax 更多... | |
#define | PER_LIB_RST_CTRL 1 |
如果没有定义这个宏,默认为1。 If the mirco is undefined,select to "1" 更多... | |
#define | PER_LIB_RST_INIT_CTRL 1 |
如果没有定义这个宏,默认为1。 If the mirco is undefined,select to "1" 更多... | |
#define | PER_LIB_RST_WORK_CTRL 1 |
如果没有定义这个宏,默认为1。 If the mirco is undefined,select to "1" 更多... | |
#define | RST_P54_ENABLE() do{RSTCFG |= 0x10;}while(0) |
使能P54作为复位IO。 更多... | |
#define | RST_P54_DISABLE() do{RSTCFG &= 0xEF;}while(0) |
不使能P54作为复位IO。 更多... | |
枚举 | |
enum | RSTChoice_Type { RST_USER_DATA_KEEP = 0x00 , RST_USER_DATA_CLEAN = 0x01 } |
RST复位方式选择枚举体。 更多... | |
enum | LVDRstDiv_Type { LVD_RST_2_2V = 0x00 , LVD_RST_2_4V = 0x01 , LVD_RST_2_7V = 0x02 , LVD_RST_3_0V = 0x03 } |
低压复位的电压临界点选择枚举体。 更多... | |
函数 | |
FSCSTATE | LVD_RST_Init (LVDRstDiv_Type lvDiv, BOOL run) |
低压复位函数,可以选择不同低压复位标准。 更多... | |
FSCSTATE | SFW_RST_Ctrl (RSTChoice_Type choice, BOOL run) |
软件复位控制函数。 更多... | |
void | Auto_RST_download (void) |
软件复位自动下载功能,需要在串口中断里调用, 需要在STC-ISP助手里设置下载口令:10个0x7F。 更多... | |
#define PER_LIB_MCU_MUODEL STC8Ax |
如果没有定义这个宏,默认为STC8Ax。 If the mirco is undefined,select to STC8Ax
#define PER_LIB_RST_CTRL 1 |
如果没有定义这个宏,默认为1。 If the mirco is undefined,select to "1"
#define PER_LIB_RST_INIT_CTRL 1 |
如果没有定义这个宏,默认为1。 If the mirco is undefined,select to "1"
#define PER_LIB_RST_WORK_CTRL 1 |
如果没有定义这个宏,默认为1。 If the mirco is undefined,select to "1"
#define RST_P54_DISABLE | ( | ) | do{RSTCFG &= 0xEF;}while(0) |
不使能P54作为复位IO。
Disables P54 to act as a reset IO.
#define RST_P54_ENABLE | ( | ) | do{RSTCFG |= 0x10;}while(0) |
使能P54作为复位IO。
Enables P54 to act as a reset IO.
enum LVDRstDiv_Type |
enum RSTChoice_Type |
RST复位方式选择枚举体。
RST Reset Select Enumerator.
void Auto_RST_download | ( | void | ) |
软件复位自动下载功能,需要在串口中断里调用, 需要在STC-ISP助手里设置下载口令:10个0x7F。
Software reset automatic download function, need to be called in serial interrupt, The download password needs to be set in the STC-ISP assistant: 10 0x7F.
None. |
FSCSTATE LVD_RST_Init | ( | LVDRstDiv_Type | lvDiv, |
BOOL | run | ||
) |
低压复位函数,可以选择不同低压复位标准。
Low voltage reset function, you can select different low voltage reset standards.
[in] | lvDiv | 低压复位标准。low voltage reset standards. |
[in] | run | 使能控制位。 Enable control bit. |
FSCSTATE SFW_RST_Ctrl | ( | RSTChoice_Type | choice, |
BOOL | run | ||
) |
软件复位控制函数。
Software reset function.
[in] | choice | 复位方式选择。Reset mode selection. |
[in] | run | 使能控制位。 Enable control bit. |