Вы находитесь на странице: 1из 5

Product Documentation DEVKIT44B

Modtronix Engineering
Modular Electronic Solutions
Development Kit
DEVKIT44B V1.4
1 Introduction
The DEVKIT44B Development Kit is a low cost development kit for learning how to use and program the PIC!"#$$%
microcontroller from &icrochip' The cost has (een kept as low as possi(le' This has (een achieved () using the Free *I+TEC* C
Compiler for PIC,-.-! &C/s 01ite mode23 and suppl)ing the PIC!"#$$% programmed with a Free (ootloader and re4uired
programming ca(les' This means that this development kit includes ever)thing re4uired for compiling the supplied demo programs
and programming the PIC!"#$$% with the generated he5 files'
The DEVKIT44B consists of the &odtroni5 6BC44B 0see www'modtroni5'com-products-s(c44(2 single (oard computer with the
DEV!T 0see www'modtroni5'com-products-dev!t2 1CD daughter (oard plugged onto it' The 6BC44B is assem(led with a
.,&*7 cr)stal and a PIC!"#$$% CP/' The PIC!"#$$% has (een programmed with the free (ootloader from
www'microchipc'com 0see www'microchipc'com-PIC!(ootload-inde5'php2' "or further details on the 6BC44B and DEV!T
(oards please refer to their respective datasheets which can (e found on the CD supplied with the DEVKIT44B or downloaded
from the a(ove mentioned we( sites'
&odtroni5 Engineering Page. 1
8e( Page9 www'modtroni5'com-products-devkit44(
Product Documentation DEVKIT44B
2 Installation
To compile the sample code delivered with the DEVKIT44B3 and program it via the (ootloader3 the following has to (e installed
on )our computer9
' Microchip MPLAB V#':: or greater 0includes free *I+TEC* C Compiler for PIC,-.-! &C/s + 1ite mode2' ;lder
versions will pro(a(l) also work3 (ut have not (een tested' % cop) is included on the CD supplied with the DEVKIT44B3 and
is in the <mpla(=v#::> folder' ?un <mpla(=v#::@Install=&P1%B=#=::'e5e> to install &P1%B' During installation when
asked if )ou also want to install the "ree *I+TEC* C Compiler3 select )es'
.' Modtronix DEVKIT44B' The CD supplied with the DEVKIT44B contains all source code3 documentation and related files'
%fter inserting the CD3 the setup program should start automaticall)' If not3 start is () e5ecuting <setup'e5e> on the CD' It will
guide )ou through the installation process for installing DEVKIT44B onto )our computer3 which consists of the source code3
documentation and a free (ootloader from www'microchipc'com 0see www'microchipc'com-PIC!(ootload- 2'
During the DEVKIT44B installation3 )ou would have (een asked for an installation <destination folder>' The default location is
<c9@modtroni5>3 and if left unchanged3 would have installed DEVKIT44B to <c9@modtroni5@devkit44(=v4,>' %ll future references
in this document will assume that DEVKIT44B has (een installed in this folder'
3 Structure
%fter installation3 the following folders will have (een created on )our computer' This assumes that the default <destination folder>
of <c9@modtroni5> was used'
C9@modtroni5@devkit44(=v4, ?oot folder' Contains uninst'e5e3 license file and some other files'
C9@modtroni5@devkit44(=v4,@(ootloader Contains (ootloader for programming (oard'
C9@modtroni5@devkit44(=v4,@demo Contains source code3 &P1%B proAect3 and &P1%B workspace'
C9@modtroni5@devkit44(=v4,@doc Documentation'
&odtroni5 Engineering Page. 2
8e( Page9 www'modtroni5'com-products-devkit44(
Product Documentation DEVKIT44B
4 Getting Started Guide
The DEVKIT44B consists out of a two individual (oards3 the
DEV!T 1CD daughter (oard3 and the 6BC44B single (oard
computer' The daughter (oard is plugged into the 6BC (oard as
shown in "igure (elow'
%t deliver)3 the 6BC44B 0the 6BC44B is the name of the
(ottom (oard2 is programmed with the Demo demo
application' ItBs he5 file is in the <demo> folder3 and is called
<s(c44(+demo=#$$a+.,'he5>' This section will guide )ou
through the steps involved in using the DEVKIT44B3
programming it and modif)ing and compiling the source code'
4.1 Applying power
The 6BC44B (oard has to (e powered with a $ C :DV DC3
.'mm power suppl) 0center possitive2' The input is diode
protected3 so if the polarit) of the power connector is wrong3
nothing will happen' %fter appl)ing power3 the 1EDs on the
6BC44B and DEV!T should flash3 and the 1CD displa)
should show9
M o d t r o n i x D E V 1 6 T
H i T e c h P I C C L i t e
The up and down arrow ke)s can (e used to scroll through the
menu'
4.2 Programming board
The PIC!"#$$% CP/ present on the 6BC44B (oard is
delivered with a (ootloader programmed onto it' % (ootloader is
a small program that ena(les the CP/ to (e reprogrammed via
itBs /6%?T' The 6BC44B has ?6.:. interface circuitr)3 which
ena(les the DEVKIT44B to connect to a standard 6erial
Communications Port3 like the serial port on a PC'
Connect one side of the included 6 Foot Sub-D female to Sub-D
female null modem cable to the 6u(+D connector on the
6BC44B (oard3 and the other end to a serial port of )our
computer' ;n )our computer3 start the installed (ootloader' It
can (e started via the start menu at
E6tart &enuFE&odtroni5 EngineeringFEDEVKIT44BF
E(ootloaderF3
or () e5ecuting the <PIC(ootPlus'e5e> program in the
<c9@modtroni5@devkit44(=v4,@(ootloader> folder'
In the (ootloader program3 configure the port for the port used
on )our computer' The B%/D rate of the (ootloader must (e
D!,,, and that of the terminal G!,,' 6elect the file )ou want to
program onto )our (oard 0use the supplied demo he5 file at
<C9@modtroni5@devkit44(=v4,@src@demo@demo=ht#$$'he5>2
and click the <8rite> (utton' The program will now wait for a
special character that is transmitted from the (ootloader on the
PIC chip after reset' 6o3 to program the PIC chip3 press the
<?E6ET> (utton on the DEV!T 1CD (oards' The (ootloader
should start programming the PIC3 and the progress (ar on the
(ootloader should now indicate the progress of the
programming3 and in a(out D seconds should show the message
<%ll ;KH> to indicate that the CP/ was successfull)
programmed' If not3 please ensure that the ca(le is correctl)
plugged in3 the B%/D rate is set to D!,,, and )ou have selected
the correct Port in the (ootloader'
4.3 Modifying the code
To modif) the code3 )ou must have &P1%B and the *I+TEC*
C Compiler installed on )our computer' 6ee the Installation
chapter a(ove for details'
6tart &P1%B3 and open the <s(c44(+demo'mcw> &P1%B
8orkspace' This is done via the E"ileFE;pen 8orkspaceF
menu3 and is located in the
<c9@modtroni5@devkit44(=v4,@demo> folder' The proAect will
(e opened in the proAect window in &P1%B' %ll files included
in the proAect will (e displa)ed in the proAect window' To edit a
file3 dou(le click on it' The main program for the Demo sample
program is contained in the <demo'c> file C open this file'
6croll down to line num(er 4:! to the line that reads9
lcdPutRomString
("\fModtronix DEV16T\nHiTech PI!ite""#
&odif) it to read9
lcdPutRomString("\f$%D&' M&te""#
Iow select the EProAectFEBuild %llF menu item from the menu
(ar' This will recompile the whole proAect3 and write the
generated he5 file to the
<c9@modtroni5@devkit44(=v4,@src@demo> folder'
Iow we have to program the new code into the PIC chip' To do
this3 switch (ack to the (ootloader program3 click on the <8rite>
(utton and press the <?E6ET> (utton on the DEVKIT44B
(oard' The PIC should now get reprogrammed3 and the 1CD
displa) should show the new message'
&odtroni5 Engineering Page. 3
8e( Page9 www'modtroni5'com-products-devkit44(
Figure 1
Product Documentation DEVKIT44B
5 Demo1 Sample Program
%ll source code for the Demo sample program3 and &P1%B
proAect files for compiling it with the *I+TEC* Compiler are
located in the <c9@modtroni5@devkit44(=v4,@demo> folder'
This demo shows how to do the following with the PIC'
Configure and use the PICBs Digital I-; Ports'
Configure and use the PICBs %-D Converter'
Configure and use the PICBs Timers'
Configure and use the PICBs /6%?T'
Configure and use the D6:,$ ?eal Time Clock'
Configure and use an e5ternal I.C EEP?;&'
Configure and use a standard 1CD displa)'
/se a (u77er'
6oftware (utton de(ounce routines'
%fter reset3 the 1CD Displa) will show9
M o d t r o n i x D E V 1 6 T
H i T e c h P I C C L i t e
The up and down arrow ke)s can (e used to navigate through
the availa(le menus3 which are9
5.1 Potentiometer Menu
The following menu will (e shown after pressing the down
arrow ke) once after reset9
P o t e n t i o m e t e r
V a l u e : 1 5 5
The shown value will (e the current %nalog input for PIC port
pin %.3 which is connected to the Potentiometer' B) adAusting
the potentiometer3 the shown value will (e change'
5.2 Buzzer one Menu
The following menu will (e shown after pressing the down
arrow ke) twice after reset9
B u z z e r T o n e
6 5 H z
The currentl) configured (u77er tone is shown' B) pressing the
;K (utton3 the following menu will (e displa)ed9
V a l u e ! 6 5 H z
P r e " " # $ D o r % &
B) pressing the up or down arrow ke)s3 the tone of the (u77er
can (e modified' Each time this is done3 the new tone will (e
sounded' 8hen done3 press the ;K (utton'
5.3 Analog !nput Menu
The following menu will (e shown after pressing the down
arrow ke) three times after reset9
' ( ' 1 '
( ( ( ( ( ( ( ( (
The values (elow %,3 % and %: will show the current analog
values for the corresponding %-D inputs of the PIC CP/' These
inputs are present on header J on the DEV!T (oard' B)
simpl) touching this header3 the values shown on the 1CD
displa) should change' Be sure to take proper E6D precautions
(efore touching the header3 or else the PIC chip can (e
damagedH
5.4 "#$ Menu
The following menu will (e shown after pressing the down
arrow ke) four times after reset9
L E D " r u n n i n ) a t
1 ( ( m " * e r i o d
This menu shows the period of the 1ED increment clock' B)
pressing the ;K (utton3 the following menu will (e displa)ed9
V a l u e ! 1 ( ( m "
P r e " " # $ D o r % &
B) pressing the up or down arrow ke)s3 the period can (e
modified' 8hen done3 press the ;K (utton'
5.5 %&A' Menu
The following menu will (e shown after pressing the down
arrow ke) five times after reset9
# + ' , T - . 6 ( (
% & ! + t a r t / ! E n d
8hen pressing the ;K ke)3 the 1CD displa) will act like a
simple terminal program'
Ever)thing received on the /6%?T will (e displa)ed on the
1CD displa)' The BootloaderBs (uilt in terminal 0(ottom half of
program2 can (e used to send characters via the PCBs serial port'
"or e5ample3 if <hello world> is t)ped into the Bootloader
terminal3 the 1CD displa) will show <*ello 8orld>
Pressing the up and down arrow ke)s on the DEV!T (oard will
send two simple strings out via the /6%?T' These strings will
(e displa)ed in the Bootloader terminal window'
B) pressing the BKB (utton3 the terminal program will (e e5ited'
&odtroni5 Engineering Page. 4
8e( Page9 www'modtroni5'com-products-devkit44(
Product Documentation DEVKIT44B
5.( $ate and ime Menu
The following menu will (e shown after pressing the down
arrow ke) five times after reset' Please note that this menu will
only work property if an D6:,$ chip is inserted in the ?TC
IC socket 0IC!2 of the 6BC 06BC44B 6ingle Board Computer2'
If not3 the time will not increment'
( 0 : 1 ( : ( ( % & ! + e t
( 1 1 ( 0 1 2 ( ( .
This menu shows the current date and time' B) pressing the ;K
(utton3 the following menu will (e displa)ed9
+ e t C l o c 3 :
4 % T I M P L E M E 4 T E D 5
6etting of the date and time has not (een implemented in the
code )et' Can (e done () user if re4uired' Pressing the K (utton
returns to the main Date and Time menu again'
5.) ##P'*M e+t Menu
The following menu will (e shown after pressing the down
arrow ke) si5 times after reset' Please note that this menu will
only work property if an I.C serial EEP?;& chip 0like
.41C.D!3 or .41C.#3 or .41C!43 or .41C''''2 is inserted in
the EEP?;& IC socket 0ICD2 of the 6BC 06BC44B 6ingle
Board Computer2' If not3 the test will fail'
P r e " " % & t o t e " t
e x t e r n a l E E P , % M
B) pressing the ;K (utton3 the following menu will (e
displa)ed9
P r e " " # P o r D 6 4
t o r u n a t e " t
B) pressing the up or down (utton3 random num(ers are written
to3 and read from the EEP?;&' The EEP?;& address is
incremented each time the up (utton is pressed3 and
decremented each time the down (utton is pressed' "or e5ample3
after pressing the up (utton once3 the following will (e displa)ed
on the 1CD'
' d r ! ( ( 1 / ! E 4 D
6 , ! ( . , D ! ( .
This indicates that the random test value 0,G: in this cast2 was
written to3 and read from EEP?;& address ,,' The value read
0?DL2 was the same as the value written 08?L23 indicating that
the test was successful' B) pressing the K (utton3 the menu will
return to the main EEP?;& test menu'
&odtroni5 Engineering Page. 5
8e( Page9 www'modtroni5'com-products-devkit44(

Вам также может понравиться