• 大小: 1.05M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-24
  • 语言: C/C++
  • 标签: PIC32  

资源简介


资源截图

代码片段和文件信息


#include “..\user/include.h“




void ADC_Initialize (void)
{
    AD1CON1bits.DONE = 0;               // Conversion Status
    AD1CON1bits.SAMP = 0;               // Sample Enable
    AD1CON1bits.ASAM = 0; //1;          // Sample Auto Start
    AD1CON1bits.MODE12 = 0;             // 10 Bit operation
    AD1CON1bits.SSRC = 0b0111;          // Trigger Source (Internal Counter)
    AD1CON1bits.FORM = 0b000;           // Output Format (10 Bit Integer)
    AD1CON1bits.SIDL = 1;               // Stop in Idle (Discontinues operation)
    AD1CON1bits.ON = 0;                 // ADC enable
    
    AD1CON2bits.BUFM = 0;
    AD1CON2bits.SMPI = 0b0000; 
    AD1CON2bits.BUFS = 0;
    AD1CON2bits.CSCNA = 0;
    AD1CON2bits.BUFREGEN = 0;
    AD1CON2bits.OFFCAL = 0;
    AD1CON2bits

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-11-01 11:56  C1_Firmware.X\
     文件      112072  2019-08-27 13:34  C1_Firmware.X\Doxyfile
     文件        3381  2019-08-06 14:53  C1_Firmware.X\Makefile
     文件      575923  2019-08-26 16:10  C1_Firmware.X\MyConfig.mc3
     目录           0  2019-10-31 15:24  C1_Firmware.X\build\
     目录           0  2019-10-31 17:17  C1_Firmware.X\build\default\
     目录           0  2019-10-31 17:17  C1_Firmware.X\build\default\debug\
     目录           0  2019-10-31 17:17  C1_Firmware.X\build\default\debug\mcc_generated_files\
     文件       17640  2019-10-31 17:17  C1_Firmware.X\build\default\debug\mcc_generated_files\ADC_Config.o
     文件        1498  2019-10-31 17:17  C1_Firmware.X\build\default\debug\mcc_generated_files\ADC_Config.o.d
     文件       33280  2019-10-31 17:17  C1_Firmware.X\build\default\debug\mcc_generated_files\PWM_Config.o
     文件        1498  2019-10-31 17:17  C1_Firmware.X\build\default\debug\mcc_generated_files\PWM_Config.o.d
     文件       25124  2019-10-31 17:17  C1_Firmware.X\build\default\debug\mcc_generated_files\UART_Config.o
     文件        1500  2019-10-31 17:17  C1_Firmware.X\build\default\debug\mcc_generated_files\UART_Config.o.d
     文件        8728  2019-10-31 17:17  C1_Firmware.X\build\default\debug\mcc_generated_files\WatchDog.o
     文件        1494  2019-10-31 17:17  C1_Firmware.X\build\default\debug\mcc_generated_files\WatchDog.o.d
     文件       10136  2019-10-31 17:17  C1_Firmware.X\build\default\debug\mcc_generated_files\clock.o
     文件        1488  2019-10-31 17:17  C1_Firmware.X\build\default\debug\mcc_generated_files\clock.o.d
     文件        3784  2019-10-31 17:17  C1_Firmware.X\build\default\debug\mcc_generated_files\exceptions.o
     文件         131  2019-10-31 17:17  C1_Firmware.X\build\default\debug\mcc_generated_files\exceptions.o.d
     文件       16976  2019-10-31 17:17  C1_Firmware.X\build\default\debug\mcc_generated_files\flash.o
     文件        1488  2019-10-31 17:17  C1_Firmware.X\build\default\debug\mcc_generated_files\flash.o.d
     文件        6340  2019-10-31 17:17  C1_Firmware.X\build\default\debug\mcc_generated_files\interrupt_manager.o
     文件         108  2019-10-31 17:17  C1_Firmware.X\build\default\debug\mcc_generated_files\interrupt_manager.o.d
     文件        4128  2019-10-31 17:17  C1_Firmware.X\build\default\debug\mcc_generated_files\mcc.o
     文件         332  2019-10-31 17:17  C1_Firmware.X\build\default\debug\mcc_generated_files\mcc.o.d
     文件       25052  2019-10-31 17:17  C1_Firmware.X\build\default\debug\mcc_generated_files\pin_manager.o
     文件        1500  2019-10-31 17:17  C1_Firmware.X\build\default\debug\mcc_generated_files\pin_manager.o.d
     文件        9016  2019-10-31 17:17  C1_Firmware.X\build\default\debug\mcc_generated_files\system.o
     文件        1490  2019-10-31 17:17  C1_Firmware.X\build\default\debug\mcc_generated_files\system.o.d
     文件       13240  2019-10-31 17:17  C1_Firmware.X\build\default\debug\mcc_generated_files\tmr1.o
............此处省略219个文件信息

评论

共有 条评论

相关资源