S32K144W深度睡眠的问题

电源芯片是一个9到60的宽压芯片。另带一个两轴加表,两个485。

10V正常工作时,电流为26mA
S32K144W深度睡眠的问题_第1张图片
休眠后的电流,只有串口2进行了反初始化:
u2_printf(“ENTER LOW-POWER SLEEPDEEP MODE. %d \r\n”,MCU_Freq);
//LPUART_DRV_Deinit(INST_LPUART0);
//LPUART_DRV_Deinit(INST_LPUART1);
LPUART_DRV_Deinit(INST_LPUART2);
//I2C_MasterDeinit(&i2c1_instance);
//I2C_SlaveDeinit(&i2c1_instance);
//FTM_DRV_Deinit(INST_FLEXTIMER_MC1);

			POWER_SYS_SetMode(POWER_MANAGER_VLPS, POWER_MANAGER_POLICY_AGREEMENT);

			delay_ms(1000);

			POWER_SYS_SetMode(POWER_MANAGER_RUN, POWER_MANAGER_POLICY_AGREEMENT);

S32K144W深度睡眠的问题_第2张图片
三个串口,全部反初始化的电流小了,但是休眠时间过后,看不到串口恢复的消息了。(感觉官S32DS的驱动有点怪,这个最后也没有解决)
S32K144W深度睡眠的问题_第3张图片
S32K144W深度睡眠的问题_第4张图片
VLPR模式的电流:
u2_printf(“ENTER LOW-POWER SLEEPDEEP MODE. %d \r\n”,MCU_Freq);
//I2C_MasterDeinit(&i2c1_instance);
//I2C_SlaveDeinit(&i2c1_instance);
//FTM_DRV_Deinit(INST_FLEXTIMER_MC1);

			//LPUART_DRV_Deinit(INST_LPUART0);
			//LPUART_DRV_Deinit(INST_LPUART1);
			//LPUART_DRV_Deinit(INST_LPUART2);
			POWER_SYS_SetMode(POWER_MANAGER_VLPR, POWER_MANAGER_POLICY_AGREEMENT);

			delay_ms(1000);

			POWER_SYS_SetMode(POWER_MANAGER_RUN, POWER_MANAGER_POLICY_AGREEMENT);

			delay_ms(1000);
			//CLOCK_SYS_Init(g_clockManConfigsArr, CLOCK_MANAGER_CONFIG_CNT,g_clockManCallbacksArr, CLOCK_MANAGER_CALLBACK_CNT);

			//CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_AGREEMENT);

			//PINS_DRV_Init(NUM_OF_CONFIGURED_PINS, g_pin_mux_InitConfigArr); //初始化IO
			//Uart0_Init();
			//Uart1_Init();
			//Uart2_Init();
			//I2C_MasterInit(&i2c1_instance, &i2c1_MasterConfig0);//初始化I2C外设,用于OLED通讯
			//extern ftm_state_t ftmStateStruct;
			//FTM_DRV_Init(INST_FLEXTIMER_MC1, &flexTimer_mc1_InitConfig,&ftmStateStruct);

			CLOCK_SYS_GetFreq(CORE_CLOCK, &MCU_Freq);

			u2_printf("BRINGS THE CHIP BACK. %d \r\n",MCU_Freq);

S32K144W深度睡眠的问题_第5张图片

你可能感兴趣的:(单片机,嵌入式硬件)