around the JDM programmer with
some modifications. The assembled
programmer is shown in Figure 4.
This kit makes a great soldering
project for the student that will later
serve as the main programming tool
for using blank PICs in place of the
BS1 board. You don’t have to rely
on this particular kit either. There
are other JDM style programmers
available from various sources,
including many different versions
offered on eBay.
In order to use the JDM
programmer, you need software for
your computer to send the PICBASIC
Pro created file to the PIC microcontroller. There are a few choices
available but our choice is the WINPIC
software that can be downloaded for
free from www.qsl.net/dl4yhf/
winpicpr.html. This software worked
the best with the MicroCode Studio
IDE based on limited testing. The
setup in MicroCode Studio is very easy
also, so the user can create that one
click compile/program feature.
When MicroCode Studio is
running, you set up the winpic.exe
software by clicking on the menu
option; View —> Compiler and
Programmer Options to get the
window in Figure 5. Next you have to
click on the “Programmer” tab to add
a new programmer. You will see the
window in Figure 6 appear. Select
the “Create custom program entry”
and click Next.
The “Add New Programmer”
window will then pop up (Figure 7).
This is where you enter the name you
want to describe the programmer.
I chose “winpic” in this example to
match the software being used but
FIGURE 4. JDM EZPIC Programmer
you can name it EZPIC or anything
else you desire. After that, you click
Next to move on. The window in
Figure 8 is where you enter the
executable file name for the
programmer. This time, you have to
enter “winpic.exe.” Once again, click
Next to move on.
The window in Figure 9 will
appear and this is where you tell
MicroCode Studio where to find the
winpic.exe software on your computer.
I suggest you click on the “Find
Automatically” button to allow
MicroCode Studio software to find it.
Or, you can click on “Find Manually”
if you know exactly where you put
the file. Finally, the next window in
Figure 10 is where we enter the setup
parameters for the WINPIC software
to automatically read the device and
program the PIC when you click on
the compile&program button in
MicroCode Studio. Set it up with the
following line “
/device=PIC$target-device$ $hex-filename$ /p /q= 5.”
(Note the whole line doesn’t show
up in Figure 10).
These steps we’ve covered will
allow you to write the software and
program the microcontroller, but now
we need to select that microcontroller.
For the microcontroller, I
recommended the PIC16F690 mainly
because it has all the features you
FIGURE 5. Compile and Program
FIGURE 6. Add New Programmer Window.
could want in a PIC microcontroller
and it’s supported by the sample
version of PICBASIC Pro. The part can
handle a lot more than the 31
command limit with its 7K byte
program memory, but it’s a common
part that is easy to find on eBay,
Mouser, or even get a few free
samples from www.sample.
microchip.com. I recommended the
DIP version which is part number
There are many free code
examples included with the PICBASIC
Pro sample version. You need to
modify some of those sample
programs though, to use them with
the PIC16F690. I’ll show you what I
mean in the sample code covered
here. The PIC16F690 has an internal
oscillator and also an internal MCLR
pin pull-up resistor so all you need is
FIGURE 7. Add New Programmer Window. FIGURE 8. Programmer Executable Window. FIGURE 9. Programmer Path Window.
SERVO 08.2008 69