M0 (PWM0 Duty Cycle)

This command applies to the XBee 3 802.15.4 RF Module.

The duty cycle of the PWM0 line.

If IA (I/O Input Address) is set correctly and P0 (DIO10/RSSI/PWM0 Configuration) is configured as PWM0 output, incoming AD0 samples automatically modify the PWM0 value. See PT (PWM Output Timeout).

To configure the duty cycle of PWM0:

  1. Enable PWM0 output (P0 = 2).
  2. Change M0 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