4、件编程,包括主程序、AD控制、PWM控制、中断、显示等子程序。关键词:STC12C5604AD;LM358;AD模数转换;PWM控制IABSTRACTABSTRACTAt present, nickel-cadmium batteries, nickel metal hydride batteriesand lithium batteries are used mostly. The respective characteristics of them indicate that they will coexist and develo
5、p for a long time. There are different characteristics about different types of batteries. To different types even different voltage and the capacity level of the battery, different charger are used,but there are much inconvenient in actually use.in this research, differ
6、ent program are taken according to voltage values across the battery charge.STC12C5604ADmicrocontrollerandLM358dualoperationalamplifierareusedasthemaindevice.ThedutycycleisregulatebySTC12C5604ADchip,asaresulttoproducePWMpulsesignal,andusetheADdigital-to-analogconverterto
7、controlit.ThevoltagefollowerandcomparatorareconsistofLM358,thePWMsignaloutputbyauxiliarychipcontrolstheoutput,andprovidedtotheappropriatechargingvoltagetodifferentbatterycharging.According to the function, System hardware can be classed as the following: USB power supply
8、 module, the charge pump boost module, CPU module, display module, DC linear regulator control module a