4.3 Mechanical Switch

The PIC16F17576 Curiosity Nano board has one mechanical switch, a generic user-configurable switch. Pressing it will connect the I/O pin to ground (GND).

Figure 4-4. PIC16F17576 Curiosity Nano SW0 Block Diagram
Tip: No external pull-up resistor is connected to the switch. To use it, enable the internal pull-up resistor on Pin RA7.
Note: By default, the RA7 pin on the PIC16F17576 is configured to be used as an external clock pin. Change the configuration bits to disable the external oscillator to use this pin as regular a GPIO.
Table 4-3. Mechanical Switch Connection
PIC16F17576 PinDescriptionShared Functionality
RA7User switch (SW0)Edge connector, On-board debugger