MATSU-bed(LPC1549)でPWMを4つ以上出すプログラム
Dependents: servo_controller_1549
Diff: pwm_all_api.h
- Revision:
- 5:88243d59b4df
- Parent:
- 4:49ee58dc8e4d
--- a/pwm_all_api.h Sat Feb 17 07:23:48 2018 +0000 +++ b/pwm_all_api.h Mon Mar 12 08:50:47 2018 +0000 @@ -24,6 +24,38 @@ extern "C" { #endif +/* +SCT OUT setting +PIN | SCT +-------------------- +P0_0 | SCT0_OUT3 +P0_1 | SCT0_OUT4 +P0_2 | SCT1_OUT3 +P0_3 | SCT1_OUT3 +P0_4 | None (SPI_0) +P0_5 | SCT0_OUT0 +P0_6 | SCT2_OUT3 +P0_7 | SCT0_OUT1 +P0_8 | SCT0_OUT2 +P0_9 | SCT1_OUT0 +P0_10 | SCT1_OUT1 +P0_11 | SCT1_OUT2 +P0_12 | SCT2_OUT1 +P0_13 | SCT2_OUT2 +P0_14 | SCT1_OUT5 +P0_15 | SCT3_OUT3 +P0_16 | None (SPI_1) +P0_17 | SCT3_OUT1 +P0_18 | SCT0_OUT5 +P0_19 | SCT3_OUT2 +P0_20 | SCT1_OUT6 +P0_21 | None (RESET) +P0_22 | None (open drain i2c pin) +P0_23 | None (open drain i2c pin) +P0_24 | SCT0_OUT6 +P0_25 | SCT2_OUT0 +*/ + struct pwmout_sct { LPC_SCT0_Type* pwm; uint32_t pwm_ch;