| Electronic Components Datasheet Search |
|
ESP8266 Datasheet(PDF) 100 Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. |
|
|
|||||||||||||||||||||||||||||
ESP8266 Datasheet(HTML) 100 Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. |
|
100 / 117 page ![]() ! 12. PWM Interface 3. pwm_set_duty 4. pwm_get_period 5. pwm_get_duty Sample code pwm_set_period (uint32 period) Description Set PWM period, unit: μs. For example, PWM period at 1KHz is1000 μs. Parameters uint32 period: PWM period. Call Call pwm_start() after the parameters has been set. Returned Value Null Function Name pwm_set_duty Definition Set the duty ratio of PWM signal at a certain channel Sample code pwm_set_duty (uint32 duty, uint8 channel) Description Set PWM duty ratio. Set the time period of PWM signal when the voltage is high. The value of duty ratio change with PWM period. PWM duty ratio can reach period*1000/45 at most. For example, the range of duty ratio is between 0 and 22222 at 1kHz refresh rate. Parameters • uint32 duty: set the time parameter when the voltage is high. Duty ratio is (duty*45)/ (period*1000). • uint8 channel: PWM channel that needs to be set at present. This parameter is defined in PWM_CHANNEL. Call Call pwm_start() after the parameters has been set. Returned Value Null Function Name pwm_get_period Description Get the current PWM period. Sample code pwm_get_period (void) Description None. Returned Value PWM period, unit: μs. Function Name pwm_get_duty Description Get the duty ratio of current PWM signal at a certain channel. Sample code pwm_get_duty (uint8 channel) Parameter uint8 channel: get the current PWM channel. This parameter is defined in PWM_CHANNEL. Espressif ! /! 92 104 2017.05 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |