Reply by Boris Kralik February 2, 20062006-02-02
When I tried set/clr pin P0.26, no changes on TD1.
I works only with LPC2294/2292.
In the manual this pin is not available (page 5 in Preliminary data
Rev01-05 2004).
Regards.
--- In lpc2000@lpc2..., "unity0724" <unity0724@...> wrote:
>
> Hi, Sorry for some delays... Did not have a chance to get near an
> LPC21xx chip for a week...
> Pls test out/verify following code.   It seems toggling Pin 10 which 
> is an NC Pin on the LPC2124. Can you verify at your side??
> 
> PINSEL1 |= 0x00300000;
> IODIR0  |= 0x04000000;
> while (1) {
> 	for (i=0;i<10000;i++);
> 	IOSET0=0x04000000;	// Set P0.26 
> 	for (i=0;i<10000;i++);
> 	IOCLR0=0x04000000;	// Clr P0.26
> }
> 
> - Somehow waveform is not 50%, I did not try to figure out why.
>   That port bit might have some weird delays/bugs.
> - I do not have a LPC2292/4, only LPC2124 here.   Pin 10 is NC pin
>   for LPC2124.
> - I think Philips errata sheet did say this pin must NOT be pulled
>   low during reset
> - I will NOT want to use the pin in this way, unless real
>   "emergency"...    :)
> - Hope philips will put P0.26 back...  It is difficult to find
>   contiguous/consecutive 8-bit data bus bits for external peripheral
>   interface.   I guess some VHDL guys must have screw up something
>   on P0.26...   :)
> - Good luck and have fun, pls tell me of more discoveries...
> Regards
> 
> --- In lpc2000@lpc2..., Boris Krik <kralikbo@> wrote:
> >
> > I try TD1 pin set as GPIO (P0.26) and toogle it
> > (SET/CLR), but without effect.
> > Any sugestion ?
> > 
> > --- unity0724 <unity0724@> wrote:
> > 
> > > Hi,
> > > I was suspecting that pin to be port bit P0.26
> > > previously.
> > > But dare not use it.   May be you can try with
> > > setting PINSEL0
> > > and try toggle it.   Let me know the result,
> > > thanks.... :)
> > > Regards
> > > 
> > > 
> > > --- In lpc2000@lpc2..., "Boris Kralik"
> > > <kralikbo@y...> wrote:
> > > >
> > > > Hi.
> > > > I want to use TD1 pin on LPC2292/LPC2294 as
> > > output, but in manual is
> > > > not ports to GPIO. Is possible to use TD1 as GPIO
> > > ? If yes, how it
> > > > make it ?
> > > > Thx.
> > > >
> > > 
> > > 
> > > 
> > > 
> > > 
> > 
> > 
> > Regards / S pozdravom Boris Kralik
> > 
> > http://www.geocities.com/kralikbo/
> > -------------
> > 
> > 
> > 		
> > ___________________________________________________________ 
> > Yahoo! Photos  NEW, now offering a quality print service from 
> just 8p a photo http://uk.photos.yahoo.com
> >
>
	

An Engineer's Guide to the LPC2100 Series

Reply by unity0724 February 2, 20062006-02-02
Hi, Sorry for some delays... Did not have a chance to get near an
LPC21xx chip for a week...
Pls test out/verify following code.   It seems toggling Pin 10 which 
is an NC Pin on the LPC2124. Can you verify at your side??

PINSEL1 |= 0x00300000;
IODIR0  |= 0x04000000;
while (1) {
	for (i=0;i<10000;i++);
	IOSET0=0x04000000;	// Set P0.26 
	for (i=0;i<10000;i++);
	IOCLR0=0x04000000;	// Clr P0.26
}

- Somehow waveform is not 50%, I did not try to figure out why.
  That port bit might have some weird delays/bugs.
- I do not have a LPC2292/4, only LPC2124 here.   Pin 10 is NC pin
  for LPC2124.
- I think Philips errata sheet did say this pin must NOT be pulled
  low during reset
- I will NOT want to use the pin in this way, unless real
  "emergency"...    :)
- Hope philips will put P0.26 back...  It is difficult to find
  contiguous/consecutive 8-bit data bus bits for external peripheral
  interface.   I guess some VHDL guys must have screw up something
  on P0.26...   :)
- Good luck and have fun, pls tell me of more discoveries...
Regards

--- In lpc2000@lpc2..., Boris Krik <kralikbo@...> wrote:
>
> I try TD1 pin set as GPIO (P0.26) and toogle it
> (SET/CLR), but without effect.
> Any sugestion ?
> 
> --- unity0724 <unity0724@...> wrote:
> 
> > Hi,
> > I was suspecting that pin to be port bit P0.26
> > previously.
> > But dare not use it.   May be you can try with
> > setting PINSEL0
> > and try toggle it.   Let me know the result,
> > thanks.... :)
> > Regards
> > 
> > 
> > --- In lpc2000@lpc2..., "Boris Kralik"
> > <kralikbo@y...> wrote:
> > >
> > > Hi.
> > > I want to use TD1 pin on LPC2292/LPC2294 as
> > output, but in manual is
> > > not ports to GPIO. Is possible to use TD1 as GPIO
> > ? If yes, how it
> > > make it ?
> > > Thx.
> > >
> > 
> > 
> > 
> > 
> > 
> 
> 
> Regards / S pozdravom Boris Kralik
> 
> http://www.geocities.com/kralikbo/
> -------------
> 
> 
> 		
> ___________________________________________________________ 
> Yahoo! Photos  NEW, now offering a quality print service from 
just 8p a photo http://uk.photos.yahoo.com
>
	
