Professional Documents
Culture Documents
Explorer-16 (2) : Jan Buiting & Luc Lemmens, in Cooperation With Microchip Technology & Labcenter Electronics
Explorer-16 (2) : Jan Buiting & Luc Lemmens, in Cooperation With Microchip Technology & Labcenter Electronics
Explorer-16 (2)
Jan Buiting & Luc Lemmens, in cooperation with Microchip Technology & Labcenter Electronics
Assuming the free Explorer-16 CD-ROM you got with last month’s issue was not mislaid, Ebayed off or
frisbeed out of the window we can continue with a look at the hardware to go with this article series
brought to you exclusively by Microchip, Labcenter and Elektor. Software is covered, too, by a Proteus
VSM simulation of audio signal processing. And finally there’s a super discount offer waiting for you.
Reset button
PIC/PIM selector
USB connector
Figure 1. The Explorer-16 board pictured from above.. Here, the PIC24FJ is shown inserted.
Good response was received to our ini- warded to, or dealt with directly, by ex-
tiative to supply a free CD-ROM with perts at Microchip and Labcenter.
the complete European print run of Ele-
ktor Electronics January 2007. Feedback
ranged from “nice to be able to run such
Explorer-16 Value Pack
a simulation of a complete microcontrol- Before moving on to the hardware we
ler board, all free of charge” and “ho-ho have on offer we should reiterate here
a free C compiler for high-end PICs” to that the Explorer-16 CD-ROM you got
“can’t wait to buy the Explorer-16 hard- for free with last month’s issue can be
ware”. Before we start with a look at used on its own for as much Proteus
the Explorer-16 Value Pack, there are VSM simulation, C language practising
some additions and extras to mention and PIC programming as you wish —
that come in the wake of publishing the all without the need to buy hardware.
PIC24FJ128 100-pin January 2007 instalment. In response to feedback to January’s
plug-in module (PIM) free CD-ROM we should stress that the
Proteus simulation tools in particular
Will not fit on a page or two do require a relatively fast PC so it’s
An immense amount of free documen- unwise to try running these on a 486
tation, including an introduction to machine or under Windows 98 — you
PICtail Plus expansion PIC24F programming, tutorials, da- will only frustrate yourself.
bus PCB edge tasheets, application notes, Power- There is a vast amount of permanently
connector Point presentations and a lot more has useful information behind the seem-
been compiled and gathered for you ingly simple opening menu on the CD
on the Explorer-16 page of our web- — the information that’s free from Mi-
PICkit 2 Programmer site. You’ll find it at www.elektor-elec- crochip and Labcenter websites would
connector tronics.co.uk/explorer-16. This page is take you a long time to locate and col-
only accessible to registered users — a lect even on a broadband internet con-
login screen will be shown. nection. The special release of Proteus
At the time of writing, some ten down- VSM with the PIC24F simulation mod-
loads are available that tell more ule cannot be found anywhere in this
Serial EEPROM
about Explorer-16 and the PIC24F de- form as it was specially made by Lab-
vice than can be printed in this entire center Electronics for Elektor readers.
magazine. The video presentation by The Explorer-16 Value Pack, then, rep-
Don Schneider is highly recommended. resents great value for money as you
PICtail Plus expansion The presentation comes as a Windows can check for yourself using the two
bus connector
(optional) Media File (wmf) with a size of about insets. It is only available from Ele-
40 MB. A ‘still’ version in the form of a ktor Electronics at a special discount-
pdf is also available and takes much ed price. Ordering details for the pack
less space. may be found on the SHOP pages of
Besides this Aladdin’s Cave of free our website. So, what’s in the pack?
software and documentation for PIC
enthusiasts (in particular the 24F de-
vices) we are running a dedicated Ex-
Explorer-16 Demo Board
plorer-16 topic on our online Forum. This is the main component of the Ex-
Questions the authors are unable to plorer-16 Value Pack. An attempt at
answer (but give us a try) will be for- ‘functional dissection by component’
The output of the temp sensor will vary process, a virtual voltmeter has been
exactly as per the datasheet specifi- attached to the output of the temp sen-
Running the Demo
cations and can then be read by the sor. This should allow you to determine The code should run out of the box
PIC24F ADC. This capability allows the if the values being referenced in code within ISIS as the PIC24F will be point-
designer to perform operations such for a given ADC reading are meaning- ed at the .cof file in the design direc-
as limit checking of code, response to ful relative to the set temperature and tory. To use the design with MPLAB®
expected ADC value and many other expected sensor output value. a build operation may be required.
MPLAB will prompt if this is the case.
The Audio Analysis graph will allow
you to record and listen to the output of
the design. The analysis is performed
as a batch process and the Spice calcu-
lations are performed based on a com-
puted output from the PIC24F. This
allows the VSM simulation engine to
perform a mixed-signal analysis and
offer such features as the audio analy-
sis capability.
The operation of the graphical simula-
tion is largely the same regardless of the
design being open within the Proteus
ISIS schematic capture package, or the
Proteus VSM window within MPLAB.
The basic operation is to ensure the
interactive switch is in the correct po-
sition for the signal source required,
move the cursor over the Audio Analy-
sis graph in the schematic and either
press the space bar or right click and
select Simulate Graph. The simulation
engine should then run. If successful,
the speech output for the set tempera-
ture (in degrees) should be seen as an
audio waveform. To listen to the out-
put again you can press CTRL-space or
Figure 9. Audio Analysis window maximised. right click and select Play Audio.
However, keep in mind that Proteus is quency Response can be performed. If if the values for the sensor and ADC
a view window within MPLAB — see the green button is pressed, a link to are correct and take the necessary
Figure 10. Whilst the functionality is VSM is formed to allow the real time action. This operation is significantly
similar to that of the actual schemat- simulation of code and system to be simpler than trying to accurately time
ic environment, some operations, such performed. This will then make the external instruments with debug tools
as placing components, cannot be per- standard simulation buttons in MPLAB to achieve the same net result.
formed since these are better suited to active, keeping the process of simula-
the schematic capture package. How- tion and debug seamless across all of
ever, it is still possible to modify com- the debug tools, both hardware and
Conclusion, outlook
ponent properties and add items such software. The above descriptions are aimed
as virtual instruments and hook these You can now: at providing an insight into the Au-
up whilst in the viewer. Batch simula- • add a breakpoint on an ADC event; dio PICtail and the MPLAB and VSM
tion operations can also be performed, • add a Watch window to view the val- Viewer tools. Whilst being relative-
so it’s easy to make ly brief and covering
a code modification, a lot of ground they
build the source code should serve to intro-
tree and then move The video presentation by duce a few basic con-
to the viewer and run cepts and operations
an audio analysis us- Don Schneider is highly recommended. prior to simply trying
ing the same actions things out.
as would be used in In Part 3 of the series
the schematic capture tool. ue held in the ADC result register; we’ll look at interfacing mass storage
The viewer can operate in effective- • view the set temperature on the cards and revert to our speaking ther-
ly two modes. To run a batch opera- temp sensor; mometer, this time in hardware.
tion, the viewer needs to be opened. • view the output voltage of the temp Join our online Forum topic on the Ex-
Do this: Debugger → Select Tools → sensor. plorer-16 series and tell us how you get
Proteus VSM. along.
As shown in Figure 11, this will open In other words, correlate all the ele- (060280-II)
the viewer window and will show the ments and functions as illustrated in
status of the connection to the VSM Figure 12. How does this speed up
Simulation engine in the toolbar. In this things? Well, as can be seen we can Updates, extensions and downloads for this article series are
case the green button indicates that now very quickly determine that 20 posted at www.elektor-electronics.co.uk/explorer-16
the connection is yet to be made. How- degrees C is an output voltage of 0.7 V
ever it is in this mode that the batch which results in a ADC reading of TM © All trademarks and copyrights of Microchip and
simulations for Audio Analysis and Fre- 0x00D9. We can also quickly determine Labcenter Electronics acknowledged