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.

Messages - Andy Ayre

Pages: 1 ... 142 143 [144] 145 146
Old Topics / Re: Books for programming
« on: May 19, 2003, 10:23:40 am »
To my knowledge there are currently no books specifically for programming the LPC932. There are however books for programming 8051s and embedded systems in general. Take a look at our books section for a list we recommend.

Old Topics / Re: Unable to erase the Security Bits in 89C51RC+
« on: May 19, 2003, 10:21:28 am »
It is not possible to erase (reset) the security bits using ISP on the Rx+ family of devices. You can only set them.

However, you should be able to erase the security bits using a parallel programmer. If that does not appear to be working then I suggest you contact the manufacturer of your parallel programmer to find out how to do it. Maybe there is a seperate erase function in the programmer software for the security bits.

Old Topics / Re: Using uvision and MCB900
« on: May 19, 2003, 08:27:52 am »
You can either run Flash Magic from uVision2 or you can run it seperately. Either way, you must make sure your project generates a Hex file.

You need to change the jumpers between two different settings. One to execute code you have programmed into the board and one to program the board. You must reset (or remove/reapply power) each time after changing the jumpers to ensure the device is using the new setting. The settings are:

Execute:  Run = on, Reset = off, Prog = off

Program: Run = off, Reset = off, Prog = on

(see Flash Magic application note 3, section 3.4 - which you can download from the Flash Magic web page)

So the steps are:

1. Build project
2. Set jumpers to "program" setting
3. Remove and reapply power to the board
4. Use Flash Magic or Flash Magic from uVision2 to program the hex file
5. Set jumpers to "execute" setting
6. Remove and reapply power to the board. Your code should now execute.

The 4k message I believe always appears as a reminder. Keil will be able to give you more information regarding that and whether it should be appearing every time or not.

Old Topics / Re: 89lpc932 does not execute
« on: May 19, 2003, 08:20:14 am »
I do not have a reference schematic to hand, but the circuit is quite simple. You need to connect RxD and TxD on the LPC932 through an RS-232 transceiver to a female DB9 connector.
You need to connect the power supply to the LPC932
You need to attach an external crystal or clock to the LPC932 if you are using one. No external crystal/clock is required if you are using the on-chip RC oscillator.
You need to attach a reset circuit to the RST pin if you are using one, otherwise no reset circuit is required if you are using the on-chip reset circuit.

The first time you power up a brand new LPC932 it will automatically enter ISP mode and Flash Magic should be able to communicate with it straight away. A baud rate of around 9600 will probably work the best. Note that if you try different baud rates you must reset the device (or remove and reapply power) each time.

***You must program in code to enable the break detect feature of the device in order to get back into ISP mode***

Old Topics / Re: IAP question
« on: May 19, 2003, 08:11:32 am »
You have to assume that all registers may potentially be corrupted during an IAP call.

If you are wrapping the IAP calls up in the necessary code to allow them to be called from C as C functions, then C compilers automatically assume inside a function that all registers are corrupted, so this no longer becomes a problem.

You can download a C library for IAP which does this from our web site at:

Old Topics / Re: P89C51RD2
« on: 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.

Old Topics / Re: How can I thank for Flash Magic
« on: 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.

Old Topics / Re: Solving ISP Problems
« on: May 14, 2003, 08:56:34 am »

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.

Old Topics / Re: Solving ISP Problems
« on: May 14, 2003, 08:50:20 am »

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.

Old Topics / Re: Anyone tried programming I2C for LPC932?
« on: May 07, 2003, 07:57:40 am »
Go to Code Architect at:

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

Old Topics / Re: ISP without boards using reset-pusle method
« on: May 06, 2003, 08:22:07 am »
Go to the Philips web site at 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.

Old Topics / Re: Help me with my P89C51RD2BA...
« on: 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.

Old Topics / Re: 89lpc932 does not execute
« on: 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.

Old Topics / Re: ISP without boards using reset-pusle method
« on: May 02, 2003, 09:14:24 am »

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

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.

Old Topics / Re: Rx2 device ID??
« on: May 01, 2003, 09:47:43 am »

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


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


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


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


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


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


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:

Pages: 1 ... 142 143 [144] 145 146