5.2 Mechanical Switch

The PIC32CM Px DIP-28 Curiosity Nano board has one mechanical switch - a generic, user-configurable switch. Pressing it connects the I/O pin to ground (GND).

Figure 5-2. PIC32CM Px DIP-28 Curiosity Nano SW0 Block Diagram
Tip: There is no externally connected pull-up resistor on the switch. Enable the internal pull-up resistor on Pin PA02 to use it.
Table 5-2. Mechanical Switch Connection
Device PinDescriptionDefault Connection
PA02User switch (SW0), supports DGI event monitoring