Reply by Joel Winarske January 27, 20062006-01-27
> > > Yes,direction (GPIO0_IODIR) was OK.
> > >
> > > PCB_PINSEL1 &= 0x0FFFFF; //bit 23:20 as 0, ?P0.26?
> > and
> > > P0.27 as GPIO
> > > GPIO0_DIR |= (1 << 26);  //Set as output
> > > GPIO0_IOSET/GPIO0_IOCLR | =(1 << 26);

P0.26 is reserved per user manual page 128:
http://www.semiconductors.philips.com/acrobat_download/usermanuals/UM_LPC21X
X_LPC22XX_2.pdf

You should be able to toggle P0.27.
	Joel
	
Reply by January 27, 20062006-01-27
LPC2294

--- Joel Winarske <joelw@joel...> wrote:

> > Yes,direction (GPIO0_IODIR) was OK.
> > 
> > PCB_PINSEL1 &= 0x0FFFFF; //bit 23:20 as 0, ?P0.26?
> and
> > P0.27 as GPIO
> > GPIO0_DIR |= (1 << 26);  //Set as output
> > GPIO0_IOSET/GPIO0_IOCLR | =(1 << 26);
> 
> What's the LPC21xx part you're working with?
> 
> 
> Joel
> 
> 
>
	Regards / S pozdravom Boris Kralik

http://www.geocities.com/kralikbo/
-------------
	___________________________________________________________ 
Win a BlackBerry device from O2 with Yahoo!. Enter now.
http://www.yahoo.co.uk/blackberry

Reply by Joel Winarske January 27, 20062006-01-27
> Yes,direction (GPIO0_IODIR) was OK.
> 
> PCB_PINSEL1 &= 0x0FFFFF; //bit 23:20 as 0, ?P0.26? and
> P0.27 as GPIO
> GPIO0_DIR |= (1 << 26);  //Set as output
> GPIO0_IOSET/GPIO0_IOCLR | =(1 << 26);

What's the LPC21xx part you're working with?
	Joel
	
Reply by January 27, 20062006-01-27
Yes,direction (GPIO0_IODIR) was OK.

PCB_PINSEL1 &= 0x0FFFFF; //bit 23:20 as 0, ?P0.26? and
P0.27 as GPIO
GPIO0_DIR |= (1 << 26);  //Set as output
GPIO0_IOSET/GPIO0_IOCLR | =(1 << 26);

Any sugestion ?

--- Joel Winarske <joelw@joel...> wrote:

> > I try TD1 pin set as GPIO (P0.26) and toogle
it
> > (SET/CLR), but without effect.
> > Any sugestion ?
> 
> Direction registers reset as inputs, be sure to set
> direction register
> correctly.
> 
> 
> Joel
> 
> 
>
	Regards / S pozdravom Boris Kralik

http://www.geocities.com/kralikbo/
-------------
	___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo!
Security Centre. http://uk.security.yahoo.com

Reply by Joel Winarske January 27, 20062006-01-27
> I try TD1 pin set as GPIO (P0.26) and toogle it
> (SET/CLR), but without effect.
> Any sugestion ?

Direction registers reset as inputs, be sure to set direction register
correctly.
	Joel
	
Reply by January 27, 20062006-01-27
I try TD1 pin set as GPIO (P0.26) and toogle it
(SET/CLR), but without effect.
Any sugestion ?

--- unity0724 <unity0724@unit...> wrote:

> Hi,
> I was suspecting that pin to be port bit P0.26
> previously.
> But dare not use it.   May be you can try with
> setting PINSEL0
> and try toggle it.   Let me know the result,
> thanks.... :)
> Regards
> 
> 
> --- In lpc2000@lpc2..., "Boris Kralik"
> <kralikbo@y...> wrote:
> >
> > Hi.
> > I want to use TD1 pin on LPC2292/LPC2294 as
> output, but in manual is
> > not ports to GPIO. Is possible to use TD1 as GPIO
> ? If yes, how it
> > make it ?
> > Thx.
> >
> 
> 
> 
> 
>
	Regards / S pozdravom Boris Kralik

http://www.geocities.com/kralikbo/
-------------
	___________________________________________________________ 
Yahoo! Photos  NEW, now offering a quality print service from just 8p a photo
http://uk.photos.yahoo.com

Reply by unity0724 January 24, 20062006-01-24
Hi,
I was suspecting that pin to be port bit P0.26 previously.
But dare not use it. May be you can try with setting PINSEL0
and try toggle it. Let me know the result, thanks.... :)
Regards --- In lpc2000@lpc2..., "Boris Kralik" <kralikbo@y...> wrote:
>
> Hi.
> I want to use TD1 pin on LPC2292/LPC2294 as output, but in manual is
> not ports to GPIO. Is possible to use TD1 as GPIO ? If yes, how it
> make it ?
> Thx.
>




Reply by Boris Kralik January 24, 20062006-01-24
Hi.
I want to use TD1 pin on LPC2292/LPC2294 as output, but in manual is
not ports to GPIO. Is possible to use TD1 as GPIO ? If yes, how it
make it ?
Thx.