Megaprogrammer MC68HC908GP32: by Patrick Carlier
Megaprogrammer MC68HC908GP32: by Patrick Carlier
MC68HC908GP32
By Patrick Carlier
2/17
TABLE OF CONTENTS
1) INTRODUCTION...................................................................... 3
2) DISCLAIMER........................................................................... 3
3) CREDITS ................................................................................. 3
5) ASSEMBLY ............................................................................. 4
Section 1 : Pwr section ................................................................................. 4
6) ATTATCHMENTS...................................................................17
A. Ordering stuff.........................................................................................17
B. Schematic
C. PCB layout
D. Silkscreen
1) INTRODUCTION
2) DISCLAIMER
This project is provided as it is . Great care has been taken in designing the circuit ,
the pcb and writing this manual . Sofar it has been buid by a number of persons and
tested with succes on a various computers , including an 1.8Ghz computer with the
latest P&E software . However the designer of this unit will not assume any
responsability for hasards that came from using this unit .
Under no circumstances must it be used for devices that are related to life support
systems .
3) CREDITS
More to come
5) ASSEMBLY
them so they match the hole's in the pcb , and solder them . The solder islands for the
wire bridges are square the others are rectangular or round .
5 Wire bridges . Note that these pictures don’t have the low voltage mod .
- You can have a high voltage source like a 12V AC or DC wallplug adapter . This is
recomended .
It’s cheap , and if you want to build a megasquirt , you can also use it to power your
stim . ( DC only )
We’ll call anything above 10 Volt’s high voltage .
- A 9Volt battery .
- D1,D2,D3 and D4 : the banded end points toward the left side .
- U1 , the 7805 voltage regulator . First bend the leads , put the component on the pcb
and bolt it using theM3 bolt and nut . The nut has to be on the components side .
Finally solder the leads
- C1 . Watch the polarity .
- C3 . Watch the polarity .
- U4 socket . the notch faces the lower -side of the pcb . Don't put in the chip yet
Install the plus lead of your 9 volt battery connector to the left hole of D1 .
Install the minus lead of the battery connector to the right hole of D3 .
Leave the other holes from D1 D3 D4 open.
So , for a 12 Volt source , wire J6 to connect the center pin with the one on the left
And for a low voltage source , and a 9Volt battery , wire the center pin to the one on
the right . Use a piece of wire from a resistor , just like the 5 bridges you just made
Testing
Get a suitable AC or DC power source . Because of the rectifier bridge D1..D4, the
polarity is irrelevant .
If you use a 9 Volt battery , D2 protect's the circuit from wrong polarity .
Plug it in , and see what happens .... Nothing ? no smoke or exploding parts ? That's
the way we want it .
Use a voltmeter and measure the voltage on pin 15 and 16 of the U4 socket . Pin 15
is the negative or ground
You should read 5 Volt . If not , check the voltage on the banded end of D2 and the
M3 nut. The nut is the nagetive lead . You should read the adapter voltage minus 2,4
volts , or 9 V battery minus 0.7 volts .
Check for bad solders , polarity of the diodes and capacitors .
Note that adapters with no load will easily produce 16 Volts . This is normal and
won't harm the programmer .
Firmly press the part to the pcb . Be carefull not to bend the leads .
Now solder the two retaining clip's in the 2.5 mm holes .
Finally , solder the 9 pin's , be carefull not to make any short's .
Testing
Get a straight trough 9 pin serial cable .and connect it to the pc .
Don't use a null modem or crossedcable . It won'twork .
Load up hypertem or similar and set it to the com port you're using
Set the hyperterm flow control option to "none" .
On the programmer , short pin 14 and 13 of the U4 socket ( see picture )
More details on this procedure can be found on the megasquirt construction manual .
All 1uF /50V capacitors , observe the polarity for each part .
U2 socket , the notch faces down .
Carefully put the max232 chip in it's socket , the notch facing down .
MAX232 Circuit
Testing
Put a short on the U2 socket , pin's 8 & 4 .
Apply pwr to the board , and repeat the above loopback test .
If it work's , your max 232 is functioning correctly .
Remove the short from U2
Test : pwr the circuit , and jumper the man pwr connector . The led should burn .
Remove the jumper and connect the banded end of D6 to the ground with a wire .
( Use the nut on U1 )
The led should come on again .
Test : pwr the circuit , and measure the voltage on the right lead of R1 .
You should read nothing . Now connect the banded end of D7 to ground .
The led comes on , and you should read something like 12 Volts . Anything above 9
volts is good .
Test : pwr the circuit , and measure the voltage on the icp header 's center pin .
You should read nothing
Now tie the banded end of D7 to ground , the led comes on again and you should
measure 8,5 volt's .
Test : apply power and connect U2 socket pin 11 to VCC . You can find VCC on
the left pin of J2 .
The led should come on .
Osc 1 :
A caned oscillator dip 8 .
Has to be installed on the lower half of U4 . Pin 1 of the oscillator corresponds to the
little round pad , pin 4 of U4.
You can solder the part to the pcb ( recomended ) or use an ic socket if you want to
be able to exchange oscillators later on .
Osc 2
A caned oscillator dip 14 .
Has to be installed instead of U4 . Pin 1 of the oscillator corresponds to pin 1 of U4 .
You can solder the part to the pcb ( recomended ) or use an ic socket if you want to
be able to exchange oscillators later on .
Osc 3
An oscillator using a common crystal , and a few parts .
Install and solder
R17 ( 1M )
R18 ( 2K2 )
C17 ( 100nF )
C18 ( 30pF )
C19 ( 30pF )
U5 Socket ( 14 pin )
X3 ( crystal )
U5 ( 74HCU04 )
Test : for any kind of osc : Apply power , and measure voltage at ICP PIN5 You
should read nothing much
Short the man pwr header , you should read roughly 2,5 volts .
No zif .
ZIF !
Final test's
Hook up power , short the man pwr .
Check the voltage 's at the following pin's of the MCU socket .
Good luck !!
Patrick Carlier
6) ATTATCHMENTS
A. Ordering stuff
I will be able to provide PCB, partial kits, full kits and assembled and tested units.
Contact me at p.carlier@pandora.be.
If there is enough demand I'll organise a group buy for the PCB . I can get real good
prices for 50 pieces.
1N4004
1 12V
D1
D2
J1
J2
2
12V
3
R1
2
1
D D
J6 VT
BC308AP
1
1N4004
1N4004
1K
12V VCC VDD 2
78L05 U1
D3
D4
3
T1
HDR_3
GND
3
+ C1 IN OUT C2 + C3
R4 R5 9V
+ C4
10K
330E
R2
2K2
CAT
- 470uF 100nF
- 10uf R6
- 10uF
LM431ACZ
LED 5MM VER. RED
1K
GND
U3
R7
U2.A
1K
Ü
D5
1K
REF
2 R3
AN
A
3
Y
1
G
74HC125
1
1N4148
GND
BC308AP
D6
VCC GND
VT
GND
T3
C + C6 1uF/50V C
10K
C5 U2.D R9 VDD
1uF/50V Ü
9V - - 12
R8
A
11 BC337AP C10
Y 1K R13 R14
13 T2 U6
16
GND 1uF/50V G
100K
+
1K
VCC
10K
2 V+ V-6
- C9 74HC125 100nF
1 40
C7 1uF/50V VDDA PTA7
1 4 R10 R11 R12 2 39
J3 C1+ C2+ VSSA PTA6
1 + + GND 3 38
VDD GND CGMXFC PTA5
10K
10K
2 + 4 37
U4 R16 OSC2 PTA4
3 5 36
MAX232 OSC1 PTA3
4 - 3 5 - C8 74HC125 6 35
10K
C1- C2- GND RST PTA2
5 7 34
1N4148
1uF/50V G R15 PTC0 PTA1
6 14 11 10 8 33 VDD
D7
T1_OUT T1_IN Y PTC1 PTA0
7 7 10 8 C13 9 32
10K
T2_OUT T2_IN A C11 C12 PTC2 VSSAD
8 9 10 31 + C15
PTC3 VDDAD
9 13 12 Ü 11 30 C14
R1_IN R1_OUT PTC4 AD7
DELTA_9HM 8 9 U2.C 100n 12 29
R2_IN R2_OUT 10nF 33nF TXD AD6
U2.B 13 28 - 25uF
RXD AD5
GND Ü GND 14 27 100nF
IRQ1 AD4
5 15 26
15
A PTD0 AD3
6 16 25 GND
Y PTD1 AD2
4 GND VDD 17 24
G PTD2 AD1
U5.A GND 18 23
PTD3 AD0
1 74HC125 19 22
VSS PTD5
1 2 20 21
B A Y VDD PTD4 B
C16
1
2
3
74HCU04
J4
U5.B
100nF 68HC908GP32
1 DIV
3 4 VDD
A Y GND
74HCU04 J4 CHOOSE DIV2/DIV4 FACTOR
100nF OSCILLATOR
U5.F
1
13 12
A Y C17
R17
X1 ?
GND 74HCU04
GND
1M
VDD
U5.E 1 5 VDD
NC OUT
1 U5.C U5.D
11 10 4 8 1 1
A Y GND VCC
5 6 9 8
A Y A Y
74HCU04
R18
74HCU04 74HCU04
GND
2K2
X2 ?
X3 VDD
VDD
1 8 CHOOSE ONLY 1 OSCILLATOR CONFIGURATION
A NC OUT A
C18 - C19
7 14
GND VCC OSC1 : CANED DIP8 MEGAPROGRAMMER
30pF 30pF OSC2 : CANED DIP14 COPYRIGHT 06/2003
GND OSC3 : DISCRETE WITH CRYSTAL PATRICK CARLIER
GND
1
2
3
4
5
ICP
GND
J5
U5 ,C18,C19,X3,R17,R18
ARE NOT NEEDED IF A CANED OSC. IS USED
ICP HEADER
8 7 6 5 4 3 2 1
Page 1 of 1 (04-Jun-2003)
MEGAPROGRAMMER PARTLIST AND PRICES IN EURO ( • )
Prices are from my local shop , and are indicative
TOTAL 29,7948