You are on page 1of 32

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

SEMICONDUCTORS

1 FT232BM U2 USB Converter


1 PIC16F628 U1 Preprogrammed Microcontroller
3 1N4148 D1, D2, D3 Diode
1 BC856B TR1 PNP Transistor
1 6MHz X1 Crystal
1 LED L1 Bi-Color

RESISTORS all 1206

2 27R R7, R8
1 470R R9
2 1K5 R3, R10
7 10K R4, R5, R6, R12, R14, R15, R16
1 22K R13
1 47K R11
1 56K R2
1 680K R1

CAPACITORS

2 22p C1, C2 1206 Ceramic


1 33N C8 1206 Ceramic
2 100N C6, C7 1206 Ceramic
2 1uF C3, C4 16V Electrolytic
1 10uF C5 50V Electrolytic

MISCELLANEOUS

1 Presoldered PCB PCB1


1 40 pin ZIF socket SKT1
1 18pin IC SOCKET
1 UT-5676 CN2 USB Connector
1 Plastic Box
1 2 3 4 5 6

D VCC D

R9
470R SKT1 R16
PROGRAMMER 10K
VPP 1 40 DATA VccP
2 39 CLOCK
C7 U2 3 38 GND
100N FT232BM R12 4
5
37
36
GND

GND 6 35 VccP

30

13
26
10K

3
VCC
R7 GND
GND
7
8
34
33
DATA
CLOCK
27R C8 GND 9 32 VccP

AVCC

VCC
VCC
VCC
USBP 10 31 GND
1
USBM VccP 11 30
2
USBP 33N GND 12 29
3
4
C6 7
USBDP TXD
25 UTX VccP 13 28 GND R14
USBM 8 24 URX 14 27 DATA
100N USBDM RXD
23 15 26 CLOCK 10K
RTS#
CN1 GND
R8 6
3V3OUT CTS#
22
21 MCLR GND
16
17
25
24 VccP

USB 27R XTAL 27


XTIN
DTR#
DSR#
20
R6 GND 18 23
19 GND 19 22 CLOCK
DCD#
RI#
18 10K GND 20 21 DATA
28
R10 XTOUT
GND 31
1K5 VCC 4
TEST
RESET#
R15
16
TXDEN
15 10K
PWREN#
32 14 GND
EECS PWRCTL
1 12
EESK TXLED#
2 11
EEDATA RXLED#
C C
5 10
RSTOUT# SLEEP#
GND

AGND

GND

GND
29

17
9
GND

TR1
D1 D2 D3
1N4148 1N4148 BC856B
1N4148
VCC VPP

R1
C3 C4 C5 680K

LEDA
1uF 1uF 10uF
B B

L1
U1 R11
14

R4 R2 PGM
16F628 R13 47K
10K 56K
VCC

MCLR 4
X1 MCLR 22K
16 6 DATA
6MHZ XTAL 15
OSC1
OSC2
RB0
RB1
7 UTX R3
8 URX
17
RA0
RB2
RB3
9 1K5

Vprg
GND 18 10 VccP
RA1 RB4

LEDK
1 11 CLOCK
C1 C2 2
RA2
RA3
RB5
RB6
12 LEDK
Vprg 3 13 LEDA
R5 22p 22p RA4 RB7
Gnd

10K
5

GND

A A

Title

Size Number Revision


C
Date: 31-Mar-2003 Sheet of
File: C:\DIYPRO~1\PROGRA~1\SCHEMS\K128.SCH
Drawn By:

1 2 3 4 5 6
FTDI Old Application Notes Page

This page no longer exists and will be redirected to the new FTDI Documents page in 5
seconds.

If you are not redirected automatically, click on the link below.

http://www.ftdichip.com/FTDocuments.htm

http://www.ftdichip.com/FTApp.htm [02/06/2007 18.48.50]


FTDI Documents

Home
Documents
Products
Our documents section is a central resource for data sheets,
Drivers
application notes, installation guides and programming guides.
Documents
Vinculum Documents Click on a link below to visit that section of our document library:
Application Notes

Articles ● Application Notes


Data Sheets ● Data Sheets
Materials Content ● Materials Content
Installation Guides ● Installation Guides
Programming Guides ● Programming Guides
Schematics ● Schematics
Solder Profiles ● Solder Profiles
Resources
Projects
Documentation on the Vinculum product range can be found on the
Vinculum web site.
Support
Knowledgebase
In addition, an Articles and Reviews page provides links to magazine
Sales Network
and website articles about FTDI products.
Web Shop
Design Services
Corporate
Press
FTDI Newsletter
Contact

http://www.ftdichip.com/FTDocuments.htm (1 di 2) [02/06/2007 18.48.52]


FTDI Documents

© Future Technology Devices International Ltd. 2007

