📄 convertadc10.c
字号:
#if defined(__PIC24F__)
#include <p24Fxxxx.h>
#endif
#include "adc.h"
#if defined (_ADC_1012_V1) || defined (_ADC_1012_V2_GB)
/************************************************************************************
Function Prototype :void ConvertADC10(void)
Include :adc.h
Description :This function starts the A/D conversion.
Arguments :None
Return Value :None
Remarks :This function clears the ADCON1<SAMP> bit and thus stops
sampling and starts conversion.This happens only when
trigger source for the A/D conversion is selected as Manual,
by clearing the ADCON1 <SSRC> bits.
**************************************************************************************/
void ConvertADC10(void)
{
AD1CON1bits.SAMP = 0; /* clear SAMP to start conversion*/
}
#else
#warning "Does not build on this target"
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -