Problem with fast GPIO on LPC2378

Hi,
I've a strange problem with fast GPIO on LPC2378.
Specifically, I can neither set nor reset the pin 4.1 of GPIO port, while I can set and reset pin 4.0, 4.2 and 4.3.
Moreover, if I execute the code step-by-step with Ulink2 debugger I find a problem also with pin 4.2. In fact with my oscilloscope I see that after the reset instruction
FIO4CLR = 0x04;
I see the level of the pin goes low but soon after it goes suddenly to high level.
Moreover if I watch the value of FIO4PIN on the watch window I see a value different from the one displayed by the peripheral window of FAST GPIO.
I suspect there is bad interaction between uVision and my software execution.
Is there any register I have to configure to avoid this strange behaviour?

Thanks and bye

Demis

Parents
  • Check if you are using the latest MDK which can display correctly also Fast GPIO.

    Normal memory read of Fast GPIO with the debugger disrupts the Fast GPIO registers (specific chip behavior) and therefore uVision uses a special mechanism to read Fast GPIO without the mentioned side effect (you need UL2ARM V1.32 or higher).

Reply
  • Check if you are using the latest MDK which can display correctly also Fast GPIO.

    Normal memory read of Fast GPIO with the debugger disrupts the Fast GPIO registers (specific chip behavior) and therefore uVision uses a special mechanism to read Fast GPIO without the mentioned side effect (you need UL2ARM V1.32 or higher).

Children
More questions in this forum