7017| 13
|
STC12C5A60s2内部AD的问题,求解 |
5金钱
最佳答案void ADC_init()
{
P1ASF = 0xff;
ADC_RES = 0;
ADC_CONTR = 0xe0;
delay_ms( 5 );
AUXR1 = 0x00;
P1M0|=0x01; //开漏模式 1_0= #00000000B
P1M1|=0x01;
}
u16 ADC_process()
{
// int vol;
ADC_CONTR = 0xe8;
_nop_();
_nop_();
_nop_();
_nop_();
while (&nb ...
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
|手机版|OpenEdv-开源电子网
( 粤ICP备12000418号-1 )
GMT+8, 2025-4-5 21:49
Powered by OpenEdv-开源电子网
© 2001-2030 OpenEdv-开源电子网