http://www.ftdichip.com/FTDocuments.htm (2 di 2) [02/06/2007 18.48.52]


FTDI Data Sheets

Home
Data Sheets
Products
The table below lists the data sheets for FTDI devices. To view a
Drivers
data sheet, click on the document title. To save a copy of a data
Documents sheet, right-click on the document title and choose "Save Target
Vinculum Documents As...". Data sheets for Vinculum products will redirect you to the
Application Notes Vinculum web site where they can be saved from.
Articles

Data Sheets All of the data sheets are in PDF format and require Adobe Acrobat
Materials Content Reader to be installed before they can be viewed.
Installation Guides

Programming Guides

Schematics ICs Vinculum Modules FT232R Modules FT245R Modules


Solder Profiles FT2232 Modules FT232B Modules FT245B Modules
Resources
Projects
Support IC Data Sheets Revision

Knowledgebase Vinculum Embedded USB Host Controller IC Data Sheet 0.95


Sales Network
FT232R USB UART IC Data Sheet 1.04
Web Shop
FT245R USB FIFO Data Sheet 1.05
Design Services
Corporate FT2232D Dual USB UART/FIFO IC Data Sheet 0.91
Press FT2232L Dual USB UART/FIFO IC (Lead Free Package)
1.5
FTDI Newsletter Data Sheet
Contact
FT2232C Dual USB UART/FIFO IC Data Sheet 1.5

FT232BM USB UART IC Data Sheet 1.8

FT232BL USB UART IC (Lead Free Package) Data Sheet 1.8

FT232BQ USB UART IC (QFN-32 Lead Free Package)


1.8
Data Sheet

http://www.ftdichip.com/Documents/DataSheets.htm (1 di 4) [02/06/2007 18.49.09]


FTDI Data Sheets

FT245BM USB FIFO IC Data Sheet 1.7

FT245BL USB FIFO IC (Lead Free Package) Data Sheet 1.7

FT245BQ USB FIFO IC (QFN-32 Lead Free Package)


1.7
Data Sheet

FT8U232AM USB UART IC Data Sheet 0.8

FT8U245AM USB FIFO IC Data Sheet 0.9

FT8U100AX Multi-Function Hub Controller IC Data Sheet 0.9

Vinculum Module Data Sheets Revision

VDIP1 0.91
VDIP2 0.92
VDRIVE1 0.90
VDRIVE2 0.99
VF2F 0.91
VF2F2 0.90
VMUSIC1 0.90
VMUSIC2 0.98

FT232R Module Data Sheets Revision

DLP-D 1.1

DLP-PROP 1.0

DLP-RFID1 1.1

DLP-TEMP-G 2.0

DLP-TILT 1.1

DLP-TxRx-G 1.3

EVAL 232R 0.90

MM232R 1.00

TTL-232R 1.0

http://www.ftdichip.com/Documents/DataSheets.htm (2 di 4) [02/06/2007 18.49.09]


FTDI Data Sheets

TTL-232R-3V3 0.9

TTL-232R-AJ 1.0

TTL-232R-3V3-AJ 0.9

TTL-232R-PCB 1.0

TTL-232R-3V3-PCB 0.9

TTL-232R-WE 1.0

TTL-232R-3V3-WE 0.9

UB232R - NA -

UC232R-10 - NA -

UC232R-10-NE 0.9

UM232R 1.02

US232R-10 - NA -

US232R-100 - NA -

FT245R Module Data Sheets Revision

DLP-245PB-G 2.0

DLP-245PL-G 2.0

UM245R 1.02

FT2232 Module Data Sheets Revision

DLP-2232-DAQ -

DLP-2232M-G 1.4

DLP-2232ML 1.1

DLP-2232PB-G 1.5

Morph-IC 1.0

FT232B Module Data Sheets Revision

DLP-USB232M-G 1.5

DLP-PROTO 1.0

http://www.ftdichip.com/Documents/DataSheets.htm (3 di 4) [02/06/2007 18.49.09]


FTDI Data Sheets

DLP-TH1 1.0

DLP-TEMP9 1.0

FT245B Module Data Sheets Revision

DLP-USB245M-G 1.3

DLP-245PA 1.1

DLP-245SX 1.0

DLP-245SY 1.0

DLP-PROTO 1.0

DLP-EVALP 1.0

DLP-EVALS 1.0

DLP-RF1-Z 1.5

DLP-RF2-Z 1.8

DLP-RF2PROTO 1.0

DLP-RF2SENS 1.0

DLP-RF2RELAY 1.0

© Future Technology Devices International Ltd. 2007

http://www.ftdichip.com/Documents/DataSheets.htm (4 di 4) [02/06/2007 18.49.09]


http://www.ftdichip.com/Documents/DataSheets/DS_FT245BM.pdf

