move pwm to mosfet 1
parent
eaf024a58a
commit
cd1c2bf1d2
|
@ -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…
Reference in New Issue