Browse Source

move pwm to mosfet 1

master
Yorick van Pelt 1 year ago
parent
commit
cd1c2bf1d2
Signed by: yorick <yorick@yorickvanpelt.nl> GPG Key ID: D8D3CC6D951384DE
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      src/blink_led.c

+ 2
- 3
src/blink_led.c View File

@@ -10,8 +10,7 @@
// The rest of fuses are left as default.
__code uint16_t __at (_CONFIG1) __configword = _FOSC_INTOSC & _CLKOUTEN_OFF & _WDTE_OFF & _BOREN_ON & _CP_OFF;

#define LED_PORT PORTCbits.RC5
#define LED_TRIS TRISCbits.TRISC5
#define LED_PORT PORTAbits.RA5

// board layout:
// mosfets clockwise from power feed:
@@ -61,7 +60,7 @@ void main(void)
PWM1OFCON = 0x00; // independent run mode
PWM1CON = 0x80; // enable, standard PWM mode, active high output

RC5PPS = PPSO_PWM1;
RA5PPS = PPSO_PWM1;


while(1) {


Loading…
Cancel
Save