/**
@Generated PIC10 / PIC12 / PIC16 / PIC18 MCUs Source File
@Company:
Microchip Technology Inc.
@File Name:
mcc.c
@Summary:
This is the mcc.c file generated using PIC10 / PIC12 / PIC16 / PIC18 MCUs
@Description:
This header file provides implementations for driver APIs for all modules selected in the GUI.
Generation Information :
Product Revision : PIC10 / PIC12 / PIC16 / PIC18 MCUs - 1.65
Device : PIC16F1619
Driver Version : 2.00
The generated drivers are tested against the following:
Compiler : XC8 1.45 or later
MPLAB : MPLAB X 4.10
*/
/*
(c) 2016 Microchip Technology Inc. and its subsidiaries. You may use this
software and any derivatives exclusively with Microchip products.
THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER
EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY IMPLIED
WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A
PARTICULAR PURPOSE, OR ITS INTERACTION WITH MICROCHIP PRODUCTS, COMBINATION
WITH ANY OTHER PRODUCTS, OR USE IN ANY APPLICATION.
IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND
WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS
BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO THE
FULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS IN
ANY WAY RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT OF FEES, IF ANY,
THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE.
MICROCHIP PROVIDES THIS SOFTWARE CONDITIONALLY UPON YOUR ACCEPTANCE OF THESE
TERMS.
*/
// Configuration bits: selected in the GUI
// CONFIG1
#pragma config FOSC = INTOSC // Oscillator Selection Bits->INTOSC oscillator: I/O function on CLKIN pin
#pragma config PWRTE = OFF // Power-up Timer Enable->PWRT disabled
#pragma config MCLRE = ON // MCLR Pin Function Select->MCLR/VPP pin function is MCLR
#pragma config CP = OFF // Flash Program Memory Code Protection->Program memory code protection is disabled
#pragma config BOREN = ON // Brown-out Reset Enable->Brown-out Reset enabled
#pragma config CLKOUTEN = OFF // Clock Out Enable->CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin
#pragma config IESO = ON // Internal/External Switch Over->Internal External Switch Over mode is enabled
#pragma config FCMEN = ON // Fail-Safe Clock Monitor Enable->Fail-Safe Clock Monitor is enabled
// CONFIG2
#pragma config WRT = OFF // Flash Memory Self-Write Protection->Write protection off
#pragma config PPS1WAY = ON // Peripheral Pin Select one-way control->The PPSLOCK bit cannot be cleared once it is set by software
#pragma config ZCD = OFF // Zero Cross Detect Disable Bit->ZCD disable. ZCD can be enabled by setting the ZCDSEN bit of ZCDCON
#pragma config PLLEN = OFF // PLL Enable Bit->4x PLL is enabled when software sets the SPLLEN bit
#pragma config STVREN = ON // Stack Overflow/Underflow Reset Enable->Stack Overflow or Underflow will cause a Reset
#pragma config BORV = LO // Brown-out Reset Voltage Selection->Brown-out Reset Voltage (Vbor), low trip point selected.
#pragma config LPBOR = OFF // Low-Power Brown Out Reset->Low-Power BOR is disabled
#pragma config LVP = ON // Low-Voltage Programming Enable->Low-voltage programming enabled
// CONFIG3
#pragma config WDTCPS = WDTCPS1F // WDT Period Select->Software Control (WDTPS)
#pragma config WDTE = OFF // Watchdog Timer Enable->WDT disabled
#pragma config WDTCWS = WDTCWSSW // WDT Window Select->Software WDT window size control (WDTWS bits)
#pragma config WDTCCS = SWC // WDT Input Clock Selector->Software control, controlled by WDTCS bits
#include "mcc.h"
void SYSTEM_Initialize(void)
{
PIN_MANAGER_Initialize();
OSCILLATOR_Initialize();
ADC_Initialize();
}
void OSCILLATOR_Initialize(void)
{
// SCS FOSC; SPLLEN disabled; IRCF 500KHz_MF;
OSCCON = 0x38;
// TUN 0;
OSCTUNE = 0x00;
// SBOREN disabled; BORFS disabled;
BORCON = 0x00;
}
/**
End of File
*/
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
ADC.zip (85个子文件)
ADC.X
dist
default
production
ADC.X.production.hex 386B
ADC.X.production.cof 2KB
ADC.X.production.map 2KB
nbproject
Package-default.bash 1KB
Makefile-impl.mk 2KB
configurations.xml 4KB
Makefile-local-default.mk 2KB
private
private.xml 451B
configurations.xml 1KB
Makefile-variables.mk 407B
project.xml 679B
Makefile-default.mk 5KB
Makefile-genesis.properties 471B
debug
default
MAIN.asm 2KB
Makefile 3KB
build
default
production
MAIN.lst 153KB
MAIN.o.d 102B
MAIN.o 2KB
MAIN.err 2KB
ADC_C.X
mcc_generated_files
pin_manager.h 8KB
adc.h 7KB
mcc.h 3KB
adc.c 3KB
mcc.c 4KB
pin_manager.c 3KB
main.c 3KB
dist
default
production
ADC_C.X.production.sdb 5KB
ADC_C.X.production.sym 8KB
ADC_C.X.production.mum 432B
ADC_C.X.production.elf 9KB
ADC_C.X.production.rlf 121KB
ADC_C.X.production.obj 6KB
ADC_C.X.production.hxl 1KB
memoryfile.xml 446B
ADC_C.X.production.cmf 23KB
ADC_C.X.production.hex 1013B
ADC_C.X.production.lst 115KB
ADC_C.X.production.map 36KB
debug
ADC_C.X.debug.sdb 5KB
ADC_C.X.debug.cmf 22KB
ADC_C.X.debug.lst 115KB
ADC_C.X.debug.mum 432B
ADC_C.X.debug.sym 8KB
ADC_C.X.debug.obj 6KB
ADC_C.X.debug.hxl 1KB
memoryfile.xml 436B
ADC_C.X.debug.elf 9KB
ADC_C.X.debug.map 36KB
ADC_C.X.debug.rlf 121KB
nbproject
Package-default.bash 1KB
Makefile-impl.mk 2KB
configurations.xml 7KB
Makefile-local-default.mk 2KB
private
private.xml 557B
configurations.xml 1KB
Makefile-variables.mk 413B
project.xml 720B
Makefile-default.mk 14KB
Makefile-genesis.properties 455B
debug
default
Makefile 3KB
ADC.mc3 203KB
build
default
production
mcc_generated_files
pin_manager.p1.d 203B
adc.pre 323KB
pin_manager.p1 565KB
mcc.pre 323KB
adc.p1 569KB
mcc.p1 566KB
mcc.p1.d 239B
adc.p1.d 239B
pin_manager.pre 320KB
main.p1 567KB
main.pre 322KB
main.p1.d 182B
debug
mcc_generated_files
pin_manager.p1.d 193B
adc.pre 323KB
pin_manager.p1 565KB
mcc.pre 323KB
adc.p1 569KB
mcc.p1 566KB
mcc.p1.d 229B
adc.p1.d 229B
pin_manager.pre 320KB
main.p1 567KB
main.pre 322KB
main.p1.d 172B
共 85 条
- 1
资源评论
小波思基
- 粉丝: 72
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功