Programming HC908QT4 via serial port with Prog08SZ

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

Programming HC908QT4 via serial port with Prog08SZ

3,859 Views
weird_dave
Contributor I
I have the Frescale demo board for the 908, which will program the device that came with the board with no problems.
I now have some blank devices but can't get any communications with them at all.
I have tried a 9.8MHz clock, /IRQ at 0V, 5V and 9V, PTA1 at 5V and PTA4 at 0V. I only get loopback at best.
The original device works fine with 9.8MHz and /IRQ at 9V. (modified the demo board for this, removing doesn't help).

Anyone any ideas?

Dave
Labels (1)
0 Kudos
Reply
6 Replies

1,885 Views
Zahar
Contributor IV
Dave,

Freescale 908 DemoQY/QT boards came with 908QTQY processors that were preprogrammed with Monitor
that was responsible for Monitor Mode communication via the Serial Port.

The best solution would be to purchase an in-expensive R&D device from P&E - USB ML MON08:
http://www.pemicro.com/products/product_viewDetails.cfm?product_id=19&CFID=1552718&CFTOKEN=94819188

It will allow you to debug and program any HC08 Freescale processor via a standard 16 pin MON08 interface.

Best Regards,
Zahar
P&E
0 Kudos
Reply

1,885 Views
weird_dave
Contributor I
The family datasheet seems to suggest that blank devices should be able to enter (forced?) monitor mode.
OK, I have a slight confession to make, I have managed to program blank devices in the past using this method, I just can't remember how I did it!
A bit of googling...
http://www.physics.mcmaster.ca/tech/HC908/HC908Intro.htm
Quote:
In order for the programming process to work, the following hardware conditions must be met. These are:

RST (pin-8 on HC908QY) must be HI.
PTA4 (pin-5 on HC908QY) must be LO.
OSC1 (pin-4 on HC908QY) must be 9.8304MHz.
PTA1 (pin-12 on HC908QY) must be HI.
PTA0 (pin-13 on HC908QY) must be connected to receive and send serial data.
IRQ (pin-9 on HC908QY) must be between 7.5V and 9.1V.
/Quote:

I have the equivalent QT pins set as above.
I'm starting to think my devices are duff....

Dave
0 Kudos
Reply

1,885 Views
Zahar
Contributor IV
Dave,

What is the exact name of the Freescale evaluation board that you are using?

If it is the "silver dollar" board that I am thinking about, you definitely need the QT4 target to be pre-programmed with a monitor to support the serial port communication.

The list of conditions that you mentioned applies to the custom board that they user have implemented on his
own: http://www.physics.mcmaster.ca/tech/HC908/HC908PGM.gif. Below the text snapshot that you posted in this forum there is a description of extra steps that have to be taken to force the target into monitor mode.

On the Freescale 908 QT4 target there is extra circuitry implemented to allow you to force the chip into Monitor Mode without extra effort. However, to accomodate for this effortless procedure, specific Monitor has to be ran in the FLASH of that chip. I believe Freescale should be able to provide you with these preprogrammed units if you contact them directly with this particular issue.

Best Regards,
Zahar
P&E
0 Kudos
Reply

1,885 Views
weird_dave
Contributor I
Hi Zahar,
 
I don't know the name of the board, but I've modified it to take both the QT and QY devices. I'm basically just using the RS232 IC, 5V reg and the on-off switch on the demo board.
 
I pulled out a QY device I had programmed last year and that works fine in my modified board.
Section 9, page 113 of the family datasheet, called Monitor ROM clearly states that the device has a monitor mode ROM.
 
"The monitor ROM allows complete testing of the microcontroller unit (MCU) through a single-wire interface with a host computer."
 
I have the device setup to enter Vtst monitor mode (table on page 117). This must have worked on blank devices in the past as I only have this board to program with.
 
I shall get hold of some other blank devices at some point and see if they work, I'm convinced the 2 I have here are duff.
 
Thanks for the time and effort!
 
Dave
 


Message Edited by weird_dave on 2008-03-26 10:08 AM

Message Edited by weird_dave on 2008-03-26 10:08 AM
0 Kudos
Reply

1,885 Views
weird_dave
Contributor I
Well, I just dug out an old surface mount '908KX which I'd never used, soldered it to a 16 pin socket to fit my board, real pain as the pins are all different.
fired up PROG08SZ, switched on, went in first time, no problems!
 
Dave
0 Kudos
Reply

1,885 Views
Zahar
Contributor IV
Dave,
 
If your circuit worked with a KX device, it might really be a problem with QT4 chip that you are trying to use.
 
Why don't you try to order some new samples from Freescale and see if that silicon still gives you a problem.
 
Best Regards,
Zahar
P&E
0 Kudos
Reply