Documento protetto incorporato


Il file http://www.ftdichip.com/Documents/DataSheets/DS_FT245BM.pdf è un documento protetto
incorporato in questo documento. Fare doppio clic sulla puntina da disegno per visualizzare.

http://www.ftdichip.com/Documents/DataSheets/DS_FT245BM.pdf [02/06/2007 18.49.30]


FTDI Schematics

Home
Schematics & Footprints
Products
This section contains application schematics and footprints for FTDI
Drivers
devices. Schematics and footprints are available in a variety of
Documents formats, mainly OrCAD and PDF.
Vinculum Documents

Application Notes Debug and design guide documents are available for most devices
Articles through the Application Notes page.
Data Sheets

Materials Content To download a schematic, please click on the file title. Please note
Installation Guides that schematics relevant to older devices have been greyed out as
Programming Guides
these are not recommended for new designs, but are available for
reference.
Schematics

Solder Profiles

Resources
Relevant Devices Title Revision Formats
Projects
VNC1L - Vinculum VDIP1 Schematic 1.0 PDF
Support
Knowledgebase VNC1L - Vinculum VF2F Schematic 1.0 PDF
Sales Network VDRIVE1
VNC1L - Vinculum 1.0 PDF
Web Shop Schematic
Design Services
VNC1L - Vinculum VMUSIC1 1.0 PDF
Corporate
ChiPi PCB
Press FT232R 1.0 OrCAD
Gerbers
FTDI Newsletter
Contact FT232R ChiPi Schematic 1.1 PDF

FT232R FT232R Example 1.0 OrCAD, PDF

FT2232C
FT2232C 1.0 OrCAD, PDF
Examples

FT2232C USB - Dual RS232 1.0 OrCAD, PDF

http://www.ftdichip.com/Documents/Schematics.htm (1 di 3) [02/06/2007 18.50.07]


FTDI Schematics

FT232BM
FT232BM, FT232BL 2.0 OrCAD, PDF
Examples

FT245BM
FT245BM, FT245BL 2.0 OrCAD, PDF
Examples

FT232BM, FT232BL, FT232BM &


1.0 PDF
FT245BM, FT245BL FT245BM Pads

FT232BM &
FT232BM, FT232BL,
FT245BM 1.0 Protel99
FT245BM, FT245BL
Footprint

FT232BM,
FT232BM, FT232BL,
FT245BM,
FT245BM, FT245BL,
FT8U232AM & 1.0 Eagle Library
FT8U232AM,
FT8U245AM Eagle
FT8U245AM
Library

FT8U232AM USB - RS232 A 1.0 OrCAD, PDF

FT8U232AM USB - RS232 B 1.0 OrCAD, PDF

FT8U232AM USB - RS232 C 1.0 OrCAD, PDF

FT8U232AM USB - RS232 D 1.0 OrCAD, PDF

USB -
FT8U232AM 1.0 OrCAD, PDF
RS422/RS485

MCU Connection
FT8U232AM 1.0 OrCAD, PDF
Examples

FT8U245AM USB - 245 A 1.0 OrCAD, PDF

FT8U245AM USB - 245 B 1.0 OrCAD, PDF

FT8U100AX HUB2KM 1.0 OrCAD, PDF

FT8U100AX HUB4KMS 1.0 OrCAD, PDF

FT8U100AX HUB7KMS 1.0 OrCAD, PDF

FT8U100AX KMS 1.0 OrCAD, PDF

http://www.ftdichip.com/Documents/Schematics.htm (2 di 3) [02/06/2007 18.50.07]


FTDI Schematics

© Future Technology Devices International Ltd. 2007

http://www.ftdichip.com/Documents/Schematics.htm (3 di 3) [02/06/2007 18.50.07]


FTDI Materials Contents Sheets

Home
Solder Reflow Profiles
Products
The documents listed below provide the recommended solder reflow
Drivers
profiles for FTDI's devices. To view a data sheet, click on the
Documents document title. To save a copy of a document, right-click on the
Vinculum Documents document title and choose "Save Target As...".
Application Notes

Articles All of the data sheets are in PDF format and require Adobe Acrobat
Data Sheets Reader to be installed before they can be viewed.
Materials Content

Installation Guides FTDI lead free devices are compliant to EU directive 2002/95/EG
Programming Guides RoHS.

Schematics

Solder Profiles
Document Title RoHS
Resources
Projects FT2232L Solder Reflow
Yes
Support Profile
Knowledgebase FT232BL/FT245BL Solder
Yes
Sales Network Reflow Profile
Web Shop
FT232BQ/FT245BQ Solder
Design Services Yes
Reflow Profile
Corporate
FT232BM/FT245BM Solder
Press No
Reflow Profile
FTDI Newsletter
Contact

