Home > other > O STC8 series use ADC testing voltage value method
O STC8 series use ADC testing voltage value method
Time:09-16
A test program: use STC8 internal ADC how to test, Concluded after compared with a number of custom external voltage, voltage is greater than the defined value LED1 lights, otherwise not bright,,,, and solution methods
CodePudding user response:
Has been solved, using official list OK
CodePudding user response:
Set up the ADC port, Start the conversion, If the conversion is complete, the ADC interrupt flag setting, To detect the ADC interrupt flag, If interrupt flag setting, take out the ADC register values, And compare the value of your Settings, Light or lamp