Sungwoo Kim
/
HydraulicControlBoard_Rainbow_v1_2_copy
2011
Diff: setting.h
- Revision:
- 228:fb5b57e3f157
- Parent:
- 227:8ac5c6162bc1
- Child:
- 229:27eca07c9591
diff -r 8ac5c6162bc1 -r fb5b57e3f157 setting.h --- a/setting.h Fri Jul 30 06:04:10 2021 +0000 +++ b/setting.h Tue Apr 05 05:12:12 2022 +0000 @@ -6,11 +6,13 @@ #define PIN_W PB_6 //#define PWM_ARR 0x465 // loop 80k, pwm 40k //#define PWM_ARR 0x8CA // loop 40k, pwm 20k -#define PWM_ARR 0x1194 // loop 20k, pwm 10k +#define PWM_ARR 0x1194 // loop 20k, pwm 10k 원래이거 //#define PWM_ARR 0x2328 // loop 10k, pwm 5k -#define TMR3_COUNT 0x4650 // loop 5k -//#define TMR3_COUNT 0x2328 // loop 10k -#define TMR2_COUNT 0x2710 // loop 500hz with prescale 18 +//#define PWM_ARR 0xAFC8 // loop 2 k, pwm 1k + +#define TMR3_COUNT 0xAFC8 // loop 2 k, pwm 1k +//#define TMR2_COUNT 0x2710 // loop 500hz with prescale 18 +#define TMR2_COUNT 0x4650 // loop 5 k #define FREQ_500 500.0f #define FREQ_1k 1000.0f