请问MCU启动时间跟什么有关?
我发现我的开发板,上电之后要等约6s时间,才能正常工作。
片子PIC18(L)F25_26K83,开发板HPC板子,程序内容如下,只在主循环里翻转电平,利用示波器监控那个翻转引脚,
发现上电之后要等约6s时间,才能有波形输出,请问这是为什么?
void SYSTEM_Initialize(void)
{
INTERRUPT_Initialize();
PMD_Initialize();
PIN_MANAGER_Initialize();
OSCILLATOR_Initialize();
ADCC_Initialize();
FVR_Initialize();
CMP1_Initialize();
}
void main(void)
{
// Initialize the device
SYSTEM_Initialize();
IO_Q1_base_SetDigitalOutput();
// If using interrupts in PIC18 High/Low Priority Mode you need to enable the Global High and Low Interrupts
// If using interrupts in PIC Mid-Range Compatibility Mode you need to enable the Global Interrupts
// Use the following macros to:
// Enable the Global Interrupts
//INTERRUPT_GlobalInterruptEnable();
// Disable the Global Interrupts
//INTERRUPT_GlobalInterruptDisable();
while (1)
{
IO_Q1_base_Toggle();
__delay_ms(1);
// Add your application code
}
} |