■ Screenshot 3. This panel enables you to completely set
up your GPIO configuration. Everything we need to
configure and identify the PIC’s I/O pins is here.
■ Photo 5. When I want to repurpose this Curiosity
development board, all I have to do is pull the male
headers and untack the connections on the RN4020 pads.
Note the absence of the RTS and CTS connections.
yourself, your circuit boards, and your electronics from
destructive soldering and unsoldering operations. Wire
wrap techniques also allow very easy “redos” and
changes. Take a look at Photo 5. I’ve inserted a pair of
standard 0.1” headers into the PIC’s female GPIO
headers. The exposed male header posts are used as wire
wrap points. The other ends of the wire wrap wires are
tacked to the RN4020 header pads per Schematic 1.
Screenshot 4 is promising. Let’s delve into the
Configurator-generated mcc.c file:
Does It Work
Don’t know yet. Let’s click the Code Configurator’s
Generate Code button and see what transpires. We
should at a minimum get some configuration fuse
statements, some EUSART setup, macro, and interrupt
code, and some GPIO macros.
// CONFIG1
#pragma config IESO = OFF
// Internal/External Switch Over->Internal
// External Switch Over mode is disabled
#pragma config BOREN = OFF
// Brown-out Reset Enable->Brown-out Reset
// disabled
#pragma config PWRTE = OFF
// Power-up Timer Enable->PWRT disabled
#pragma config FOSC = INTOSC
// Oscillator Selection Bits->INTOSC
// oscillator: I/O function on CLKIN pin
#pragma config FCMEN = OFF
// Fail-Safe Clock Monitor Enable->Fail-Safe
// Clock Monitor is disabled
#pragma config MCLRE = ON
■ Schematic 1. The RN4020 doesn’t need much when it
comes to support at its interface. The RTS and CTS lines
are optional. The GRN LED and its current-limiting resistor
are actually on the Curiosity development board.
December 2015 57