LPC architecure good practices

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC architecure good practices

815 Views
javiervallori
Contributor III

Hi,

I come from developing products with Microchip architecture. Now we start developing with LPC architecure, but I have some questions. In Microchip, before any read/write pin operation, it is highly recommended to "retris" the pin in INPUT/OUTPUT direction correspondingly. Is this "retris" operation also recommended for LPC? is there any other kind of good practice for LPC architecture?

0 Kudos
5 Replies

568 Views
soledad
NXP Employee
NXP Employee

Hi,

Maybe this link helps,

How to create a new LPC project using LPCOpen and LPCXpresso 


Have a great day,
Sol

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

568 Views
okcn
Contributor III

What is "retris" ?

For LPC, before read/write Pin, should set INPUT/OUTPUT direction first.  this mode only need when sometime need input and sometime need output like data bus line.

If only need one operation in all time, set direction once is enough.

see manual and code samples for reference.

0 Kudos

568 Views
javiervallori
Contributor III

With "retris" I mean to set INPUT/OUTPUT direction before each INPUT/OUTPUT operation, even it is an always INPUT or an always OUTPUT pin. For example, Microchip recommends to set the direction every time you have to do a reading operation, because a noise can change accidentally this configuration. Is it this kind of operations also recommended in LPC architecture?

0 Kudos

568 Views
okcn
Contributor III

No.

In LPC, befor INPUT/OUTPUT operation, should set  INPUT/OUTPUT direction FIRST.

If always INPUT or  always OUTPUT, ONLY set direction ONCE is enough ! 

I did not experience any  noise for this. And no such info in manuals also. 

568 Views
converse
Senior Contributor V

No, this is not necessary. NXP have not replicated Microchips bugs!