辰科光源控制器 CD-6024-4说明书0724.pdf。。
2021-11-22 18:30:49 188KB 辰科光源控制器    CD-60
1
完整源代码: int main(void) { //while(1);// InitAllUserRam(); SysTick_Config(12000); TimeBaseInit(); InitOther(); IOinit(); IICMnit(); ADC_init(); wdt_init(1); #if TYPEC_DAC_CTRL DAC_Init(); #endif//TYPEC_DAC_CTRL // UART_Init(UART0,208); // DelayMCUtimer(10); // printf("reset=%d\t\n",TYPEC.State); DelayMCUtimer(10); setsrcpower(TYPEC_OUT_PD_MAX_WATT); changesrcpdo(); CC_Rule_Cfg(ROLE_UFP); USBAGetOffset(); while(1) { clr_wdt(70000); switch(MainRun.State) { case STATEMAINRUN_RESET: SleepPrePutOnDevice(); MainRun.Timer = 0; POWER.ADCen = 1; MainRun.State = STATEMAINRUN_INIT; break; case STATEMAINRUN_INIT: //if(TimeOut(&MainRun.Timer, 30) == 1) { MainRun.Timer = 0; MainRun.State = STATEMAINRUN_LOOP; } break; case STATEMAINRUN_LOOP: KEY.Flag = KeyCheck(u8KeyData); Timer0EventHandler(); ADCEventHandler(); if(TRUE == CheckDpdm3Mode())//某些快充时序高,要减少其他模块的消耗。 ContractLoop(); //PD协议 I2CreadAndWriteCtrl(); LowBatCtrl(); TYPECctrl(); MICROctrl(); USBA1ctrl(); USBA2ctrl(); DPDM12_ctrl(); ChargeCtrl(); DischargeCtrl(); CapacityCtrl(); NTCctrl(); DisplayCtrl(); OtherFuncCtrl(); //TestAndDebug(); if(StateKeepONtime(((1) //&&(1 == u8KeyData) &&(!Charge.Flag) &&(!Discharge.Flag) //&&(!Display.Mode) ), &MainRun.Timer, 3000)) { POWER.ADCen = 0; IICwrite.WriteAllTrig = 1; MainRun.State = STATEMAINRUN_SLEEP_READY; } break; case STATEMAINRUN_SLEEP_READY: I2CreadAndWriteCtrl(); if(TimeOut(&MainRun.Timer, 50)) { MainRun.Timer = 0; MainRun.State = STATEMAINRUN_SLEEP_READY1; } break; case STATEMAINRUN_SLEEP_READY1: if(TimeOut(&MainRun.Timer, 10)) { MainRun.Timer = 0; MainRun.State = STATEMAINRUN_SLEEP; } break; case STATEMAINRUN_SLEEP: SleepPrePutOffDevice(); MainRun.State = STATEMAINRUN_RESET; bre
2021-11-22 15:46:46 1.65MB PD18-60W移动电源开发包
1
Upgrade to Oracle Database 12c 1Z0-060 exam认证题库
详情:https://blog.csdn.net/caocun_chao/article/details/119843124
2021-11-13 12:02:31 353KB 稳压电源 可调电源 恒流恒压 0-60V
阿里云-2021低碳科技白皮书-60页.pdf
2021-11-13 11:01:28 4.44MB 互联网报告 行业报告 研究报告
详情:https://blog.csdn.net/caocun_chao/article/details/119843124
2021-11-13 09:03:44 340KB 恒流恒压 稳压电源 可调电源 0-20A
2021低碳科技白皮书-60页.pdf
2021-11-12 19:01:48 4.44MB 行业报告
百度地图-2020年度中国城市交通报告
2021-10-14 12:01:47 14.58MB 百度地图城市交通
1
用友培训课件:U9V2.8组件化实施方案实例指导_GL-060外部凭证修改.ppt
2021-10-04 18:02:19 2.65MB
找人编写的51单片机范例-60s倒计时时钟,感觉适合初学者参考
2021-10-04 11:47:49 279B 51单片机范例-60s倒计时时钟
1