Rev 2064 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | SVN | RSS feed
## Section act_hwPWM -- Do not edit this line#Uncomment the line below if you want to use EEPROM with this module, dont forget to also uncomment the line in sources.listact_hwPWM_USEEEPROM=1act_hwPWM_ID=<ID>act_hwPWM_STORE_VALUE_TIMEOUT=<TIMER>act_hwPWM_STORE_VALUE_TIMEOUT_TIME=10act_hwPWM_SEND_STATUS_TIMEOUT=<TIMER>act_hwPWM_SEND_STATUS_INTERVAL_S=5act_hwPWM_FADE_TIMER=<TIMER>act_hwPWM_ENABLE_FADE=1# Examples:# for channel 1 or 2:# COM=2, WGM= 5, CS=4# will give 120Hz PWM, adjust CS to change frequency# for channel 3 or 4:# COM=2, WGM= 1, CS=3# will give 240Hz PWM, adjust CS to change frequency#### PWM Channel 1, EXP_B, Timer1, OC1B ##### Select Compare Output Mode, act_hwPWM_CHx_COM# Set to 0 to disable this channel# See datasheet for more informationact_hwPWM_CH1_COM=0# Select Waveform Generation Mode, act_hwPWM_CHx_WGM# See table datasheet for informationact_hwPWM_CH1_WGM=1# Select Clock Prescaler, act_hwPWM_CHx_CS# 1 divide by 1 2 divide by 8# 3 divide by 32 4 divide by 64# 5 divide by 128 6 divide by 256# 7 divide by 1024# See datasheet for more informationact_hwPWM_CH1_CS=1# Set this to 1 to enable LED scaling on PWM outputact_hwPWM_CH1_LED=0#### PWM Channel 2, EXP_C, Timer1, OC1A ####act_hwPWM_CH2_COM=0act_hwPWM_CH2_WGM=1act_hwPWM_CH2_CS=1act_hwPWM_CH3_LED=0#### PWM Channel 3, EXP_F, Timer0, OC0A ####act_hwPWM_CH3_COM=0act_hwPWM_CH3_WGM=1act_hwPWM_CH3_CS=1act_hwPWM_CH3_LED=0#### PWM Channel 4, EXP_G, Timer0, OC0B ####act_hwPWM_CH4_COM=0act_hwPWM_CH4_WGM=1act_hwPWM_CH4_CS=1act_hwPWM_CH4_LED=0## End section act_hwPWM -- Do not edit this line