In the LPC17xx devices the PINDIR function is not required, the direction
only applies if the PINSEL selects the GPIO function for the pad, otherwise
the direction is controlled automatically.
The open drain mode (where applicable ) and pullup / pulldown selections are
however relevant since these seem to be applied regardless of the PINSEL
See note 5 in section 14.1 of the user manual regarding Pullup / Pulldown.
So almost any combination of IO that can be selected with PINSEL works,
there are just a few pins that are affected independently of the PINSEL
function, such as the trace port.
From: l... [mailto:l...] On Behalf Of
Sent: 16 November 2011 09:40
Subject: [lpc2000] Re: LPC1768 : RS485 and PWM1 do not work together ?
They are not mutually exclusive.
What is your set up code for PINSEL, PINDIR for port 2 ?
--- In l... , "Fabian"
> Hi everybody,
> just before trying it, could you confirm me that is possible to do working
> RS485 function and PWM function in same times on the port 2 ?
> P2.0 and P2.1 for RS485
> P2.3 for a pwm
> or may be this functions are mutually exclusive ?
> Thanks a lot