

宏定义 | |
| #define | PER_LIB_MCU_MUODEL STC8Ax |
| 如果没有定义这个宏,默认为STC8Ax。 If the mirco is undefined,select to STC8Ax 更多... | |
| #define | PER_LIB_POWER_CTRL 1 |
| 如果没有定义这个宏,默认为1。 If the mirco is undefined,select to "1" 更多... | |
| #define | PER_LIB_POWER_NVIC_CTRL 1 |
| 如果没有定义这个宏,默认为1。 If the mirco is undefined,select to "1" 更多... | |
| #define | PER_LIB_POWER_WORK_CTRL 1 |
| 如果没有定义这个宏,默认为1。 If the mirco is undefined,select to "1" 更多... | |
| #define | POWER_GET_WORK_MODE() (PCON & 0x10) |
| 获取电源工作模式函数。 更多... | |
| #define | ESH_CURRENT_ENABLE() VOCTRL = 0x80 /* Use external */ |
| 使能外部静态电流保持电流控制电路,功耗更低。 更多... | |
| #define | ESH_CURRENT_DISABLE() VOCTRL = 0x00 /* Use internal */ |
| 不使能外部静态电流保持电流控制电路, 选择内部的静态电流保持电流控制电路。 更多... | |
| #define | LVD_GET_FLAG() (PCON & 0x20) |
| 获取比较中断标志位宏函数。 更多... | |
| #define | LVD_CLEAR_FLAG() do{PCON &= 0xDF;}while(0) |
| 清除比较中断标志位宏函数。 更多... | |
| #define | NVIC_LVD_CTRL(run) do{ELVD = run;}while(0) |
| LVD中断开关控制宏函数。 更多... | |
| #define | NVIC_LVD_PRI(pri) |
| LVD选择中断优先级宏函数,仅限本文件调用。 更多... | |
枚举 | |
| enum | POWERMode_Type { POWER_Mode_Normal = 0x00 , POWER_Mode_Stop = 0x02 , POWER_Mode_Idle = 0x03 } |
| 电源工作模式枚举体。 更多... | |
函数 | |
| FSCSTATE | POWER_Mode_Ctrl (POWERMode_Type mode) |
| 电源工作模式控制函数。 更多... | |
| FSCSTATE | NVIC_LVD_Init (NVICPri_Type priority, BOOL run) |
| 低压检测中断初始化函数。 更多... | |
| #define ESH_CURRENT_DISABLE | ( | ) | VOCTRL = 0x00 /* Use internal */ |
不使能外部静态电流保持电流控制电路, 选择内部的静态电流保持电流控制电路。
Disable external quiescent current to maintain current control circuit, lower power consumption.
| #define ESH_CURRENT_ENABLE | ( | ) | VOCTRL = 0x80 /* Use external */ |
使能外部静态电流保持电流控制电路,功耗更低。
Enable external quiescent current to maintain current control circuit, lower power consumption.
| #define LVD_CLEAR_FLAG | ( | ) | do{PCON &= 0xDF;}while(0) |
清除比较中断标志位宏函数。
LVD clears interrupt flag bit macro function.
| #define LVD_GET_FLAG | ( | ) | (PCON & 0x20) |
获取比较中断标志位宏函数。
LVD gets interrupt flag bit macro function.
| #define NVIC_LVD_CTRL | ( | run | ) | do{ELVD = run;}while(0) |
LVD中断开关控制宏函数。
LVD interrupt switch control macro function.
| [in] | run | 使能控制位。Enable control bit. |
| #define NVIC_LVD_PRI | ( | pri | ) |
| #define PER_LIB_MCU_MUODEL STC8Ax |
如果没有定义这个宏,默认为STC8Ax。 If the mirco is undefined,select to STC8Ax
| #define PER_LIB_POWER_CTRL 1 |
如果没有定义这个宏,默认为1。 If the mirco is undefined,select to "1"
| #define PER_LIB_POWER_NVIC_CTRL 1 |
如果没有定义这个宏,默认为1。 If the mirco is undefined,select to "1"
| #define PER_LIB_POWER_WORK_CTRL 1 |
如果没有定义这个宏,默认为1。 If the mirco is undefined,select to "1"
| #define POWER_GET_WORK_MODE | ( | ) | (PCON & 0x10) |
获取电源工作模式函数。
PGet power mode function.
| enum POWERMode_Type |
| FSCSTATE NVIC_LVD_Init | ( | NVICPri_Type | priority, |
| BOOL | run | ||
| ) |
低压检测中断初始化函数。
Low-voltage detection interrupt initialization function.
| [in] | pri | 中断优先级。Interrupt priority. |
| [in] | run | 中断运行控制位。Interrupt operation control bit. |
| FSCSTATE POWER_Mode_Ctrl | ( | POWERMode_Type | mode | ) |
电源工作模式控制函数。
Power mode configure function.
| [in] | mode | 电源工作模式。Power working mode. |