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
Fabian
LPC1768 : RS485 and PWM1 do not work together ?
Started by ●November 16, 2011
Reply by ●November 16, 20112011-11-16
They are not mutually exclusive.
What is your set up code for PINSEL, PINDIR for port 2 ?
Simon.
--- In l..., "Fabian" wrote:
>
> 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
>
> Fabian
>
What is your set up code for PINSEL, PINDIR for port 2 ?
Simon.
--- In l..., "Fabian" wrote:
>
> 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
>
> Fabian
>
Reply by ●November 16, 20112011-11-16
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
function.
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.
Phil.
From: l... [mailto:l...] On Behalf Of
simonb65
Sent: 16 November 2011 09:40
To: l...
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 ?
Simon.
--- In l... , "Fabian"
wrote:
>
> 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
>
> Fabian
>
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
function.
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.
Phil.
From: l... [mailto:l...] On Behalf Of
simonb65
Sent: 16 November 2011 09:40
To: l...
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 ?
Simon.
--- In l... , "Fabian"
wrote:
>
> 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
>
> Fabian
>