M1 (PWM1 Duty Cycle)

This command applies to the XBee 3 802.15.4 RF Module.

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

To 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