Solar panel
Loading...
Searching...
No Matches
epwm1.c File Reference
#include <xc.h>
#include "epwm1.h"

Go to the source code of this file.

Macros

#define PWM1_INITIALIZE_DUTY_VALUE   511
 

Functions

void EPWM1_Initialize (void)
 
void EPWM1_LoadDutyValue (uint16_t dutyValue)
 

Macro Definition Documentation

◆ PWM1_INITIALIZE_DUTY_VALUE

#define PWM1_INITIALIZE_DUTY_VALUE   511

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 Section: Included Files Section: Macro Declarations

Definition at line 58 of file epwm1.c.

Function Documentation

◆ EPWM1_Initialize()

void EPWM1_Initialize ( void  )

Section: EPWM Module APIs

Definition at line 64 of file epwm1.c.

◆ EPWM1_LoadDutyValue()

void EPWM1_LoadDutyValue ( uint16_t  dutyValue)

@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 uint16_t dutycycle;

EPWM1_Initialize(); EPWM1_LoadDutyValue(dutycycle);

Definition at line 85 of file epwm1.c.