k128

k128
K128
USB
PICmicro®
Programmer
DIY Electronics (HK) Ltd
PO Box 88458,
Sham Shui Po,
Hong Kong
http://www.kitsrus.com
mailto: peter@kitsrus.com
Last Modified March 31 2003
Board Construction
The board is quite easy to construct but it is advisable to read through these
notes before starting. The USB chip and all other surface mount components
have been premounted to make construction easier.
WARNING
Be aware that the USB chip is sensitive to static electricity discharge and could
be damaged by mishandling of the PCB. Be careful with the board and avoid
touching any of the tracks or pads while assembling it. Try to handle it only by
the edges.
The other chip in this kit is also sensitive to static discharge. This is the
PIC16F628. Do not touch the pins and only handle it by the ends. A socket is
supplied to allow for upgrades and easy assembly.
Starting
The first thing to do is inspect the PCB for shorted or open tracks or other
damage, especially to the premounted components. Be aware of the static
warning when doing this check. When you are satisfied that all is well, then you
can proceed.
ALL COMPONENTS EXCEPT FOR THE LED AND ZIF SOCKET MOUNT ON
THE BOTTOM SIDE OF THE PCB.
Start by mounting the 6MHz crystal. Before soldering it, make sure there is a
small gap (~ 1mm) between it and the PCB. This is to keep the metal can of the
component from shorting its own mounting pads.
Next, mount the 18 pin IC socket for the PIC16F628 chip. The indented end
faces towards the USB chip. When placing the socket, make sure the pins are
flush with the top of the PCB surface and not protruding above it before
soldering.
Before soldering the USB connector, trim the 4 connector pins and the two
support pins so that these leads are flush with the PCB top surface when
inserted into the PCB.
The pins for the above two components have to be made flush with the PCB top
surface otherwise the extra pin lengths won’t allow the ZIF socket to sit flat on
the PCB surface.
Next, mount all the electrolytic capacitors. These are polarity sensitive
components so make sure they are mounted properly. The positive lead is longer
than the negative lead, and the negative lead is also marked on the side of the
capacitor. On the PCB overlay, there are holes marked [+] as the positive lead
for each of these components. There are 2 x 1uF and 1 x 10uF capacitors so
please try not to get them mixed up. See the PCB overlay for the correct
mounting positions.
There is one LED that can be mounted next. Make sure it
are oriented correctly and is mounted from the TOP PCB
side. The anode (A) is marked on the PCB and is the longer
of the two leads on the component. The Cathode has a flat
surface on the LED body and is also marked on the board
as (K).
Very carefully check your work at this stage, as the next part to mount is the ZIF
socket. After mounting, this component hides a lot of soldered connections and
will make error corrections very difficult. Inspect the board for dry or unsoldered
joints and check all components for correct orientation and placement.
Now insert the preprogrammed PIC16F628 into its socket. Pin 1 is towards the
USB socket. The finished board should look like the images shown here.
This completes the construction phase.
USB Drivers
To enable USB capability for your PC and this project you will need to install a
special driver. This is a piece of software that handles the communications
between the PC and the special USB chip on the programmer PCB.
Create a USB driver sub directory into the directory where your programmer
software was installed. C:\diyprog was the default. Therefore you would have
a new directory called C:\diyprog\usb.
The drivers come in 2 flavours, plug and play support and no plug and play
support. As this programmer does not have plug and play support, that narrows it
down to 1 choice.
You will need to visit this web page and download this driver.
VCP drivers for Win 98/2000/ME/XP (without PNP support)
http://www.ftdichip.com/FTDriver.htm
Download and unzip the file into the newly created USB directory.
Now visit this other web page and download the PDF application note that
describes how to install the driver for your particular system.
http://www.ftdichip.com/FTApp.htm
For example you would download...
AN232-03 for Win 98
AN232-05 for Win2000
Download the PDF file into the USB driver directory listed above.
Open and follow the simple directions given in the PDF file. This should only take
a few minutes to do.
When the driver installation is completed, connect a USB cable from the PC to
the programmer board. This will power the board.
At this stage you may get a message from Windows saying that it has found new
hardware.
Also the LED should flash on and change colors briefly.
If not, monitor and check the PCB components and make sure nothing gets too
hot. If the PIC gets too hot to touch, disconnect the USB cable immediately as
the PIC is most likely inserted the wrong way around. If this is the case, then
they are quite tough little chips and it may have survived. Insert it the correct way
and re-connect the USB cable. If the LED flashed as described earlier then it
should be ok.
Disconnect the cable and insert the PCB into the mounting box provided with the
kit. The PCB will be a nice snug fit and no screws should be necessary to hold it
in place.
Now run MicroPro.exe which is the Windows® driver interface supplied with the
kit.
Click [File] -> Port or double click the COM x label on screen to bring up
the COM port window. Select the COM port that you selected for use for USB
communications while installing the driver, then OK. If you don’t know what port it
is connected to, click on
START - > Settings -> Control Panel.
Then double click System.
Look for the Device Manager and go to Ports (COM & LPT).
You will see COM x listed next to the USB label. X will be the COM port number
for you to select in the MicroPro program.
The PC may take a short while to establish communications with the USB port.
When it has done so, the COM port number will appear on screen and the
programmer is ready for use on the USB port.
From MicroPro, make sure that Kit 128 is selected by clicking on
FILE -> Programmer Style -> K128.
If all is well, as a simple system test, click on
OPTIONS -> Reset Programmer
You should see the LED change color, then stay red. You should also see
Board Connected appear on the MicroPro message bar.
Now select 16F84 from the chip select menu and click on Read. You should see
the LED change to green while the programmer reads from a non existant chip.
The screen will most likely fill with 0000's or 3FFF’s.
Your new programmer is now ready for use.
When using the USB interface, always connect the
programmer to the PCB before starting MicroPro.exe,
and close MicroPro before disconnecting the
programmer.
Failure to use this power up - power down sequence
may result in a stalled PC for a minute or so because of
the non responding USB port.
PARTS LIST
Used
Part Type
Designators
Description
U2
U1
D1, D2, D3
TR1
X1
L1
USB Converter
Preprogrammed Microcontroller
Diode
PNP Transistor
Crystal
Bi-Color
SEMICONDUCTORS
1
1
3
1
1
1
FT232BM
PIC16F628
1N4148
BC856B
6MHz
LED
RESISTORS all 1206
2
1
2
7
1
1
1
1
27R
470R
1K5
10K
22K
47K
56K
680K
R7, R8
R9
R3, R10
R4, R5, R6, R12, R14, R15, R16
R13
R11
R2
R1
CAPACITORS
2
1
2
2
1
22p
33N
100N
1uF
10uF
C1, C2
C8
C6, C7
C3, C4
C5
1206 Ceramic
1206 Ceramic
1206 Ceramic
16V Electrolytic
50V Electrolytic
MISCELLANEOUS
1
1
1
1
1
Presoldered PCB
40 pin ZIF socket
18pin IC SOCKET
UT-5676
Plastic Box
PCB1
SKT1
CN2
USB Connector
1
2
3
4
D
5
6
D
VCC
R9
470R
SKT1
PROGRAMMER
VPP
C7
100N
R8
27R
GND
CN1
USB
XTAL
27
28
R10
1K5
3
13
26
30
6
GND
VCC
31
4
32
1
2
C
USBDP
USBDM
TXD
RXD
RTS#
CTS#
DTR#
DSR#
DCD#
RI#
3V3OUT
XTIN
25
24
23
22
21
20
19
18
VccP
GND
VccP
UTX
URX
MCLR
GND
GND
GND
GND
R6
10K
VccP
VccP
DATA
CLOCK
VccP
GND
R14
10K
GND
DATA
CLOCK
VccP
CLOCK
DATA
XTOUT
TEST
RESET#
EECS
EESK
EEDATA
TXDEN
PWREN#
PWRCTL
TXLED#
RXLED#
RSTOUT#
SLEEP#
29
AGND
5
GND
GND
VCC
VCC
VCC
AVCC
7
8
USBM
GND
R16
10K
DATA
CLOCK
GND
GND
16
15
14
12
11
R15
10K
GND
C
10
GND
GND
C6
100N
GND
USBM
USBP
GND
C8
33N
9
1
2
3
4
USBP
R12
10K
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
17
R7
27R
VCC
U2
FT232BM
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
GND
D1
1N4148
D2
1N4148
TR1
BC856B
D3
1N4148
VCC
VPP
C4
1uF
C5
10uF
LEDA
C3
1uF
R1
680K
B
U1
16F628
14
16
15
XTAL
Vprg
RA0
RA1
RA2
RA3
RA4
RB0
RB1
RB2
RB3
RB4
RB5
RB6
RB7
6
7
8
9
10
11
12
13
R11
47K
DATA
UTX
URX
R3
1K5
VccP
CLOCK
LEDK
LEDA
5
C2
22p
OSC1
OSC2
R2
56K
R13
22K
LEDK
C1
22p
17
18
1
2
3
MCLR
Vprg
GND
R5
10K
4
VCC
MCLR
X1
6MHZ
Gnd
R4
10K
B
L1
PGM
GND
A
A
Title
Size
Number
Revision
C
Date:
File:
1
2
3
4
5
31-Mar-2003
Sheet of
C:\DIYPRO~1\PROGRA~1\SCHEMS\K128.SCH
Drawn By:
6
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertising