Communication problem with MC68HC908GP32

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Communication problem with MC68HC908GP32

4,125 Views
damitsi
Contributor I
Hi, I am a student of electronics and now I want to programme the
microcontroller of motorola MC68HC908GP32 with 908GP32PDS board ver.
2.0  I use the software <<ICS08GPGTZ In Circuit simulator>> which includes
the application WinIDE Development Environment of PEMICRO. The
problem is when i want to connect with the target, then i read the following
message:
(Ethernet fuctionality not enabled-Socket Error #10065  No route to host
Opening Com1 at 19200 baud...opened
Starting powerdown reset sequense...
Attempting reset button reset of HC08device... Unsuccessful.
Starting powerdown reset sequence ...
Trying Security  $FFFFFFFFFFFFFFFF)
If anyone know for this please give me some help.
I checked all the parameters of ports, baud rate at 19200 ( I have 20 Mhz
crystal) , target hardware type at Class3 (through serial port).
Labels (1)
0 Kudos
10 Replies

659 Views
Alban
Senior Contributor II
Hello,
 
Remove the 20MHz crystal and replace it via a value supported.
 
Absolutely no HC08 support 20MHz crystal. Maximum value is 8MHz for a crystal.
Maximum for a square wave generator or canned oscillator is usually 32MHz.
 
Alban.
0 Kudos

659 Views
peg
Senior Contributor IV
Hi Alban,
 
Merry Xmas and Happy New Year!
 
Absolutely none except the QB at least! (<32MHz)
 
The JB16 runs on 12MHz (the USB requires it) that's more than 8 isn't it?
 
I was actually running with the supposition that as it appears to be a commercial board that it was in fact a canned osc the OP was looking at.
 
The spec for a xtal on a GP32 is in fact only 32 to 100KHz
 
Regards
Peg
 
0 Kudos

659 Views
eckhard
Contributor V
Hello,

the GP32 will work with external clock up to 32 MHz, you need a high frequency for Mnitor Mode. The 32 KHz crystal will only work on blank parts. If u use a 19,6608 Mhz Oscillator the baudrate in monitor mode is 19200 bps. I successfully used a 20 Mhz canned oscillator on one of my boards, The error in the communication is small enough. Maybe sometimes it will not work because of tolerances. The datasheet uses a 9.8304 MHz Clock which is above 8 MHz too.

Eckhard
0 Kudos

659 Views
peg
Senior Contributor IV
Hi damitsi,
 
I have only ever done this with 32k or 9.8MHz.
Do you have 20MHz or 19.66?
The most important info for debugging this is which of the 7 steps are passing.
In the connection window there are 7 steps that get a coloured response next to them, what results are you getting here?
Try having your MON08 adapter only connected (no target hardware).
You should still pass step 0 (Hardware Loopback detected) like this. If you don,t, don't bother trying to connect it, sort the problem out with your serial connection/Adapter hardware first!
 
Regards
Peg
 
0 Kudos

659 Views
damitsi
Contributor I
Hi Peg, yes I am going through this step. (Hardware Loopback detected) but it did't pass the next steps.

I am looking forward to your answer with anticipation.

Thank you for your interest,
0 Kudos

659 Views
peg
Senior Contributor IV
Hi,
The loopback passing tells you that the serial comms is OK and part of your MON08 adapter is OK.
To go further the device must power up in monitor mode.
Is it blank?
Is this a commercial demo board?
Is the MON08 adapter built in?
Is the crystal exactly 20MHz? It actually should be 19.66MHz for 19200baud.
Do you have Vtst on IRQ?
PTC0 high, PTC1 low, PTC3 high, PTA0 high and PTA7 low???
 
Regards
Peg
 
0 Kudos

659 Views
damitsi
Contributor I
Thanks you again Peg for your quickly response.
I wish you a happy new year full of health and success.
 
So, this board is a non commercial board. It is blank , it has never been
programmed before, and it's designed by our professor.As i can see from
the shematic diagram it hasn't a MON08 built in. I will give you the
schematic diagram if you want.  I  checked the crystal and it doesn't work , i
will replace it with another one.And we will see
And what is Vtst on IRQ?
0 Kudos

659 Views
peg
Senior Contributor IV
Hi damitsi,
 
You are still saying "crystal" is it really a crystal (just two connections) or is it a "canned" oscillator? (Power in and TTL/CMOS clock out)
 
As you will see already discussed in this thread, a 20 MHz crystal won't work.
 
As for the other question re. Vtst please read the MON08 chapter of the MC68HC908GP32 manual first. It explains how to get the chip into monitor mode. It also mentions the crystal or external oscillator neccesary for this. Then come back here if you are still none the wiser.
 
Regards
Peg
 
0 Kudos

659 Views
damitsi
Contributor I
Now I am ok , i changed the crystal oscillator and it is working , thank you very much.
0 Kudos

659 Views
damitsi
Contributor I
Hi Peg,

Yes it isn't a crystal, it's my mistake it has four connectors 1 for Vcc, 2 for Vout and 1 NC.
0 Kudos