From: Nathael Pajani Date: Sat, 5 Nov 2022 00:34:16 +0000 (+0100) Subject: Update servomotor example README file according to code X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=593d482df935423f4bf635f083add6f417e21551;p=soft%2Flpc122x%2Fexamples Update servomotor example README file according to code --- diff --git a/servomotor/README b/servomotor/README index 8b6d9e3..de908c9 100644 --- a/servomotor/README +++ b/servomotor/README @@ -22,12 +22,12 @@ Copyright 2016 Nathael Pajani This example shows the support of PWM for servo-motor control. Servo-motor position is set by reading on ADC input 0. -The PWM signal is output on port 0 pin 19 (LPC_TIMER_32B0_M1_PIO_0_19), using -32 bits timer 0, match channel 1. +The PWM signal is output on port 0 pin 23 (LPC_TIMER_32B1_M0_PIO_0_23), using +32 bits timer 1, match channel 0. The duty cycle is defined at the beginning of the code using "DUTY_INVERTED". -Set to "1" to get an inverted duty-cycle signal, for use with a single transistor -or mosfet. -Set to "0" to get a non-inverted signal, for use with two transistors or mosfets, -or with none. +Set DUTY_INVERTED to "1" to get an inverted duty-cycle signal, for use with a +single transistor or mosfet. +Set DUTY_INVERTED to "0" to get a non-inverted signal, for use with two +transistors or mosfets, or with none.