Enabling PWM Module Removes PPS Mapping of the SDI2 in dsPIC33EP512MC202

Why does the SDI2 pin stop working when the SDI2 pin is mapped using PPS for SPI operation and PWM1 (mapped to RPIN47) is enabled?

The default value of the PWM register is ICONx bits 14 and 15. The default value of these bits is '1' which enables both PWML1 and PWMH1 pins as PWM pins. With these settings, PWMH1 overwrites the PPS configuration for RPIN47 (pin 22/SDI2). Map the SPI pin to a pad which is not used by an active peripheral.

© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.