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?
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!
-----------------------------------------------------------------------------------------------------------------------
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.
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?
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.
No, this is not necessary. NXP have not replicated Microchips bugs!