http://www.ftdichip.com/Documents/Solder.htm (1 di 2) [02/06/2007 18.50.49]


FTDI Materials Contents Sheets

© Future Technology Devices International Ltd. 2007

http://www.ftdichip.com/Documents/Solder.htm (2 di 2) [02/06/2007 18.50.49]


Future Technology Devices International Ltd.
373 Scotland Street
Glasgow G5 8QB
Scotland
United Kingdom

Telephone: +(44) 141 429 2777


Fax: +(44) 141 429 2758

www.ftdichip.com

FT2232L (Lead Free) IR Reflow Profile

© Future Technology Devices International Ltd. 2005


FTDI Old Drivers Page

This page no longer exists and will be redirected to the new FTDI Drivers page in 5 seconds.

If you are not redirected automatically, click on the link below.

http://www.ftdichip.com/FTDrivers.htm

http://www.ftdichip.com/FTDriver.htm [02/06/2007 18.53.00]


FTDI Drivers

Home
Drivers
Products
Drivers are available which allow FTDI devices to work with the following operating
Drivers systems:
VCP
● Windows XP x64
D2XX
● Windows Server 2003 x64
3rd Party Drivers
● Windows XP
Documents ● Windows Server 2003
Resources ● Windows 2000
● Windows ME
Projects
● Windows 98
Support ● Linux
Knowledgebase ● Mac OS X
● Mac OS 9
Sales Network ● Mac OS 8
Web Shop ● Windows CE.NET (Version 4.2 and greater)

Design Services
For most of these operating systems two types of driver are available: Virtual COM
Corporate
Port (VCP) drivers and direct (D2XX) drivers. The VCP driver emulates a standard
Press PC serial port such that the USB device may be communicated with as a standard
RS232 device. The D2XX driver allows direct access to a USB device via a DLL
FTDI Newsletter
interface.
Contact
To locate the drivers you want to install for a device, select which of the driver types
you wish to use (VCP or D2XX) and then locate the appropriate operating systems.
With the exception of Windows 98 and Windows ME, all devices are supported in
each driver package.

In addition to the drivers developed by FTDI, there are a number of


drivers available which have been developed by third parties. Some
of these drivers are listed on our 3rd Party Drivers page.

Customising Drivers

http://www.ftdichip.com/FTDrivers.htm (1 di 2) [02/06/2007 18.53.01]


FTDI Drivers

For customers wishing to create their own driver release, FTDI can
issue you with a block of 8 product IDs (PIDs) for use with FTDI's
vendor ID (VID) if you do not have your own vendor ID. This service
is free of charge, but the issued PIDs must only be used with FTDI's
VID (0x0403).

When requesting a PID block, please include the following


information:

● Name
● Company
● Country
● E-Mail address

Please note that implementing a custom VID and PID with standard
FTDI driver releases requires references to be changed in the INF
and INI files.

Similarly, if driver files are renamed all references to the driver files
in the INF and INI files must be amended to reflect the new names.

Changing any of the files in a Microsoft WHQL certified driver


release will invalidate the certification. Drivers can be customised
and the certification maintained through the Microsoft WinQual
reseller system.

© Future Technology Devices International Ltd. 2007

http://www.ftdichip.com/FTDrivers.htm (2 di 2) [02/06/2007 18.53.01]


FTDI Projects

Home
Projects
Products
This section of the web site provides example applications to assist
Drivers
in the development of your own code using FTDI's D2XX driver and
Documents FTD2XX.DLL.
Resources
Projects The examples are split into four sections.
Vinculum

FTDIChip-ID™ 1. Example projects using the Vinculum embedded USB host

MPSSE controller IC can be found on the Vinculum web site.

Code Examples
2. The FTDIChip-ID section provides examples on how the
unique number programmed into each FT232R and FT245R
Support
IC can be used for secure registration and licensing. The
Knowledgebase
FTDIChip-ID can also be used to provide a dongle feature at
Sales Network
the same time as providing the USB UART or USB FIFO
Web Shop
functionality.
Design Services 3. The MPSSE section deals specifically with the MPSSE mode
Corporate of the FT2232C device. Several examples are provided in
Press Delphi to demonstrate interfacing USB to popular serial
FTDI Newsletter protocols. In addition, DLLs have been created to simplify
Contact interfacing the FT2232C to I2C, JTAG and SPI devices.
These DLLs are available for download from the MPSSE
section and several code examples are also provided.
4. The Code Examples section contains more general examples
using the D2XX drivers and DLL and spans several
programming languages.

http://www.ftdichip.com/FTProjects.htm (1 di 2) [02/06/2007 18.53.28]


FTDI Projects

© Future Technology Devices International Ltd. 2007

http://www.ftdichip.com/FTProjects.htm (2 di 2) [02/06/2007 18.53.28]

You might also like