Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Andy Ayre

#2191
Old Topics / Re: P89C51RD2
May 15, 2003, 08:24:10 AM
Yes. Please read Flash Magic application Note 4 on the Flash Magic web page. There you will find a collection of steps to try to resolve the problem you may be having. If you cannot resolve it then the application note describes the steps required to send more information to us.

#2192
Old Topics / Re: How can I thank for Flash Magic
May 15, 2003, 08:22:39 AM
Thank you for the positive feedback! We strive to make Flash Magic the best programming tool we can, and it is always nice to receive messages like this. Thanks again.

#2193
Old Topics / Re: Solving ISP Problems
May 14, 2003, 08:56:34 AM
Rathnakara,

The latest versions of the Rx2Hxx/66x datasheet and Philips Application Note AN461 contain the pins to be used.

At the falling edge of RESET:

PSEN = low
EA = higher than VIH
P2.6 = high (or floating)
P2.7 = high (or floating)
ALE = high (or floating)

VIH = input high voltage allowed on port pins and EA. The minimum allowed for VIH is 0.2VCC + 0.9. So in a 5V system, VIH must be higher than 1.9V.

#2194
Old Topics / Re: Solving ISP Problems
May 14, 2003, 08:50:20 AM
Greg,

They can be left floating, but I prefer to pull them high. I've personally never had any problems when pulling them high. Note that I have never left them floating to be able to tell you if there are any problems doing that. A floating pin could be affected by EMI or noise in the circuit, so I prefer to make sure the voltage on the pin is well within what is required and stable.

#2195
Go to Code Architect at:

  www.codearchitect.org/philips

and generate the I2C code. Then compare it to what you have to see if there are any differences.

#2196
Go to the Philips web site at www.philipsmcu.com and get application note AN461 - "In-circuit and In-application Programming of the 89C51Rx+/Rx2/66x microcontrollers". It contains a couple of schematic diagrams for the ISP circuitry.

A couple of notes:

  - They use a MAX232 rather than a MAX233, so you will have to make the appropriate changes

  - The LPC932 does not require a 12V programming voltage, but obviously must be connected to the power supply

Once you have verified your circuit is correct, the next step is to use an oscilloscope to look at the signals coming from the PC, after they have passed through the MAX233, what is coming out of the LPC932 and what is being returned to the PC on the RS-232 side.

#2197
Old Topics / Re: Help me with my P89C51RD2BA...
May 05, 2003, 08:31:29 AM
Please try using Flash Magic and see if that helps. If it does not then at least we can make more progress tracking down the problem as Flash Magic features a debugging mode, while WinISP does not.

If you also run into problems using Flash Magic, then please read through and complete the steps in Flash Magic Application Note 4.

#2198
Old Topics / Re: 89lpc932 does not execute
May 02, 2003, 09:17:58 AM
Did you read Flash Magic application note 4? Please follow the steps in there to narrow down where the problem might be. Thanks.

#2199
Hi,

I think you must be referring to the "break detection" method of entering ISP mode. To implement this you only need to use a connector for the cable to the PC and an RS-232 transceiver between the connector and the device. The only connections needed are Rxd, Txd and Gnd, passing Rxd and Txd through the RS-232 transceiver.

You can generate a break condition in two ways:

 - use Flash Magic's Start BootROM feature will will transmit a break condition

 - add a switch that connects Rxd on the device to Gnd. Pressing and holding the switch momentarily will generate the break condition.

A break condition is simply a logic zero received for more than one character time.

You need to implement support for the break detect in your code! It must be enabled. You can do this by generating code using the UART module in Code Architect

  www.codearchitect.org

Note however, that if for some reason you incorrectly enable the UART or the break detection, or you disable the UART in your code, or the ISP download of the firmware fails at a critical point while programming the Boot Vector, then you will not be able to reprogram the device again.

#2200
Old Topics / Re: Rx2 device ID??
May 01, 2003, 09:47:43 AM
89C51RD2Hxx:

Man ID = 15H
Byte1 = C2H
Byte2 = 80H

89C51RC2Hxx:

Man ID = 15H
Byte1 = C2H
Byte2 = 89H

89C51RB2Hxx:

Man ID = 15H
Byte1 = C2H
Byte2 = 8BH

89C51RD2xx:

Man ID = 15H
Byte1 = C2H
Byte2 = 82H

89C51RC2xx:

Man ID = 15H
Byte1 = C2H
Byte2 = 8AH

89C51RB2xx:

Man ID = 15H
Byte1 = C2H
Byte2 = 8CH

89C51RA2xx:

Man ID = 15H
Byte1 = C2H
Byte2 = 8FH

15H for Man ID = Philips
Byte 1 = device family
Byte2 = specific device

Note that we have already written an IAP library for the 89C51Rx2Hxx devices that you can download and use for free. Check it out at:

http://www.esacademy.com/faq/progs/flash.htm

#2201
Old Topics / Re: ExitCode FlashMagic
May 01, 2003, 08:38:39 AM
Thanks for the suggestion! I've Emailed you a beta version. If it works ok, let me know and it will be incorporated into the next revision and documented in the release notes.

Thanks!

#2202
Old Topics / Re: 89lpc932 does not execute
April 30, 2003, 12:46:10 PM
Are you using the Keil MCB900 board? If so it may not have the surface mount capacitors for the external crystal on it. If that is the case then you will need to solder some caps on there. I think 22pF - 33pF should do the trick.

Flash Magic does not change the device configuration by itself. Double-check that it is still set to how you left it. If not then something weird is going on with the device as UCFG1 should not change on it's own. It could be that maybe the device for some reason is not programming UCFG1.

If you forget to program the code in to detect the break condition, then the only means of recovery I believe is to use a parallel programmer. Versions of the LPC932 E, F and later have a hardware method to enter ISP mode using pulses on the RST pin, and so can always be recovered with the necessary hardware (assuming the Boot Vector was not changed).

#2203
Old Topics / Re: 89lpc932 does not execute
April 30, 2003, 11:24:39 AM
Are you using an external crystal or the internal RC oscillator? If you are using an external crystal you must configure UCFG1 for the correct crystal frequency - which you can do in Flash Magic by choosing Device Configuration from the ISP menu.
If you are not using the internal RC oscillator, try using it and see if that helps.

If you need help with setting up your oscillator, go to

  www.codearchitect.org/philips

and you will find a tool to generate the oscillator code for your setup.

Finally, have you make sure you are not short-circuiting the RxD pin to ground? That is the same as a break condition and will place the device back into ISP mode again.

#2204
Old Topics / Re: Solving ISP Problems
April 30, 2003, 08:14:01 AM
The most common reason why someone can program a device fine the first time and then be unable to program it, is that you are not entering ISP mode correctly. The device comes from the factory in ISP mode, so when you attempt to program the device for the second time, that is the the first time you are really testing getting into ISP mode.

Check the voltages on ALE, /PSEN, P2.6 and P2.7 are all what they should be according to the current datasheet. Don't forget that you need to pull BOTH P2.6 and P2.7 high during reset - missing off one of those pins is a common mistake.

If this doesn't help then read Flash Magic Application Note 4 - it will hopefully lead you to the answer. If it does not, the very last section titled "last resort" will enable me to work out the problem. But you need to following the previous steps in that application note first.

#2205
Old Topics / Re: detecting the MCU
April 28, 2003, 01:49:50 PM
I just uploaded version 1.75. Please give that a try also before trying the steps in Flash Magic Application Note 4. Thanks.

regards,