M1 (PWM1 Duty Cycle)

This command applies to the XBee 3 Zigbee RF Module.

The duty cycle of the PWM1 line (Micro pin 8/SMT pin 8/TH pin 7).

If P1 (DIO11 Configuration) is configured as PWM1 output, you can configure the duty cycle of PWM1:

  1. Enable PWM1 output (P1 = 2).
  2. Change M1 to the desired value.
  3. Apply settings (use CN or AC).

The PWM period is 64 µs and there are 0x03FF (1023 decimal) steps within this period. When M0 = 0 (0% PWM), 0x01FF (50% PWM), 0x03FF (100% PWM), and so forth.

Parameter range

0 - 0x3FF

Default

0