ADVANCED TECHNIQUES FOR DESIGN ENGINEERS
SPI portal, I2C, comparators, timers, a PWM
engine, and a USART, it is not designed to support
large complex projects. The idea is to use the
E3mini hardware to build and code small projects
whose basic elements can be used to fabricate
much larger projects with PICs that contain larger
quantities of memory and GPIO resources.
The E3mini is supported by a companion book
(Embedded C Programming by Mark Siegesmund)
and a special single-device PIC18F14K50 C
compiler. The E3mini is geared towards Io T
application development. A couple of specialized
hardware add-on kits (E3mini Advanced Accessories
Kit and Sensor Explorer Kit) that directly support
the E3mini are also available from CCS.
You can get the wiring layouts of each of the
E3mini Advanced Accessories Kit components as a
PDF file from the CCS website ( www.ccsinfo.com).
There is also a PDF version of the E3mini
Exercise Book that comes as part of the
■ PHOTO 1. The E3mini is based on the low pin count
PIC18F14K50. The E3mini’s pushbuttons, potentiometer, LEDs, and
PIC18F14K50 C compiler. All of the Sensor
buzzer are connected as shown in Schematic 1.
Explorer Kit layouts and application instructions are
included in the Sensor Explorer for E3mini Exercise Book,
which is also installed as part of the PIC18F14K50 C
compiler package. You can find the PDF versions of the
aforementioned books in the datasheet’s folder.
The e3.h file is part of the single-device PIC18F14K50 C
compiler and sees the E3mini hardware GPIO
configuration in this way:
All of the projects for both accessory kits can be
assembled on a solderless breadboard. A solderless
breadboard is included with each kit. Interconnects
between the solderless breadboards, sensor devices, and
the E3mini are made using high quality jumpers, which are
also included as components of the accessory kits.
Rather than show each of the kit’s components here,
I’ll again point you at the CCS website. There you will find
all of the Sensor Explorer and E3mini Accessory kit details
The E3mini architecture can be viewed in its graphic
form in Schematic 1, while the three-dimensional version
of our E3mini is captured in Photo 1.
The key to utilizing the E3mini hardware lies in
including the e3.h file in your E3mini application code.
//// DEVKIT I/O CONFIGURATION
//// Pin Analog Port Description
//// ----- ----------- -------------------
//// RB4 AN10 Header pin 8
//// RB5 AN11 Header pin 7 (also
//// RB6 Header pin 6
//// RB7 Header pin 5 (also
//// RC0 AN4 Potentiometer,
header pin 16
//// RC1 AN5 Switch 1, header
pin 15 (also INT0)
//// RC2 AN6 Switch 2, header
pin 14 (also INT1)
//// RC3 AN7 Red LED, header
pin 13 (also INT2)
//// RC4 Yellow LED, header
//// RC5 Header pin 11
//// RC6 AN8 Green LED, header
//// RC7 AN9 Header pin 9
CCS C Compiler
#define RED_LED PIN_C3
#define YELLOW_LED PIN_C4
#define GREEN_LED PIN_C6
Sensor Explorer Kit
#define BUTTON_1 PIN_C1
#define BUTTON_2 PIN_C2
The e3.h file also sets up the USB run time definitions
and defines the PIC18F14K50 configuration fuse settings.
The bootloader memory extents are also defined within
the contents of the e3.h file.
The E3mini hardware design includes a piezo buzzer.
The E3mini’s buzzer can be driven by a PWM signal
February 2017 51