Newbie Question Regarding Pin Assignments

Status
Not open for further replies.

madgrizzle

Active member
When I look at the pin assignments for my Teensy 3.5, I see that many pins have multiple "alternate" functions, and some of them have the same alternate functions. Is it correct to say there is no problem, or chance of conflict, by using pins with the same alternate functions for different things? For example, am I correct in saying that I can set Pin 21 to a PWM output and Pin 27 to LOW even though they both have the same alternate RX1 functionality? I'm chasing down a bug and trying to eliminate as many possible causes for it.

Thanks
 
as long as it’s operation is not of the same peripheral port access yes. one pwm and 1 gpio is 2 different things, but dont expect 2x Serial1 TX pins to work together. It’s basically a multiplexer.
 
as long as it’s operation is not of the same peripheral port access yes. one pwm and 1 gpio is 2 different things, but dont expect 2x Serial1 TX pins to work together. It’s basically a multiplexer.

Thanks.. I'm seeing strange PWM behavior on pin 21 and was wondering if there could be an issue because I'm doing GPIO on pin 27 (they both happen to be capable as functioning as RX1, even though I haven't set them up as such). My concern was whether the multiplexer can introduce such issue.
 
The multiplexing is on a per-pin basis. There should be absolutely not problem using Pin 21 for PWM and Pin 27 for GPIO. If you're "seeing strange PWM behavior", it's due to some other reason.
 
Status
Not open for further replies.
Back
Top