Rev 333 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
#include "DEFINES.h"#include "IOC.h"#include "PWM.h"void IOC_Init() {// Enable global IOC interruptINTCONbits.IOCIE = 1;IOC_TRIS = 1;// Enable IOC on rising edge onlyIOC_IOCAP = 0;IOC_IOCAN = 1;}void IOC_Interrupt_Handler() {// Transmit the saved patternif (IOC_IOCAF)PWM_Transmit_Pattern();// Clear all status flagsIOC_IOCAF = 0;}