M0 (PWM0 Duty Cycle)
This command applies to the XBee Smart Modem.
Sets the duty cycle of PWM0 (pin 6) for P0 = 2, where a value of 0x200 is a 50% duty cycle.
Before setting the line as an output:
- Enable PWM0 output (P0 (DIO10/PWM0 Configuration) = 2).
- Apply the settings (use CN (Exit Command mode) or AC (Apply Changes)).
The PWM period is 42.62 µ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