commit
756749c7a7
@ -53,9 +53,12 @@ void main(void)
|
|||||||
{
|
{
|
||||||
// Initialize the device
|
// Initialize the device
|
||||||
SYSTEM_Initialize();
|
SYSTEM_Initialize();
|
||||||
|
EPWM1_LoadDutyValue(0);
|
||||||
|
|
||||||
Lcd_Init();
|
Lcd_Init();
|
||||||
adc_init();
|
adc_init();
|
||||||
|
uint16_t offsetCurrent = 0;
|
||||||
|
offsetCurrent = measure_current(offsetCurrent);
|
||||||
|
|
||||||
// If using interrupts in PIC18 High/Low Priority Mode you need to enable the Global High and Low Interrupts
|
// If using interrupts in PIC18 High/Low Priority Mode you need to enable the Global High and Low Interrupts
|
||||||
// If using interrupts in PIC Mid-Range Compatibility Mode you need to enable the Global and Peripheral Interrupts
|
// If using interrupts in PIC Mid-Range Compatibility Mode you need to enable the Global and Peripheral Interrupts
|
||||||
@ -72,23 +75,24 @@ void main(void)
|
|||||||
|
|
||||||
// Disable the Peripheral Interrupts
|
// Disable the Peripheral Interrupts
|
||||||
//INTERRUPT_PeripheralInterruptDisable();
|
//INTERRUPT_PeripheralInterruptDisable();
|
||||||
|
uint16_t foo = 512;
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
|
foo = ++foo%1023;
|
||||||
|
EPWM1_LoadDutyValue(foo);
|
||||||
uint16_t valueV = measure_voltage();
|
uint16_t valueV = measure_voltage();
|
||||||
uint16_t valueI = measure_current(offsetCurrent);
|
uint16_t valueI = measure_current(offsetCurrent);
|
||||||
|
|
||||||
char msg[MAX_COL+1];
|
char msg[MAX_COL+1];
|
||||||
//LCD_2x16_WriteCmd(0x01); // clear display
|
//LCD_2x16_WriteCmd(0x01); // clear display
|
||||||
|
|
||||||
snprintf(msg, MAX_COL+1, "U = %4i [mV] ", valueV);
|
sprintf(msg, "U = %04d [mV] ", valueV);
|
||||||
LCD_2x16_WriteMsg(msg,0);
|
LCD_2x16_WriteMsg(msg,0);
|
||||||
|
|
||||||
snprintf(msg, MAX_COL+1, "I = %4i [uA] ", valueI);
|
sprintf(msg, "I = %04d [uA] ", valueI);
|
||||||
LCD_2x16_WriteMsg(msg,1);
|
LCD_2x16_WriteMsg(msg,1);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
End of File
|
End of File
|
||||||
|
@ -65,8 +65,8 @@ void ADC_Initialize(void)
|
|||||||
// VCFG1 VSS; VCFG0 VDD;
|
// VCFG1 VSS; VCFG0 VDD;
|
||||||
ADCON1 = 0x00;
|
ADCON1 = 0x00;
|
||||||
|
|
||||||
// ADFM left; ACQT 0; ADCS FOSC/2;
|
// ADFM right; ACQT 0; ADCS FOSC/2;
|
||||||
ADCON2 = 0x00;
|
ADCON2 = 0x80;
|
||||||
|
|
||||||
// ADRESL 0;
|
// ADRESL 0;
|
||||||
ADRESL = 0x00;
|
ADRESL = 0x00;
|
||||||
|
96
solar_panel.X/mcc_generated_files/epwm1.c
Normal file
96
solar_panel.X/mcc_generated_files/epwm1.c
Normal file
@ -0,0 +1,96 @@
|
|||||||
|
/**
|
||||||
|
EPWM1 Generated Driver File
|
||||||
|
|
||||||
|
@Company
|
||||||
|
Microchip Technology Inc.
|
||||||
|
|
||||||
|
@File Name
|
||||||
|
epwm1.c
|
||||||
|
|
||||||
|
@Summary
|
||||||
|
This is the generated driver implementation file for the EPWM1 driver using PIC10 / PIC12 / PIC16 / PIC18 MCUs
|
||||||
|
|
||||||
|
@Description
|
||||||
|
This source file provides implementations for driver APIs for EPWM1.
|
||||||
|
Generation Information :
|
||||||
|
Product Revision : PIC10 / PIC12 / PIC16 / PIC18 MCUs - 1.81.8
|
||||||
|
Device : PIC18F97J60
|
||||||
|
Driver Version : 2.01
|
||||||
|
The generated drivers are tested against the following:
|
||||||
|
Compiler : XC8 2.36 and above
|
||||||
|
MPLAB : MPLAB X 6.00
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
(c) 2018 Microchip Technology Inc. and its subsidiaries.
|
||||||
|
|
||||||
|
Subject to your compliance with these terms, you may use Microchip software and any
|
||||||
|
derivatives exclusively with Microchip products. It is your responsibility to comply with third party
|
||||||
|
license terms applicable to your use of third party software (including open source software) that
|
||||||
|
may accompany Microchip software.
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
Section: Included Files
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <xc.h>
|
||||||
|
#include "epwm1.h"
|
||||||
|
|
||||||
|
/**
|
||||||
|
Section: Macro Declarations
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define PWM1_INITIALIZE_DUTY_VALUE 511
|
||||||
|
|
||||||
|
/**
|
||||||
|
Section: EPWM Module APIs
|
||||||
|
*/
|
||||||
|
|
||||||
|
void EPWM1_Initialize(void)
|
||||||
|
{
|
||||||
|
// Set the EPWM1 to the options selected in the User Interface
|
||||||
|
|
||||||
|
// CCP1M P1A,P1C: active high; P1B,P1D: active high; DC1B 3; P1M single;
|
||||||
|
CCP1CON = 0x3C;
|
||||||
|
|
||||||
|
// ECCPASE operating; PSSBD P1BP1D_0; PSSAC P1AP1C_0; ECCPAS disabled;
|
||||||
|
ECCP1AS = 0x00;
|
||||||
|
|
||||||
|
// P1RSEN automatic_restart; P1DC0 0;
|
||||||
|
ECCP1DEL = 0x80;
|
||||||
|
|
||||||
|
// CCPR1H 0;
|
||||||
|
CCPR1H = 0x00;
|
||||||
|
|
||||||
|
// CCPR1L 127;
|
||||||
|
CCPR1L = 0x7F;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void EPWM1_LoadDutyValue(uint16_t dutyValue)
|
||||||
|
{
|
||||||
|
// Writing to 8 MSBs of pwm duty cycle in CCPRL register
|
||||||
|
CCPR1L = ((dutyValue & 0x03FC)>>2);
|
||||||
|
|
||||||
|
// Writing to 2 LSBs of pwm duty cycle in CCPCON register
|
||||||
|
CCP1CON = ((uint8_t)(CCP1CON & 0xCF) | ((dutyValue & 0x0003)<<4));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
End of File
|
||||||
|
*/
|
||||||
|
|
133
solar_panel.X/mcc_generated_files/epwm1.h
Normal file
133
solar_panel.X/mcc_generated_files/epwm1.h
Normal file
@ -0,0 +1,133 @@
|
|||||||
|
/**
|
||||||
|
EPWM1 Generated Driver File
|
||||||
|
|
||||||
|
@Company
|
||||||
|
Microchip Technology Inc.
|
||||||
|
|
||||||
|
@File Name
|
||||||
|
epwm1.h
|
||||||
|
|
||||||
|
@Summary
|
||||||
|
This is the generated driver implementation file for the EPWM1 driver using PIC10 / PIC12 / PIC16 / PIC18 MCUs
|
||||||
|
|
||||||
|
@Description
|
||||||
|
This header file provides implementations for driver APIs for EPWM1.
|
||||||
|
Generation Information :
|
||||||
|
Product Revision : PIC10 / PIC12 / PIC16 / PIC18 MCUs - 1.81.8
|
||||||
|
Device : PIC18F97J60
|
||||||
|
Driver Version : 2.01
|
||||||
|
The generated drivers are tested against the following:
|
||||||
|
Compiler : XC8 2.36 and above
|
||||||
|
MPLAB : MPLAB X 6.00
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
(c) 2018 Microchip Technology Inc. and its subsidiaries.
|
||||||
|
|
||||||
|
Subject to your compliance with these terms, you may use Microchip software and any
|
||||||
|
derivatives exclusively with Microchip products. It is your responsibility to comply with third party
|
||||||
|
license terms applicable to your use of third party software (including open source software) that
|
||||||
|
may accompany Microchip software.
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef EPWM1_H
|
||||||
|
#define EPWM1_H
|
||||||
|
|
||||||
|
/**
|
||||||
|
Section: Included Files
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <xc.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus // Provide C++ Compatibility
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
Section: EPWM Module APIs
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
@Summary
|
||||||
|
Initializes the EPWM1
|
||||||
|
|
||||||
|
@Description
|
||||||
|
This routine initializes the EPWM1 module.
|
||||||
|
This routine must be called before any other EPWM1 routine is called.
|
||||||
|
This routine should only be called once during system initialization.
|
||||||
|
|
||||||
|
@Preconditions
|
||||||
|
None
|
||||||
|
|
||||||
|
@Param
|
||||||
|
None
|
||||||
|
|
||||||
|
@Returns
|
||||||
|
None
|
||||||
|
|
||||||
|
@Comment
|
||||||
|
|
||||||
|
|
||||||
|
@Example
|
||||||
|
<code>
|
||||||
|
uint16_t dutycycle;
|
||||||
|
|
||||||
|
ECCP1_Initialize();
|
||||||
|
EPWM1_LoadDutyValue(dutycycle);
|
||||||
|
</code>
|
||||||
|
*/
|
||||||
|
void EPWM1_Initialize(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
@Summary
|
||||||
|
Loads 16-bit duty cycle.
|
||||||
|
|
||||||
|
@Description
|
||||||
|
This routine loads the 16 bit duty cycle value.
|
||||||
|
|
||||||
|
@Preconditions
|
||||||
|
EPWM1_Initialize() function should have been called before calling this function.
|
||||||
|
|
||||||
|
@Param
|
||||||
|
Pass 16bit duty cycle value.
|
||||||
|
|
||||||
|
@Returns
|
||||||
|
None
|
||||||
|
|
||||||
|
@Example
|
||||||
|
<code>
|
||||||
|
uint16_t dutycycle;
|
||||||
|
|
||||||
|
EPWM1_Initialize();
|
||||||
|
EPWM1_LoadDutyValue(dutycycle);
|
||||||
|
</code>
|
||||||
|
*/
|
||||||
|
void EPWM1_LoadDutyValue(uint16_t dutyValue);
|
||||||
|
|
||||||
|
#ifdef __cplusplus // Provide C++ Compatibility
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif //EPWM1_H
|
||||||
|
/**
|
||||||
|
End of File
|
||||||
|
*/
|
@ -52,6 +52,8 @@ void SYSTEM_Initialize(void)
|
|||||||
|
|
||||||
PIN_MANAGER_Initialize();
|
PIN_MANAGER_Initialize();
|
||||||
OSCILLATOR_Initialize();
|
OSCILLATOR_Initialize();
|
||||||
|
EPWM1_Initialize();
|
||||||
|
TMR2_Initialize();
|
||||||
ADC_Initialize();
|
ADC_Initialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,6 +52,8 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <conio.h>
|
#include <conio.h>
|
||||||
|
#include "epwm1.h"
|
||||||
|
#include "tmr2.h"
|
||||||
#include "adc.h"
|
#include "adc.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ void PIN_MANAGER_Initialize(void)
|
|||||||
TRISG = 0xFF;
|
TRISG = 0xFF;
|
||||||
TRISB = 0xFF;
|
TRISB = 0xFF;
|
||||||
TRISH = 0xFF;
|
TRISH = 0xFF;
|
||||||
TRISC = 0xFF;
|
TRISC = 0xFB;
|
||||||
TRISD = 0xFF;
|
TRISD = 0xFF;
|
||||||
TRISJ = 0xFF;
|
TRISJ = 0xFF;
|
||||||
|
|
||||||
|
@ -67,6 +67,14 @@
|
|||||||
#define PULL_UP_ENABLED 1
|
#define PULL_UP_ENABLED 1
|
||||||
#define PULL_UP_DISABLED 0
|
#define PULL_UP_DISABLED 0
|
||||||
|
|
||||||
|
// get/set RC2 procedures
|
||||||
|
#define RC2_SetHigh() do { LATCbits.LATC2 = 1; } while(0)
|
||||||
|
#define RC2_SetLow() do { LATCbits.LATC2 = 0; } while(0)
|
||||||
|
#define RC2_Toggle() do { LATCbits.LATC2 = ~LATCbits.LATC2; } while(0)
|
||||||
|
#define RC2_GetValue() PORTCbits.RC2
|
||||||
|
#define RC2_SetDigitalInput() do { TRISCbits.TRISC2 = 1; } while(0)
|
||||||
|
#define RC2_SetDigitalOutput() do { TRISCbits.TRISC2 = 0; } while(0)
|
||||||
|
|
||||||
// get/set voltage aliases
|
// get/set voltage aliases
|
||||||
#define voltage_TRIS TRISFbits.TRISF0
|
#define voltage_TRIS TRISFbits.TRISF0
|
||||||
#define voltage_LAT LATFbits.LATF0
|
#define voltage_LAT LATFbits.LATF0
|
||||||
|
124
solar_panel.X/mcc_generated_files/tmr2.c
Normal file
124
solar_panel.X/mcc_generated_files/tmr2.c
Normal file
@ -0,0 +1,124 @@
|
|||||||
|
/**
|
||||||
|
TMR2 Generated Driver File
|
||||||
|
|
||||||
|
@Company
|
||||||
|
Microchip Technology Inc.
|
||||||
|
|
||||||
|
@File Name
|
||||||
|
tmr2.c
|
||||||
|
|
||||||
|
@Summary
|
||||||
|
This is the generated driver implementation file for the TMR2 driver using PIC10 / PIC12 / PIC16 / PIC18 MCUs
|
||||||
|
|
||||||
|
@Description
|
||||||
|
This source file provides APIs for TMR2.
|
||||||
|
Generation Information :
|
||||||
|
Product Revision : PIC10 / PIC12 / PIC16 / PIC18 MCUs - 1.81.8
|
||||||
|
Device : PIC18F97J60
|
||||||
|
Driver Version : 2.01
|
||||||
|
The generated drivers are tested against the following:
|
||||||
|
Compiler : XC8 2.36 and above
|
||||||
|
MPLAB : MPLAB X 6.00
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
(c) 2018 Microchip Technology Inc. and its subsidiaries.
|
||||||
|
|
||||||
|
Subject to your compliance with these terms, you may use Microchip software and any
|
||||||
|
derivatives exclusively with Microchip products. It is your responsibility to comply with third party
|
||||||
|
license terms applicable to your use of third party software (including open source software) that
|
||||||
|
may accompany Microchip software.
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
Section: Included Files
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <xc.h>
|
||||||
|
#include "tmr2.h"
|
||||||
|
|
||||||
|
/**
|
||||||
|
Section: Global Variables Definitions
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
Section: TMR2 APIs
|
||||||
|
*/
|
||||||
|
|
||||||
|
void TMR2_Initialize(void)
|
||||||
|
{
|
||||||
|
// Set TMR2 to the options selected in the User Interface
|
||||||
|
|
||||||
|
// PR2 255;
|
||||||
|
PR2 = 0xFF;
|
||||||
|
|
||||||
|
// TMR2 0;
|
||||||
|
TMR2 = 0x00;
|
||||||
|
|
||||||
|
// Clearing IF flag.
|
||||||
|
PIR1bits.TMR2IF = 0;
|
||||||
|
|
||||||
|
// T2CKPS 1:1; TOUTPS 1:1; TMR2ON on;
|
||||||
|
T2CON = 0x04;
|
||||||
|
}
|
||||||
|
|
||||||
|
void TMR2_StartTimer(void)
|
||||||
|
{
|
||||||
|
// Start the Timer by writing to TMRxON bit
|
||||||
|
T2CONbits.TMR2ON = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
void TMR2_StopTimer(void)
|
||||||
|
{
|
||||||
|
// Stop the Timer by writing to TMRxON bit
|
||||||
|
T2CONbits.TMR2ON = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
uint8_t TMR2_ReadTimer(void)
|
||||||
|
{
|
||||||
|
uint8_t readVal;
|
||||||
|
|
||||||
|
readVal = TMR2;
|
||||||
|
|
||||||
|
return readVal;
|
||||||
|
}
|
||||||
|
|
||||||
|
void TMR2_WriteTimer(uint8_t timerVal)
|
||||||
|
{
|
||||||
|
// Write to the Timer2 register
|
||||||
|
TMR2 = timerVal;
|
||||||
|
}
|
||||||
|
|
||||||
|
void TMR2_LoadPeriodRegister(uint8_t periodVal)
|
||||||
|
{
|
||||||
|
PR2 = periodVal;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TMR2_HasOverflowOccured(void)
|
||||||
|
{
|
||||||
|
// check if overflow has occurred by checking the TMRIF bit
|
||||||
|
bool status = PIR1bits.TMR2IF;
|
||||||
|
if(status)
|
||||||
|
{
|
||||||
|
// Clearing IF flag.
|
||||||
|
PIR1bits.TMR2IF = 0;
|
||||||
|
}
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
End of File
|
||||||
|
*/
|
337
solar_panel.X/mcc_generated_files/tmr2.h
Normal file
337
solar_panel.X/mcc_generated_files/tmr2.h
Normal file
@ -0,0 +1,337 @@
|
|||||||
|
/**
|
||||||
|
TMR2 Generated Driver API Header File
|
||||||
|
|
||||||
|
@Company
|
||||||
|
Microchip Technology Inc.
|
||||||
|
|
||||||
|
@File Name
|
||||||
|
tmr2.h
|
||||||
|
|
||||||
|
@Summary
|
||||||
|
This is the generated header file for the TMR2 driver using PIC10 / PIC12 / PIC16 / PIC18 MCUs
|
||||||
|
|
||||||
|
@Description
|
||||||
|
This header file provides APIs for TMR2.
|
||||||
|
Generation Information :
|
||||||
|
Product Revision : PIC10 / PIC12 / PIC16 / PIC18 MCUs - 1.81.8
|
||||||
|
Device : PIC18F97J60
|
||||||
|
Driver Version : 2.01
|
||||||
|
The generated drivers are tested against the following:
|
||||||
|
Compiler : XC8 2.36 and above
|
||||||
|
MPLAB : MPLAB X 6.00
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
(c) 2018 Microchip Technology Inc. and its subsidiaries.
|
||||||
|
|
||||||
|
Subject to your compliance with these terms, you may use Microchip software and any
|
||||||
|
derivatives exclusively with Microchip products. It is your responsibility to comply with third party
|
||||||
|
license terms applicable to your use of third party software (including open source software) that
|
||||||
|
may accompany Microchip software.
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef TMR2_H
|
||||||
|
#define TMR2_H
|
||||||
|
|
||||||
|
/**
|
||||||
|
Section: Included Files
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <stdbool.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus // Provide C++ Compatibility
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
Section: Macro Declarations
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
Section: TMR2 APIs
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
@Summary
|
||||||
|
Initializes the TMR2 module.
|
||||||
|
|
||||||
|
@Description
|
||||||
|
This function initializes the TMR2 Registers.
|
||||||
|
This function must be called before any other TMR2 function is called.
|
||||||
|
|
||||||
|
@Preconditions
|
||||||
|
None
|
||||||
|
|
||||||
|
@Param
|
||||||
|
None
|
||||||
|
|
||||||
|
@Returns
|
||||||
|
None
|
||||||
|
|
||||||
|
@Comment
|
||||||
|
|
||||||
|
|
||||||
|
@Example
|
||||||
|
<code>
|
||||||
|
main()
|
||||||
|
{
|
||||||
|
// Initialize TMR2 module
|
||||||
|
TMR2_Initialize();
|
||||||
|
|
||||||
|
// Do something else...
|
||||||
|
}
|
||||||
|
</code>
|
||||||
|
*/
|
||||||
|
void TMR2_Initialize(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
@Summary
|
||||||
|
This function starts the TMR2.
|
||||||
|
|
||||||
|
@Description
|
||||||
|
This function starts the TMR2 operation.
|
||||||
|
This function must be called after the initialization of TMR2.
|
||||||
|
|
||||||
|
@Preconditions
|
||||||
|
Initialize the TMR2 before calling this function.
|
||||||
|
|
||||||
|
@Param
|
||||||
|
None
|
||||||
|
|
||||||
|
@Returns
|
||||||
|
None
|
||||||
|
|
||||||
|
@Example
|
||||||
|
<code>
|
||||||
|
// Initialize TMR2 module
|
||||||
|
|
||||||
|
// Start TMR2
|
||||||
|
TMR2_StartTimer();
|
||||||
|
|
||||||
|
// Do something else...
|
||||||
|
</code>
|
||||||
|
*/
|
||||||
|
void TMR2_StartTimer(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
@Summary
|
||||||
|
This function stops the TMR2.
|
||||||
|
|
||||||
|
@Description
|
||||||
|
This function stops the TMR2 operation.
|
||||||
|
This function must be called after the start of TMR2.
|
||||||
|
|
||||||
|
@Preconditions
|
||||||
|
Initialize the TMR2 before calling this function.
|
||||||
|
|
||||||
|
@Param
|
||||||
|
None
|
||||||
|
|
||||||
|
@Returns
|
||||||
|
None
|
||||||
|
|
||||||
|
@Example
|
||||||
|
<code>
|
||||||
|
// Initialize TMR2 module
|
||||||
|
|
||||||
|
// Start TMR2
|
||||||
|
TMR2_StartTimer();
|
||||||
|
|
||||||
|
// Do something else...
|
||||||
|
|
||||||
|
// Stop TMR2;
|
||||||
|
TMR2_StopTimer();
|
||||||
|
</code>
|
||||||
|
*/
|
||||||
|
void TMR2_StopTimer(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
@Summary
|
||||||
|
Reads the TMR2 register.
|
||||||
|
|
||||||
|
@Description
|
||||||
|
This function reads the TMR2 register value and return it.
|
||||||
|
|
||||||
|
@Preconditions
|
||||||
|
Initialize the TMR2 before calling this function.
|
||||||
|
|
||||||
|
@Param
|
||||||
|
None
|
||||||
|
|
||||||
|
@Returns
|
||||||
|
This function returns the current value of TMR2 register.
|
||||||
|
|
||||||
|
@Example
|
||||||
|
<code>
|
||||||
|
// Initialize TMR2 module
|
||||||
|
|
||||||
|
// Start TMR2
|
||||||
|
TMR2_StartTimer();
|
||||||
|
|
||||||
|
// Read the current value of TMR2
|
||||||
|
if(0 == TMR2_ReadTimer())
|
||||||
|
{
|
||||||
|
// Do something else...
|
||||||
|
|
||||||
|
// Reload the TMR value
|
||||||
|
TMR2_Reload();
|
||||||
|
}
|
||||||
|
</code>
|
||||||
|
*/
|
||||||
|
uint8_t TMR2_ReadTimer(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
@Summary
|
||||||
|
Writes the TMR2 register.
|
||||||
|
|
||||||
|
@Description
|
||||||
|
This function writes the TMR2 register.
|
||||||
|
This function must be called after the initialization of TMR2.
|
||||||
|
|
||||||
|
@Preconditions
|
||||||
|
Initialize the TMR2 before calling this function.
|
||||||
|
|
||||||
|
@Param
|
||||||
|
timerVal - Value to write into TMR2 register.
|
||||||
|
|
||||||
|
@Returns
|
||||||
|
None
|
||||||
|
|
||||||
|
@Example
|
||||||
|
<code>
|
||||||
|
#define PERIOD 0x80
|
||||||
|
#define ZERO 0x00
|
||||||
|
|
||||||
|
while(1)
|
||||||
|
{
|
||||||
|
// Read the TMR2 register
|
||||||
|
if(ZERO == TMR2_ReadTimer())
|
||||||
|
{
|
||||||
|
// Do something else...
|
||||||
|
|
||||||
|
// Write the TMR2 register
|
||||||
|
TMR2_WriteTimer(PERIOD);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Do something else...
|
||||||
|
}
|
||||||
|
</code>
|
||||||
|
*/
|
||||||
|
void TMR2_WriteTimer(uint8_t timerVal);
|
||||||
|
|
||||||
|
/**
|
||||||
|
@Summary
|
||||||
|
Load value to Period Register.
|
||||||
|
|
||||||
|
@Description
|
||||||
|
This function writes the value to PR2 register.
|
||||||
|
This function must be called after the initialization of TMR2.
|
||||||
|
|
||||||
|
@Preconditions
|
||||||
|
Initialize the TMR2 before calling this function.
|
||||||
|
|
||||||
|
@Param
|
||||||
|
periodVal - Value to load into TMR2 register.
|
||||||
|
|
||||||
|
@Returns
|
||||||
|
None
|
||||||
|
|
||||||
|
@Example
|
||||||
|
<code>
|
||||||
|
#define PERIOD1 0x80
|
||||||
|
#define PERIOD2 0x40
|
||||||
|
#define ZERO 0x00
|
||||||
|
|
||||||
|
while(1)
|
||||||
|
{
|
||||||
|
// Read the TMR2 register
|
||||||
|
if(ZERO == TMR2_ReadTimer())
|
||||||
|
{
|
||||||
|
// Do something else...
|
||||||
|
|
||||||
|
if(flag)
|
||||||
|
{
|
||||||
|
flag = 0;
|
||||||
|
|
||||||
|
// Load Period 1 value
|
||||||
|
TMR2_LoadPeriodRegister(PERIOD1);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
flag = 1;
|
||||||
|
|
||||||
|
// Load Period 2 value
|
||||||
|
TMR2_LoadPeriodRegister(PERIOD2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Do something else...
|
||||||
|
}
|
||||||
|
</code>
|
||||||
|
*/
|
||||||
|
void TMR2_LoadPeriodRegister(uint8_t periodVal);
|
||||||
|
|
||||||
|
/**
|
||||||
|
@Summary
|
||||||
|
Boolean routine to poll or to check for the match flag on the fly.
|
||||||
|
|
||||||
|
@Description
|
||||||
|
This function is called to check for the timer match flag.
|
||||||
|
This function is used in timer polling method.
|
||||||
|
|
||||||
|
@Preconditions
|
||||||
|
Initialize the TMR2 module before calling this routine.
|
||||||
|
|
||||||
|
@Param
|
||||||
|
None
|
||||||
|
|
||||||
|
@Returns
|
||||||
|
true - timer match has occurred.
|
||||||
|
false - timer match has not occurred.
|
||||||
|
|
||||||
|
@Example
|
||||||
|
<code>
|
||||||
|
while(1)
|
||||||
|
{
|
||||||
|
// check the match flag
|
||||||
|
if(TMR2_HasOverflowOccured())
|
||||||
|
{
|
||||||
|
// Do something else...
|
||||||
|
|
||||||
|
// Reload the TMR2 value
|
||||||
|
TMR2_Reload();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</code>
|
||||||
|
*/
|
||||||
|
bool TMR2_HasOverflowOccured(void);
|
||||||
|
|
||||||
|
#ifdef __cplusplus // Provide C++ Compatibility
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif // TMR2_H
|
||||||
|
/**
|
||||||
|
End of File
|
||||||
|
*/
|
||||||
|
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#define VOLTAGE_CHANNEL 0x5
|
#define VOLTAGE_CHANNEL 0x5
|
||||||
#define CURRENT_CHANNEL 0x6
|
#define CURRENT_CHANNEL 0x6
|
||||||
#define ADC_RESOLUTION 4096 - 1
|
#define ADC_RESOLUTION (1024 - 1)
|
||||||
#define ADC_REFH 3300
|
#define ADC_REFH 3300
|
||||||
#define GAIN 66
|
#define GAIN 66
|
||||||
#define RESISTOR 3
|
#define RESISTOR 3
|
||||||
@ -13,14 +13,10 @@
|
|||||||
// Number of samples to do the averaging during measures
|
// Number of samples to do the averaging during measures
|
||||||
#define AVERAGE_SAMPLES 8
|
#define AVERAGE_SAMPLES 8
|
||||||
|
|
||||||
uint16_t samplesVoltage[AVERAGE_SAMPLES];
|
|
||||||
uint16_t samplesCurrent[AVERAGE_SAMPLES];
|
|
||||||
|
|
||||||
|
|
||||||
void adc_init(void)
|
void adc_init(void)
|
||||||
{
|
{
|
||||||
// TODO -> complete adc initialisation
|
// TODO -> complete adc initialisation
|
||||||
offsetCurrent = measure_current(0);
|
//offsetCurrent = measure_current(0);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -36,20 +32,36 @@ static uint16_t measure_adc(uint8_t channel)
|
|||||||
return (uint16_t) (ADC_GetConversion(channel));
|
return (uint16_t) (ADC_GetConversion(channel));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
uint16_t measure_voltage()
|
uint16_t measure_voltage()
|
||||||
{
|
{
|
||||||
uint16_t m = measure_adc(VOLTAGE_CHANNEL);
|
uint32_t sum = 0;
|
||||||
m /= 20; // TODO Explain why 20
|
|
||||||
return m;
|
for(int i = 0; i < AVERAGE_SAMPLES; i++) {
|
||||||
|
sum += measure_adc(VOLTAGE_CHANNEL);
|
||||||
|
}
|
||||||
|
sum /= AVERAGE_SAMPLES;
|
||||||
|
sum = (sum * ADC_REFH) / ADC_RESOLUTION;
|
||||||
|
return (uint16_t)(sum);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16_t measure_current(uint16_t offset)
|
uint16_t measure_current(uint16_t offset)
|
||||||
{
|
{
|
||||||
uint16_t m = measure_adc(CURRENT_CHANNEL);
|
uint32_t sum = 0;
|
||||||
m -= offset;
|
for(int i = 0; i< AVERAGE_SAMPLES; i++){
|
||||||
if(m <= 0){
|
sum += measure_adc(CURRENT_CHANNEL);
|
||||||
m = 0;
|
}
|
||||||
}
|
uint32_t m = (sum / AVERAGE_SAMPLES); // m is bits
|
||||||
|
m = (m * ADC_REFH) / ADC_RESOLUTION; // m is mV
|
||||||
|
m *= 1000; // m is uV
|
||||||
m /= GAIN;
|
m /= GAIN;
|
||||||
return m;
|
m /= RESISTOR; // m is uA
|
||||||
|
if(m <= offset){
|
||||||
|
m = 0;
|
||||||
|
} else {
|
||||||
|
m -= offset;
|
||||||
|
}
|
||||||
|
|
||||||
|
return (uint16_t)m;
|
||||||
}
|
}
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
static uint16_t offsetCurrent;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialize ADC and pins for measuring current and voltage
|
* Initialize ADC and pins for measuring current and voltage
|
||||||
|
@ -57,17 +57,17 @@ OBJECTDIR=build/${CND_CONF}/${IMAGE_TYPE}
|
|||||||
DISTDIR=dist/${CND_CONF}/${IMAGE_TYPE}
|
DISTDIR=dist/${CND_CONF}/${IMAGE_TYPE}
|
||||||
|
|
||||||
# Source Files Quoted if spaced
|
# Source Files Quoted if spaced
|
||||||
SOURCEFILES_QUOTED_IF_SPACED=lcd/lcd.c mcc_generated_files/device_config.c mcc_generated_files/mcc.c mcc_generated_files/pin_manager.c mcc_generated_files/adc.c main.c crc.c measure.c modbus.c
|
SOURCEFILES_QUOTED_IF_SPACED=lcd/lcd.c mcc_generated_files/device_config.c mcc_generated_files/mcc.c mcc_generated_files/pin_manager.c mcc_generated_files/adc.c main.c crc.c measure.c modbus.c mcc_generated_files/epwm1.c mcc_generated_files/tmr2.c
|
||||||
|
|
||||||
# Object Files Quoted if spaced
|
# Object Files Quoted if spaced
|
||||||
OBJECTFILES_QUOTED_IF_SPACED=${OBJECTDIR}/lcd/lcd.p1 ${OBJECTDIR}/mcc_generated_files/device_config.p1 ${OBJECTDIR}/mcc_generated_files/mcc.p1 ${OBJECTDIR}/mcc_generated_files/pin_manager.p1 ${OBJECTDIR}/mcc_generated_files/adc.p1 ${OBJECTDIR}/main.p1 ${OBJECTDIR}/crc.p1 ${OBJECTDIR}/measure.p1 ${OBJECTDIR}/modbus.p1
|
OBJECTFILES_QUOTED_IF_SPACED=${OBJECTDIR}/lcd/lcd.p1 ${OBJECTDIR}/mcc_generated_files/device_config.p1 ${OBJECTDIR}/mcc_generated_files/mcc.p1 ${OBJECTDIR}/mcc_generated_files/pin_manager.p1 ${OBJECTDIR}/mcc_generated_files/adc.p1 ${OBJECTDIR}/main.p1 ${OBJECTDIR}/crc.p1 ${OBJECTDIR}/measure.p1 ${OBJECTDIR}/modbus.p1 ${OBJECTDIR}/mcc_generated_files/epwm1.p1 ${OBJECTDIR}/mcc_generated_files/tmr2.p1
|
||||||
POSSIBLE_DEPFILES=${OBJECTDIR}/lcd/lcd.p1.d ${OBJECTDIR}/mcc_generated_files/device_config.p1.d ${OBJECTDIR}/mcc_generated_files/mcc.p1.d ${OBJECTDIR}/mcc_generated_files/pin_manager.p1.d ${OBJECTDIR}/mcc_generated_files/adc.p1.d ${OBJECTDIR}/main.p1.d ${OBJECTDIR}/crc.p1.d ${OBJECTDIR}/measure.p1.d ${OBJECTDIR}/modbus.p1.d
|
POSSIBLE_DEPFILES=${OBJECTDIR}/lcd/lcd.p1.d ${OBJECTDIR}/mcc_generated_files/device_config.p1.d ${OBJECTDIR}/mcc_generated_files/mcc.p1.d ${OBJECTDIR}/mcc_generated_files/pin_manager.p1.d ${OBJECTDIR}/mcc_generated_files/adc.p1.d ${OBJECTDIR}/main.p1.d ${OBJECTDIR}/crc.p1.d ${OBJECTDIR}/measure.p1.d ${OBJECTDIR}/modbus.p1.d ${OBJECTDIR}/mcc_generated_files/epwm1.p1.d ${OBJECTDIR}/mcc_generated_files/tmr2.p1.d
|
||||||
|
|
||||||
# Object Files
|
# Object Files
|
||||||
OBJECTFILES=${OBJECTDIR}/lcd/lcd.p1 ${OBJECTDIR}/mcc_generated_files/device_config.p1 ${OBJECTDIR}/mcc_generated_files/mcc.p1 ${OBJECTDIR}/mcc_generated_files/pin_manager.p1 ${OBJECTDIR}/mcc_generated_files/adc.p1 ${OBJECTDIR}/main.p1 ${OBJECTDIR}/crc.p1 ${OBJECTDIR}/measure.p1 ${OBJECTDIR}/modbus.p1
|
OBJECTFILES=${OBJECTDIR}/lcd/lcd.p1 ${OBJECTDIR}/mcc_generated_files/device_config.p1 ${OBJECTDIR}/mcc_generated_files/mcc.p1 ${OBJECTDIR}/mcc_generated_files/pin_manager.p1 ${OBJECTDIR}/mcc_generated_files/adc.p1 ${OBJECTDIR}/main.p1 ${OBJECTDIR}/crc.p1 ${OBJECTDIR}/measure.p1 ${OBJECTDIR}/modbus.p1 ${OBJECTDIR}/mcc_generated_files/epwm1.p1 ${OBJECTDIR}/mcc_generated_files/tmr2.p1
|
||||||
|
|
||||||
# Source Files
|
# Source Files
|
||||||
SOURCEFILES=lcd/lcd.c mcc_generated_files/device_config.c mcc_generated_files/mcc.c mcc_generated_files/pin_manager.c mcc_generated_files/adc.c main.c crc.c measure.c modbus.c
|
SOURCEFILES=lcd/lcd.c mcc_generated_files/device_config.c mcc_generated_files/mcc.c mcc_generated_files/pin_manager.c mcc_generated_files/adc.c main.c crc.c measure.c modbus.c mcc_generated_files/epwm1.c mcc_generated_files/tmr2.c
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -166,6 +166,22 @@ ${OBJECTDIR}/modbus.p1: modbus.c nbproject/Makefile-${CND_CONF}.mk
|
|||||||
@-${MV} ${OBJECTDIR}/modbus.d ${OBJECTDIR}/modbus.p1.d
|
@-${MV} ${OBJECTDIR}/modbus.d ${OBJECTDIR}/modbus.p1.d
|
||||||
@${FIXDEPS} ${OBJECTDIR}/modbus.p1.d $(SILENT) -rsi ${MP_CC_DIR}../
|
@${FIXDEPS} ${OBJECTDIR}/modbus.p1.d $(SILENT) -rsi ${MP_CC_DIR}../
|
||||||
|
|
||||||
|
${OBJECTDIR}/mcc_generated_files/epwm1.p1: mcc_generated_files/epwm1.c nbproject/Makefile-${CND_CONF}.mk
|
||||||
|
@${MKDIR} "${OBJECTDIR}/mcc_generated_files"
|
||||||
|
@${RM} ${OBJECTDIR}/mcc_generated_files/epwm1.p1.d
|
||||||
|
@${RM} ${OBJECTDIR}/mcc_generated_files/epwm1.p1
|
||||||
|
${MP_CC} $(MP_EXTRA_CC_PRE) -mcpu=$(MP_PROCESSOR_OPTION) -c -D__DEBUG=1 -mdebugger=snap -mdfp="${DFP_DIR}/xc8" -fno-short-double -fno-short-float -memi=wordwrite -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -mwarn=-3 -Wa,-a -DXPRJ_default=$(CND_CONF) -msummary=-psect,-class,+mem,-hex,-file -ginhx32 -Wl,--data-init -mno-keep-startup -mno-download -mdefault-config-bits $(COMPARISON_BUILD) -std=c99 -gdwarf-3 -mstack=compiled:auto:auto:auto -o ${OBJECTDIR}/mcc_generated_files/epwm1.p1 mcc_generated_files/epwm1.c
|
||||||
|
@-${MV} ${OBJECTDIR}/mcc_generated_files/epwm1.d ${OBJECTDIR}/mcc_generated_files/epwm1.p1.d
|
||||||
|
@${FIXDEPS} ${OBJECTDIR}/mcc_generated_files/epwm1.p1.d $(SILENT) -rsi ${MP_CC_DIR}../
|
||||||
|
|
||||||
|
${OBJECTDIR}/mcc_generated_files/tmr2.p1: mcc_generated_files/tmr2.c nbproject/Makefile-${CND_CONF}.mk
|
||||||
|
@${MKDIR} "${OBJECTDIR}/mcc_generated_files"
|
||||||
|
@${RM} ${OBJECTDIR}/mcc_generated_files/tmr2.p1.d
|
||||||
|
@${RM} ${OBJECTDIR}/mcc_generated_files/tmr2.p1
|
||||||
|
${MP_CC} $(MP_EXTRA_CC_PRE) -mcpu=$(MP_PROCESSOR_OPTION) -c -D__DEBUG=1 -mdebugger=snap -mdfp="${DFP_DIR}/xc8" -fno-short-double -fno-short-float -memi=wordwrite -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -mwarn=-3 -Wa,-a -DXPRJ_default=$(CND_CONF) -msummary=-psect,-class,+mem,-hex,-file -ginhx32 -Wl,--data-init -mno-keep-startup -mno-download -mdefault-config-bits $(COMPARISON_BUILD) -std=c99 -gdwarf-3 -mstack=compiled:auto:auto:auto -o ${OBJECTDIR}/mcc_generated_files/tmr2.p1 mcc_generated_files/tmr2.c
|
||||||
|
@-${MV} ${OBJECTDIR}/mcc_generated_files/tmr2.d ${OBJECTDIR}/mcc_generated_files/tmr2.p1.d
|
||||||
|
@${FIXDEPS} ${OBJECTDIR}/mcc_generated_files/tmr2.p1.d $(SILENT) -rsi ${MP_CC_DIR}../
|
||||||
|
|
||||||
else
|
else
|
||||||
${OBJECTDIR}/lcd/lcd.p1: lcd/lcd.c nbproject/Makefile-${CND_CONF}.mk
|
${OBJECTDIR}/lcd/lcd.p1: lcd/lcd.c nbproject/Makefile-${CND_CONF}.mk
|
||||||
@${MKDIR} "${OBJECTDIR}/lcd"
|
@${MKDIR} "${OBJECTDIR}/lcd"
|
||||||
@ -239,6 +255,22 @@ ${OBJECTDIR}/modbus.p1: modbus.c nbproject/Makefile-${CND_CONF}.mk
|
|||||||
@-${MV} ${OBJECTDIR}/modbus.d ${OBJECTDIR}/modbus.p1.d
|
@-${MV} ${OBJECTDIR}/modbus.d ${OBJECTDIR}/modbus.p1.d
|
||||||
@${FIXDEPS} ${OBJECTDIR}/modbus.p1.d $(SILENT) -rsi ${MP_CC_DIR}../
|
@${FIXDEPS} ${OBJECTDIR}/modbus.p1.d $(SILENT) -rsi ${MP_CC_DIR}../
|
||||||
|
|
||||||
|
${OBJECTDIR}/mcc_generated_files/epwm1.p1: mcc_generated_files/epwm1.c nbproject/Makefile-${CND_CONF}.mk
|
||||||
|
@${MKDIR} "${OBJECTDIR}/mcc_generated_files"
|
||||||
|
@${RM} ${OBJECTDIR}/mcc_generated_files/epwm1.p1.d
|
||||||
|
@${RM} ${OBJECTDIR}/mcc_generated_files/epwm1.p1
|
||||||
|
${MP_CC} $(MP_EXTRA_CC_PRE) -mcpu=$(MP_PROCESSOR_OPTION) -c -mdfp="${DFP_DIR}/xc8" -fno-short-double -fno-short-float -memi=wordwrite -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -mwarn=-3 -Wa,-a -DXPRJ_default=$(CND_CONF) -msummary=-psect,-class,+mem,-hex,-file -ginhx32 -Wl,--data-init -mno-keep-startup -mno-download -mdefault-config-bits $(COMPARISON_BUILD) -std=c99 -gdwarf-3 -mstack=compiled:auto:auto:auto -o ${OBJECTDIR}/mcc_generated_files/epwm1.p1 mcc_generated_files/epwm1.c
|
||||||
|
@-${MV} ${OBJECTDIR}/mcc_generated_files/epwm1.d ${OBJECTDIR}/mcc_generated_files/epwm1.p1.d
|
||||||
|
@${FIXDEPS} ${OBJECTDIR}/mcc_generated_files/epwm1.p1.d $(SILENT) -rsi ${MP_CC_DIR}../
|
||||||
|
|
||||||
|
${OBJECTDIR}/mcc_generated_files/tmr2.p1: mcc_generated_files/tmr2.c nbproject/Makefile-${CND_CONF}.mk
|
||||||
|
@${MKDIR} "${OBJECTDIR}/mcc_generated_files"
|
||||||
|
@${RM} ${OBJECTDIR}/mcc_generated_files/tmr2.p1.d
|
||||||
|
@${RM} ${OBJECTDIR}/mcc_generated_files/tmr2.p1
|
||||||
|
${MP_CC} $(MP_EXTRA_CC_PRE) -mcpu=$(MP_PROCESSOR_OPTION) -c -mdfp="${DFP_DIR}/xc8" -fno-short-double -fno-short-float -memi=wordwrite -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -mwarn=-3 -Wa,-a -DXPRJ_default=$(CND_CONF) -msummary=-psect,-class,+mem,-hex,-file -ginhx32 -Wl,--data-init -mno-keep-startup -mno-download -mdefault-config-bits $(COMPARISON_BUILD) -std=c99 -gdwarf-3 -mstack=compiled:auto:auto:auto -o ${OBJECTDIR}/mcc_generated_files/tmr2.p1 mcc_generated_files/tmr2.c
|
||||||
|
@-${MV} ${OBJECTDIR}/mcc_generated_files/tmr2.d ${OBJECTDIR}/mcc_generated_files/tmr2.p1.d
|
||||||
|
@${FIXDEPS} ${OBJECTDIR}/mcc_generated_files/tmr2.p1.d $(SILENT) -rsi ${MP_CC_DIR}../
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------------
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
#
|
#
|
||||||
#Tue Feb 28 15:05:35 CET 2023
|
#Fri Mar 03 13:24:37 CET 2023
|
||||||
default.languagetoolchain.version=2.40
|
default.languagetoolchain.version=2.40
|
||||||
default.Pack.dfplocation=C\:\\Program Files\\Microchip\\MPLABX\\v6.00\\packs\\Microchip\\PIC18F-J_DFP\\1.5.44
|
default.Pack.dfplocation=C\:\\Program Files\\Microchip\\MPLABX\\v6.00\\packs\\Microchip\\PIC18F-J_DFP\\1.5.44
|
||||||
conf.ids=default
|
conf.ids=default
|
||||||
default.languagetoolchain.dir=C\:\\Program Files\\Microchip\\xc8\\v2.40\\bin
|
default.languagetoolchain.dir=C\:\\Program Files\\Microchip\\xc8\\v2.40\\bin
|
||||||
host.id=3awj-afwq-rl
|
host.id=3awj-afwq-rl
|
||||||
configurations-xml=15a5d28d4e47d133a748d3cb5ad18cb1
|
configurations-xml=080b6b0e67e3ef40b76cf6528cd7e334
|
||||||
default.com-microchip-mplab-mdbcore-snap-SnapToolImpl.md5=eaa336cefb7fc46db8b50b7b2b6e54ca
|
default.com-microchip-mplab-mdbcore-snap-SnapToolImpl.md5=eaa336cefb7fc46db8b50b7b2b6e54ca
|
||||||
com-microchip-mplab-nbide-embedded-makeproject-MakeProject.md5=6e02ca5e9f5042ffd365b42ab82d3a9b
|
com-microchip-mplab-nbide-embedded-makeproject-MakeProject.md5=6e02ca5e9f5042ffd365b42ab82d3a9b
|
||||||
user-defined-mime-resolver-xml=none
|
user-defined-mime-resolver-xml=none
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
<itemPath>mcc_generated_files/pin_manager.h</itemPath>
|
<itemPath>mcc_generated_files/pin_manager.h</itemPath>
|
||||||
<itemPath>mcc_generated_files/mcc.h</itemPath>
|
<itemPath>mcc_generated_files/mcc.h</itemPath>
|
||||||
<itemPath>mcc_generated_files/adc.h</itemPath>
|
<itemPath>mcc_generated_files/adc.h</itemPath>
|
||||||
|
<itemPath>mcc_generated_files/epwm1.h</itemPath>
|
||||||
|
<itemPath>mcc_generated_files/tmr2.h</itemPath>
|
||||||
</logicalFolder>
|
</logicalFolder>
|
||||||
<itemPath>crc.h</itemPath>
|
<itemPath>crc.h</itemPath>
|
||||||
<itemPath>measure.h</itemPath>
|
<itemPath>measure.h</itemPath>
|
||||||
@ -36,6 +38,8 @@
|
|||||||
<itemPath>mcc_generated_files/mcc.c</itemPath>
|
<itemPath>mcc_generated_files/mcc.c</itemPath>
|
||||||
<itemPath>mcc_generated_files/pin_manager.c</itemPath>
|
<itemPath>mcc_generated_files/pin_manager.c</itemPath>
|
||||||
<itemPath>mcc_generated_files/adc.c</itemPath>
|
<itemPath>mcc_generated_files/adc.c</itemPath>
|
||||||
|
<itemPath>mcc_generated_files/epwm1.c</itemPath>
|
||||||
|
<itemPath>mcc_generated_files/tmr2.c</itemPath>
|
||||||
</logicalFolder>
|
</logicalFolder>
|
||||||
<itemPath>main.c</itemPath>
|
<itemPath>main.c</itemPath>
|
||||||
<itemPath>crc.c</itemPath>
|
<itemPath>crc.c</itemPath>
|
||||||
@ -175,6 +179,9 @@
|
|||||||
<property key="program-the-device-with-default-config-words" value="true"/>
|
<property key="program-the-device-with-default-config-words" value="true"/>
|
||||||
<property key="remove-unused-sections" value="true"/>
|
<property key="remove-unused-sections" value="true"/>
|
||||||
</HI-TECH-LINK>
|
</HI-TECH-LINK>
|
||||||
|
<Tool>
|
||||||
|
<property key="debugoptions.useswbreakpoints" value="true"/>
|
||||||
|
</Tool>
|
||||||
<XC8-CO>
|
<XC8-CO>
|
||||||
<property key="coverage-enable" value=""/>
|
<property key="coverage-enable" value=""/>
|
||||||
<property key="stack-guidance" value="false"/>
|
<property key="stack-guidance" value="false"/>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<defaultConf>0</defaultConf>
|
<defaultConf>0</defaultConf>
|
||||||
<confs>
|
<confs>
|
||||||
<conf name="default" type="2">
|
<conf name="default" type="2">
|
||||||
<platformToolSN>:=MPLABComm-USB-Microchip:=<vid>04D8:=<pid>9018:=<rev>0100:=<man>Microchip Technology Incorporated:=<prod>MPLAB Snap ICD:=<sn>BUR190971825:=<drv>x:=<xpt>b:=end</platformToolSN>
|
<platformToolSN>:=MPLABComm-USB-Microchip:=<vid>04D8:=<pid>9018:=<rev>0100:=<man>Microchip Technology Incorporated:=<prod>MPLAB Snap ICD:=<sn>BUR190971772:=<drv>x:=<xpt>b:=end</platformToolSN>
|
||||||
<languageToolchainDir>C:\Program Files\Microchip\xc8\v2.40\bin</languageToolchainDir>
|
<languageToolchainDir>C:\Program Files\Microchip\xc8\v2.40\bin</languageToolchainDir>
|
||||||
<mdbdebugger version="1">
|
<mdbdebugger version="1">
|
||||||
<placeholder1>place holder 1</placeholder1>
|
<placeholder1>place holder 1</placeholder1>
|
||||||
|
@ -2,6 +2,12 @@
|
|||||||
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
|
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
|
||||||
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
|
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
|
||||||
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
|
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
|
||||||
<group/>
|
<group>
|
||||||
|
<file>file:/C:/Users/remi/Downloads/MCU/solar_panel/solar_panel.X/measure.c</file>
|
||||||
|
<file>file:/C:/Users/remi/Downloads/MCU/solar_panel/solar_panel.X/measure.h</file>
|
||||||
|
<file>file:/C:/Users/remi/Downloads/MCU/solar_panel/solar_panel.X/main.c</file>
|
||||||
|
<file>file:/C:/Users/remi/Downloads/MCU/solar_panel/solar_panel.X/lcd/lcd.c</file>
|
||||||
|
<file>file:/C:/Program%20Files/Microchip/xc8/v2.40/pic/sources/c99/common/lomod.c</file>
|
||||||
|
</group>
|
||||||
</open-files>
|
</open-files>
|
||||||
</project-private>
|
</project-private>
|
||||||
|
@ -5,6 +5,10 @@
|
|||||||
<string>ADC</string>
|
<string>ADC</string>
|
||||||
<string>class com.microchip.mcc.mcu8.modules.adc.ADC</string>
|
<string>class com.microchip.mcc.mcu8.modules.adc.ADC</string>
|
||||||
</entry>
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<string>ECCP1</string>
|
||||||
|
<string>class com.microchip.mcc.mcu8.modules.eccp.ECCP</string>
|
||||||
|
</entry>
|
||||||
<entry>
|
<entry>
|
||||||
<string>INTERNAL OSCILLATOR</string>
|
<string>INTERNAL OSCILLATOR</string>
|
||||||
<string>class com.microchip.mcc.mcu8.systemManager.osc_v3.Osc</string>
|
<string>class com.microchip.mcc.mcu8.systemManager.osc_v3.Osc</string>
|
||||||
@ -25,6 +29,10 @@
|
|||||||
<string>System Module</string>
|
<string>System Module</string>
|
||||||
<string>class com.microchip.mcc.mcu8.systemManager.SystemManager</string>
|
<string>class com.microchip.mcc.mcu8.systemManager.SystemManager</string>
|
||||||
</entry>
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<string>TMR2</string>
|
||||||
|
<string>class com.microchip.mcc.mcu8.modules.tmr2_v3.TMR2</string>
|
||||||
|
</entry>
|
||||||
<entry>
|
<entry>
|
||||||
<string>WDT</string>
|
<string>WDT</string>
|
||||||
<string>class com.microchip.mcc.mcu8.systemManager.wdt.WDT</string>
|
<string>class com.microchip.mcc.mcu8.systemManager.wdt.WDT</string>
|
||||||
@ -336,7 +344,7 @@
|
|||||||
</entry>
|
</entry>
|
||||||
<entry>
|
<entry>
|
||||||
<key class="com.microchip.mcc.core.tokenManager.RegisterKey" moduleName="ADC" registerAlias="ADCON2"/>
|
<key class="com.microchip.mcc.core.tokenManager.RegisterKey" moduleName="ADC" registerAlias="ADCON2"/>
|
||||||
<value>0</value>
|
<value>128</value>
|
||||||
</entry>
|
</entry>
|
||||||
<entry>
|
<entry>
|
||||||
<key class="com.microchip.mcc.core.tokenManager.RegisterKey" moduleName="ADC" registerAlias="ADRESH"/>
|
<key class="com.microchip.mcc.core.tokenManager.RegisterKey" moduleName="ADC" registerAlias="ADRESH"/>
|
||||||
@ -380,7 +388,7 @@
|
|||||||
</entry>
|
</entry>
|
||||||
<entry>
|
<entry>
|
||||||
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="ADC" registerAlias="ADCON2" settingAlias="ADFM"/>
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="ADC" registerAlias="ADCON2" settingAlias="ADFM"/>
|
||||||
<value>left</value>
|
<value>right</value>
|
||||||
</entry>
|
</entry>
|
||||||
<entry>
|
<entry>
|
||||||
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="ADC" registerAlias="ADI" settingAlias="enable"/>
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="ADC" registerAlias="ADI" settingAlias="enable"/>
|
||||||
@ -406,6 +414,342 @@
|
|||||||
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="ADC" registerAlias="ADRESL" settingAlias="ADRESL"/>
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="ADC" registerAlias="ADRESL" settingAlias="ADRESL"/>
|
||||||
<value>0</value>
|
<value>0</value>
|
||||||
</entry>
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ECCP1" name="ECCP1_CCPIISRFunction"/>
|
||||||
|
<value>ISR</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ECCP1" name="autoShutdownStateAC"/>
|
||||||
|
<value>low</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ECCP1" name="autoShutdownStateBD"/>
|
||||||
|
<value>low</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ECCP1" name="ccpPinEnable"/>
|
||||||
|
<value>disabled</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ECCP1" name="ccpr"/>
|
||||||
|
<value>511</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ECCP1" name="clockFreq"/>
|
||||||
|
<value>25000000</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ECCP1" name="dutyCycle"/>
|
||||||
|
<value>50.0</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ECCP1" name="eccpMode"/>
|
||||||
|
<value>Enhanced PWM</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ECCP1" name="epwmTmrSelect"/>
|
||||||
|
<value>Timer2</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ECCP1" name="fbPresent"/>
|
||||||
|
<value>enabled</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ECCP1" name="fltPinEnable"/>
|
||||||
|
<value>disabled</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ECCP1" name="localtmr2Mode"/>
|
||||||
|
<value>periodMode</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ECCP1" name="pwmDelay"/>
|
||||||
|
<value>0.0</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ECCP1" name="pwmFreq"/>
|
||||||
|
<value>24414.063</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ECCP1" name="pwmPeriod"/>
|
||||||
|
<value>4.096E-5</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ECCP1" name="pwmResolution"/>
|
||||||
|
<value>10</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ECCP1" name="pwmpinspolarity"/>
|
||||||
|
<value>P1A,P1C: active high; P1B,P1D: active high</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ECCP1" name="strEn"/>
|
||||||
|
<value>disabled</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ECCP1" name="stra"/>
|
||||||
|
<value>enabled</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ECCP1" name="straPin"/>
|
||||||
|
<value>enabled</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ECCP1" name="strb"/>
|
||||||
|
<value>disabled</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ECCP1" name="strbPin"/>
|
||||||
|
<value>disabled</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ECCP1" name="strc"/>
|
||||||
|
<value>disabled</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ECCP1" name="strcPin"/>
|
||||||
|
<value>disabled</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ECCP1" name="strd"/>
|
||||||
|
<value>disabled</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ECCP1" name="strdPin"/>
|
||||||
|
<value>disabled</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ECCP1" name="timerselpresence"/>
|
||||||
|
<value>timerselabsent</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="ECCP1" name="tmr2present"/>
|
||||||
|
<value>true</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPAS" settingAlias="CCPAS" alias="C1Hi"/>
|
||||||
|
<value>1</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPAS" settingAlias="CCPAS" alias="C1Hi_C2Hi"/>
|
||||||
|
<value>3</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPAS" settingAlias="CCPAS" alias="C2Hi"/>
|
||||||
|
<value>2</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPAS" settingAlias="CCPAS" alias="FLT0_pin Lo"/>
|
||||||
|
<value>4</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPAS" settingAlias="CCPAS" alias="FLT0_pin or C1 Lo"/>
|
||||||
|
<value>5</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPAS" settingAlias="CCPAS" alias="FLT0_pin or C1 or C2 Lo"/>
|
||||||
|
<value>7</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPAS" settingAlias="CCPAS" alias="FLT0_pin or C2 Lo"/>
|
||||||
|
<value>6</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPAS" settingAlias="CCPAS" alias="disabled"/>
|
||||||
|
<value>0</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPAS" settingAlias="CCPASE" alias="operating"/>
|
||||||
|
<value>0</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPAS" settingAlias="CCPASE" alias="shutdown"/>
|
||||||
|
<value>1</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPAS" settingAlias="PSSAC" alias="P1AP1C_0"/>
|
||||||
|
<value>0</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPAS" settingAlias="PSSAC" alias="P1AP1C_1"/>
|
||||||
|
<value>1</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPAS" settingAlias="PSSAC" alias="P1AP1C_tri"/>
|
||||||
|
<value>2</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPAS" settingAlias="PSSBD" alias="P1BP1D_0"/>
|
||||||
|
<value>0</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPAS" settingAlias="PSSBD" alias="P1BP1D_1"/>
|
||||||
|
<value>1</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPAS" settingAlias="PSSBD" alias="P1BP1D_tri"/>
|
||||||
|
<value>2</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPCON" settingAlias="CCPM" alias="16th rising edge"/>
|
||||||
|
<value>7</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPCON" settingAlias="CCPM" alias="4th rising edge"/>
|
||||||
|
<value>6</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPCON" settingAlias="CCPM" alias="Autoconversion"/>
|
||||||
|
<value>11</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPCON" settingAlias="CCPM" alias="Clearoutput"/>
|
||||||
|
<value>9</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPCON" settingAlias="CCPM" alias="Falling edge"/>
|
||||||
|
<value>4</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPCON" settingAlias="CCPM" alias="P1A,P1C: active high; P1B,P1D: active high"/>
|
||||||
|
<value>12</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPCON" settingAlias="CCPM" alias="P1A,P1C: active high; P1B,P1D: active low"/>
|
||||||
|
<value>13</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPCON" settingAlias="CCPM" alias="P1A,P1C: active low; P1B,P1D: active high"/>
|
||||||
|
<value>14</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPCON" settingAlias="CCPM" alias="P1A,P1C: active low; P1B,P1D: active low"/>
|
||||||
|
<value>15</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPCON" settingAlias="CCPM" alias="Rising edge"/>
|
||||||
|
<value>5</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPCON" settingAlias="CCPM" alias="Setoutput"/>
|
||||||
|
<value>8</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPCON" settingAlias="CCPM" alias="Softinterrupt"/>
|
||||||
|
<value>10</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPCON" settingAlias="CCPM" alias="Toggle"/>
|
||||||
|
<value>2</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPCON" settingAlias="CCPM" alias="off/reset"/>
|
||||||
|
<value>0</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPCON" settingAlias="PM" alias="fullbridge_Fwd"/>
|
||||||
|
<value>1</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPCON" settingAlias="PM" alias="fullbridge_rev"/>
|
||||||
|
<value>3</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPCON" settingAlias="PM" alias="halfbridge"/>
|
||||||
|
<value>2</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="CCPCON" settingAlias="PM" alias="single"/>
|
||||||
|
<value>0</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="ECCPDEL" settingAlias="PRSEN" alias="automatic_restart"/>
|
||||||
|
<value>1</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="ECCP1" registerAlias="ECCPDEL" settingAlias="PRSEN" alias="manual_restart"/>
|
||||||
|
<value>0</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.RegisterKey" moduleName="ECCP1" registerAlias="CCPAS"/>
|
||||||
|
<value>0</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.RegisterKey" moduleName="ECCP1" registerAlias="CCPCON"/>
|
||||||
|
<value>60</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.RegisterKey" moduleName="ECCP1" registerAlias="CCPRH"/>
|
||||||
|
<value>0</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.RegisterKey" moduleName="ECCP1" registerAlias="CCPRL"/>
|
||||||
|
<value>127</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.RegisterKey" moduleName="ECCP1" registerAlias="ECCPDEL"/>
|
||||||
|
<value>128</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="ECCP1" registerAlias="CCPAS" settingAlias="CCPAS"/>
|
||||||
|
<value>disabled</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="ECCP1" registerAlias="CCPAS" settingAlias="CCPASE"/>
|
||||||
|
<value>operating</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="ECCP1" registerAlias="CCPAS" settingAlias="PSSAC"/>
|
||||||
|
<value>P1AP1C_0</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="ECCP1" registerAlias="CCPAS" settingAlias="PSSBD"/>
|
||||||
|
<value>P1BP1D_0</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="ECCP1" registerAlias="CCPCON" settingAlias="CCPM"/>
|
||||||
|
<value>P1A,P1C: active high; P1B,P1D: active high</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="ECCP1" registerAlias="CCPCON" settingAlias="DCB"/>
|
||||||
|
<value>3</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="ECCP1" registerAlias="CCPCON" settingAlias="PM"/>
|
||||||
|
<value>single</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="ECCP1" registerAlias="CCPI" settingAlias="enable"/>
|
||||||
|
<value>disabled</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="ECCP1" registerAlias="CCPI" settingAlias="flag"/>
|
||||||
|
<value>disabled</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="ECCP1" registerAlias="CCPI" settingAlias="order"/>
|
||||||
|
<value>-1</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="ECCP1" registerAlias="CCPI" settingAlias="priority"/>
|
||||||
|
<value>1</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="ECCP1" registerAlias="CCPRH" settingAlias="CCPRH"/>
|
||||||
|
<value>0</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="ECCP1" registerAlias="CCPRL" settingAlias="CCPRL"/>
|
||||||
|
<value>127</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="ECCP1" registerAlias="ECCPDEL" settingAlias="PDC"/>
|
||||||
|
<value>0</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="ECCP1" registerAlias="ECCPDEL" settingAlias="PRSEN"/>
|
||||||
|
<value>automatic_restart</value>
|
||||||
|
</entry>
|
||||||
<entry>
|
<entry>
|
||||||
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="INTERNAL OSCILLATOR" name="CurrentCpuDivString"/>
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="INTERNAL OSCILLATOR" name="CurrentCpuDivString"/>
|
||||||
<value/>
|
<value/>
|
||||||
@ -3740,7 +4084,7 @@
|
|||||||
</entry>
|
</entry>
|
||||||
<entry>
|
<entry>
|
||||||
<key class="com.microchip.mcc.core.tokenManager.RegisterKey" moduleName="Pin Module" registerAlias="TRISC"/>
|
<key class="com.microchip.mcc.core.tokenManager.RegisterKey" moduleName="Pin Module" registerAlias="TRISC"/>
|
||||||
<value>255</value>
|
<value>251</value>
|
||||||
</entry>
|
</entry>
|
||||||
<entry>
|
<entry>
|
||||||
<key class="com.microchip.mcc.core.tokenManager.RegisterKey" moduleName="Pin Module" registerAlias="TRISD"/>
|
<key class="com.microchip.mcc.core.tokenManager.RegisterKey" moduleName="Pin Module" registerAlias="TRISD"/>
|
||||||
@ -4196,7 +4540,7 @@
|
|||||||
</entry>
|
</entry>
|
||||||
<entry>
|
<entry>
|
||||||
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="Pin Module" registerAlias="TRISC" settingAlias="TRISC2"/>
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="Pin Module" registerAlias="TRISC" settingAlias="TRISC2"/>
|
||||||
<value>input</value>
|
<value>output</value>
|
||||||
</entry>
|
</entry>
|
||||||
<entry>
|
<entry>
|
||||||
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="Pin Module" registerAlias="TRISC" settingAlias="TRISC3"/>
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="Pin Module" registerAlias="TRISC" settingAlias="TRISC3"/>
|
||||||
@ -4870,6 +5214,186 @@
|
|||||||
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="System Module" registerAlias="CONFIG3L" settingAlias="WAIT"/>
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="System Module" registerAlias="CONFIG3L" settingAlias="WAIT"/>
|
||||||
<value>OFF</value>
|
<value>OFF</value>
|
||||||
</entry>
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="TMR2" name="CallbackFuncRate"/>
|
||||||
|
<value>0</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="TMR2" name="TMR2_TMRIISRFunction"/>
|
||||||
|
<value>ISR</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="TMR2" name="TimerPeriodkey"/>
|
||||||
|
<value>24414.0625</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="TMR2" name="clockFreq"/>
|
||||||
|
<value>25000000</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="TMR2" name="inputMode"/>
|
||||||
|
<value>periodMode</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="TMR2" name="prMatchValue"/>
|
||||||
|
<value>255</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="TMR2" name="tickerFactor"/>
|
||||||
|
<value>0</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="TMR2" name="timerPeriod"/>
|
||||||
|
<value>0.0000416</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="TMR2" name="timerPeriodActual"/>
|
||||||
|
<value>0.00004096</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="TMR2" name="timerPeriodMax"/>
|
||||||
|
<value>0.00004096</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="TMR2" name="timerPeriodMin"/>
|
||||||
|
<value>0.00000016</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="TMR2" name="timerstart"/>
|
||||||
|
<value>enabled</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="TMR2" registerAlias="TCON" settingAlias="TCKPS" alias="1:1"/>
|
||||||
|
<value>0</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="TMR2" registerAlias="TCON" settingAlias="TCKPS" alias="1:16"/>
|
||||||
|
<value>2</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="TMR2" registerAlias="TCON" settingAlias="TCKPS" alias="1:4"/>
|
||||||
|
<value>1</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="TMR2" registerAlias="TCON" settingAlias="TMRON" alias="off"/>
|
||||||
|
<value>0</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="TMR2" registerAlias="TCON" settingAlias="TMRON" alias="on"/>
|
||||||
|
<value>1</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="TMR2" registerAlias="TCON" settingAlias="TOUTPS" alias="1:1"/>
|
||||||
|
<value>0</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="TMR2" registerAlias="TCON" settingAlias="TOUTPS" alias="1:10"/>
|
||||||
|
<value>9</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="TMR2" registerAlias="TCON" settingAlias="TOUTPS" alias="1:11"/>
|
||||||
|
<value>10</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="TMR2" registerAlias="TCON" settingAlias="TOUTPS" alias="1:12"/>
|
||||||
|
<value>11</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="TMR2" registerAlias="TCON" settingAlias="TOUTPS" alias="1:13"/>
|
||||||
|
<value>12</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="TMR2" registerAlias="TCON" settingAlias="TOUTPS" alias="1:14"/>
|
||||||
|
<value>13</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="TMR2" registerAlias="TCON" settingAlias="TOUTPS" alias="1:15"/>
|
||||||
|
<value>14</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="TMR2" registerAlias="TCON" settingAlias="TOUTPS" alias="1:16"/>
|
||||||
|
<value>15</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="TMR2" registerAlias="TCON" settingAlias="TOUTPS" alias="1:2"/>
|
||||||
|
<value>1</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="TMR2" registerAlias="TCON" settingAlias="TOUTPS" alias="1:3"/>
|
||||||
|
<value>2</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="TMR2" registerAlias="TCON" settingAlias="TOUTPS" alias="1:4"/>
|
||||||
|
<value>3</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="TMR2" registerAlias="TCON" settingAlias="TOUTPS" alias="1:5"/>
|
||||||
|
<value>4</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="TMR2" registerAlias="TCON" settingAlias="TOUTPS" alias="1:6"/>
|
||||||
|
<value>5</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="TMR2" registerAlias="TCON" settingAlias="TOUTPS" alias="1:7"/>
|
||||||
|
<value>6</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="TMR2" registerAlias="TCON" settingAlias="TOUTPS" alias="1:8"/>
|
||||||
|
<value>7</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.OptionKey" moduleName="TMR2" registerAlias="TCON" settingAlias="TOUTPS" alias="1:9"/>
|
||||||
|
<value>8</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.RegisterKey" moduleName="TMR2" registerAlias="PR"/>
|
||||||
|
<value>255</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.RegisterKey" moduleName="TMR2" registerAlias="TCON"/>
|
||||||
|
<value>4</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.RegisterKey" moduleName="TMR2" registerAlias="TMR"/>
|
||||||
|
<value>0</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="TMR2" registerAlias="PR" settingAlias="PR"/>
|
||||||
|
<value>255</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="TMR2" registerAlias="TCON" settingAlias="TCKPS"/>
|
||||||
|
<value>1:1</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="TMR2" registerAlias="TCON" settingAlias="TMRON"/>
|
||||||
|
<value>on</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="TMR2" registerAlias="TCON" settingAlias="TOUTPS"/>
|
||||||
|
<value>1:1</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="TMR2" registerAlias="TMR" settingAlias="TMR"/>
|
||||||
|
<value>0</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="TMR2" registerAlias="TMRI" settingAlias="enable"/>
|
||||||
|
<value>disabled</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="TMR2" registerAlias="TMRI" settingAlias="flag"/>
|
||||||
|
<value>disabled</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="TMR2" registerAlias="TMRI" settingAlias="order"/>
|
||||||
|
<value>-1</value>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<key class="com.microchip.mcc.core.tokenManager.SettingKey" moduleName="TMR2" registerAlias="TMRI" settingAlias="priority"/>
|
||||||
|
<value>1</value>
|
||||||
|
</entry>
|
||||||
<entry>
|
<entry>
|
||||||
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="WDT" name="wdtPeriod"/>
|
<key class="com.microchip.mcc.core.tokenManager.CustomKey" moduleName="WDT" name="wdtPeriod"/>
|
||||||
<value>131.07200</value>
|
<value>131.07200</value>
|
||||||
@ -4878,16 +5402,12 @@
|
|||||||
<generatedFileHashHistoryMap class="java.util.HashMap">
|
<generatedFileHashHistoryMap class="java.util.HashMap">
|
||||||
<entry>
|
<entry>
|
||||||
<file>mcc_generated_files\mcc.h</file>
|
<file>mcc_generated_files\mcc.h</file>
|
||||||
<hash>76efcdc733bc41365db52afc42f4dc2a4c5a5dec1c341d9bf59f709fe14ba352</hash>
|
<hash>163eeab73ba2645b62407134fd74f192252b4a78fc740ce8959eebb831a39c2e</hash>
|
||||||
</entry>
|
</entry>
|
||||||
<entry>
|
<entry>
|
||||||
<file>mcc_generated_files\device_config.h</file>
|
<file>mcc_generated_files\device_config.h</file>
|
||||||
<hash>e658a4cb6ac1c79b2a52ab2754ebce26d229cbe4bd8464122f3272d1e76e5881</hash>
|
<hash>e658a4cb6ac1c79b2a52ab2754ebce26d229cbe4bd8464122f3272d1e76e5881</hash>
|
||||||
</entry>
|
</entry>
|
||||||
<entry>
|
|
||||||
<file>mcc_generated_files\adc.c</file>
|
|
||||||
<hash>ea0ef3a92d13a952f6980f986f555d7c4bba4e5b900dad9d9109d77db50d08d2</hash>
|
|
||||||
</entry>
|
|
||||||
<entry>
|
<entry>
|
||||||
<file>main.c</file>
|
<file>main.c</file>
|
||||||
<hash>30e3e0e5956e494fcd566f1509f2f2bbc404d25265a77934114af7c9d1fcdbd7</hash>
|
<hash>30e3e0e5956e494fcd566f1509f2f2bbc404d25265a77934114af7c9d1fcdbd7</hash>
|
||||||
@ -4896,21 +5416,41 @@
|
|||||||
<file>mcc_generated_files\device_config.c</file>
|
<file>mcc_generated_files\device_config.c</file>
|
||||||
<hash>0c1446568049fa17e32a6aec2aad01e6cabc65cf60b9d57aceffd79e04f930c2</hash>
|
<hash>0c1446568049fa17e32a6aec2aad01e6cabc65cf60b9d57aceffd79e04f930c2</hash>
|
||||||
</entry>
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<file>mcc_generated_files\tmr2.h</file>
|
||||||
|
<hash>9c49623fe191eb686818b525571464bbc0f83e271367728272f8bce53b917f55</hash>
|
||||||
|
</entry>
|
||||||
<entry>
|
<entry>
|
||||||
<file>mcc_generated_files\pin_manager.h</file>
|
<file>mcc_generated_files\pin_manager.h</file>
|
||||||
<hash>448e4663e5d24c453c5004d4a332ebc8bce89a0486f92a21c2d62d5019972c2c</hash>
|
<hash>a29093f3260f4f5a4c9bb40015c68aed2bf30664c16fade6df5035f8d97e736e</hash>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<file>mcc_generated_files\tmr2.c</file>
|
||||||
|
<hash>05c23c08bae910023f51fd801fa4b4107358a34dbad1624e66d9a30249d1fe86</hash>
|
||||||
</entry>
|
</entry>
|
||||||
<entry>
|
<entry>
|
||||||
<file>mcc_generated_files\adc.h</file>
|
<file>mcc_generated_files\adc.h</file>
|
||||||
<hash>58eb4471903133ed806f7edbfce9c3cc4e0af3536917c8f81ad1cbdb72d919fc</hash>
|
<hash>58eb4471903133ed806f7edbfce9c3cc4e0af3536917c8f81ad1cbdb72d919fc</hash>
|
||||||
</entry>
|
</entry>
|
||||||
<entry>
|
<entry>
|
||||||
<file>mcc_generated_files\mcc.c</file>
|
<file>mcc_generated_files\epwm1.h</file>
|
||||||
<hash>a08732cf19b1cf922560c2f4059da30321e0caa94c19d38cd6c26732222aeeb1</hash>
|
<hash>e1dacec839b43c4ec99f1710c3a7872ce32d2ea6dfe3856eb466e690b7ea75c9</hash>
|
||||||
</entry>
|
</entry>
|
||||||
<entry>
|
<entry>
|
||||||
<file>mcc_generated_files\pin_manager.c</file>
|
<file>mcc_generated_files\pin_manager.c</file>
|
||||||
<hash>8c45d058158c57513c2f1af63d52c6bacb178924403b99a5e2bf1fca5a787c79</hash>
|
<hash>f23627897b323c5e312c50538e92449a15673b1b943138129b8c0214ac47a4d4</hash>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<file>mcc_generated_files\epwm1.c</file>
|
||||||
|
<hash>db307f67f622483528ffff92c5560b35b38162e4f93d1659723c7276b7265601</hash>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<file>mcc_generated_files\adc.c</file>
|
||||||
|
<hash>62188981f98a350cfcc3227def37b9ded03569aedb061a1566fc3d03028da8f1</hash>
|
||||||
|
</entry>
|
||||||
|
<entry>
|
||||||
|
<file>mcc_generated_files\mcc.c</file>
|
||||||
|
<hash>eda682c043199d8627daf3584afc45a08bb3bb8526554f70c327ca6e3b587544</hash>
|
||||||
</entry>
|
</entry>
|
||||||
</generatedFileHashHistoryMap>
|
</generatedFileHashHistoryMap>
|
||||||
</config>
|
</config>
|
Reference in New Issue
Block a user