Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 5 of 5

Thread: Teensy 3.2 serial port pins

  1. #1
    Junior Member
    Join Date
    Aug 2018
    Posts
    17

    Teensy 3.2 serial port pins

    Hi,

    I made a mistake when allocation Teensy3.2 and foolishly used the CAN bus Tx-Rx pins for UART serial comms on a PCB. Is it possible to reallocate the pins so that the CAN Bus Tx-Rx pins can become either Serial2 or Serial3 so I don't have to cut tracks?

    I've looked at the core software pins header file but the serial port pins are not obvious.

    Regards,

    Mike

  2. #2
    Member
    Join Date
    Nov 2015
    Location
    Cold hollow VT
    Posts
    97
    You can find a copy of the pin reference card here.

    If there are serial port pins still available on your pcb you can jumper them directly and define the CAN pins as DISABLE in your pin definitions.

  3. #3
    Junior Member
    Join Date
    Aug 2018
    Posts
    17
    Thanks for your response grease-lightning.

    I have the card you're referring to so I'm aware of all the ports configured on the Teensy 3.2. As far as I understand the microcontroller has a multiplex function that allow ports to be configured and assumed that was handled by the Teensy 3.2 core but I don't know how. The last resort will be a short term solution cutting tracks and wiring until I can rework the PCB design.

  4. #4
    Member
    Join Date
    Nov 2015
    Location
    Cold hollow VT
    Posts
    97
    You are correct in stating there is a multiplexer behind every pin. Only some of the pins can be used though. On he card there a pin labels that are a lighter shade of grey, those are the alternate functions available on those specific pins. For instance TX1 & RX1 are pins 1 & 0. Their alternates are on pins 5 & 21. to be able to use those pins as serial1 you must re-direct the mux before you start the serial1 by doing this:

    Serial1.setRX (21);
    Serial1.setTX (5);


    Sometimes Google is a better search engine to find stuff hereon the forum. To fnd the above info I Googled <teensy alternate pin functions> and found this reference post.

  5. #5
    Junior Member
    Join Date
    Aug 2018
    Posts
    17
    Thanks very much the post is what I was looking for.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •