Maybe this informations can help you:
Take a look at LPC2148 User Manual, page 80: PINSEL2 register, bit 2,
is used to set the direction of PIN 1.36-1.26
The GPIO 1.23 is controlled by bit 3 of PINSEL2.
If P0.31 were externally pulled low, when reset, the JTAG is going to be
disabled (page 72).
Thiago Lima.
Electrical Engineer
ashwin athani wrote:
>
> Hi all,
>
> Has anybody been able to use the TRST pin (P1.31) as GPIO?
>
> We have been trying this for quite some time and cannot figure out how
> to use this line as GPIO. Can this pin be used as GPIO? I think it
> should be possible to configure it as GPIO.
>
> I am using macraigor 20 pin JTAG and CrossWorks IDE. Intially I
> suspected the possible reason for not being able to control the GPIO
> is the fact the this line belongs to the JTAG interface and therefore
> the IDE might be overriding our settings.
>
> To rule this out, I configured the project in 'FLASH Release', this
> seems to make no difference in the behaviour.
>
> The intialization code (GPIO configuration) seems to ok, as I am able
> to control other GPIO namely P1.23. But sounds like there is something
> that we are missing. Also we have configured the PINSEL2 appropriately.
>
> Please note that I am trying to use them as FAST i/o (FIO).
> Any suggestions and help will be highly appreciated.
>
> Thanks in advance :)
>
> Warm regards
> Ashwin
>
> __________________________________________________
>
[Non-text portions of this message have been removed]
>
>

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )