move pwm to mosfet 1

master
Yorick van Pelt 2019-01-12 16:04:32 +01:00
parent eaf024a58a
commit cd1c2bf1d2
Signed by: yorick
GPG Key ID: D8D3CC6D951384DE
1 changed files with 2 additions and 3 deletions

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) {