The intervals after which the duty cycle is updated for the PIO_MOTOR * signal, in microseconds. * * Setting it to (NUMBER_OF_STEPS/32768) seconds would change the duty cycle * after one complete pulse cycle, since each cycle consists of as many steps * as NUMBER_OF_STEPS and each step takes (1/32768) seconds. */The total number of steps when incrementing the duty cycle. This value * has range 1 to 255. It determines the frequency (or time period) * of the PWM waveform generated; lower the value higher the frequency */ Initialise UART communications /* Pulse timings for the dullest part of the sequence: * dullest part of the sequence has the pulse off for the whole * period, in effect the line stays low for the duration for which * the dullest part of the sequence lasts. */ 0, /* ON time for the pulse is 0us */ 255, /* OFF time for the pulse is (255 * 30)us */ 62, /* Dullest part of the sequence lasts for ( 62 * 16 )ms before ramping up to the brightest part of the sequence */ /* Pulse timings for the brightest part of the sequence: * brightest part of the sequence has the pulse ON for the whole * period, in effect the line stays high for the duration for which * the brightest part of the sequence lasts. */ 255, /* ON time for the pulse is (255 * 30)us */ 0, /* OFF time for the pulse is 0us */ 62, /* Brightest part of the sequence lasts for ( 62 * 16 )ms before ramping down to the dullest part of the sequence */ /* Ramping between dullest and brightest parts of the sequence * This parameter determines the duration for which the ramping * lasts when going from dullest to the brightest (and vice-versa). * * The total duration for which the ramping lasts is determined by * multiplying this value with one less than the difference between * the on_time or off_time of the two states, whichever is bigger; * in the units of 30us * */ 132 /* Ramping lasts for ((255-1) * 132 * 30)us */
đang được dịch, vui lòng đợi..
