• AVR Freaks

Hot!mapping pins

Author
igeorge5149
New Member
  • Total Posts : 24
  • Reward points : 0
  • Joined: 2011/03/15 01:40:09
  • Location: 0
  • Status: offline
2019/04/11 18:37:21 (permalink)
0

mapping pins

Hello 
I have a pic16f19156
I want to remap the tx1,rx1,tx2, and rx2.
I never did it before and i need some help and guidance.
I read the data sheet but i am still in dark
Maybe a small piece of code as an example.
I am using mikrobasic, and mikropascal, but even in C i might be able to decipher.
Thank you very much
 
#1

10 Replies Related Threads

    katela
    Super Member
    • Total Posts : 1282
    • Reward points : 0
    • Joined: 2013/06/11 05:25:18
    • Location: South Africa
    • Status: offline
    Re: mapping pins 2019/04/11 18:45:40 (permalink)
    0
    You are asking in a wrong Forum, MikroE compilers have their own Forum , you might get better support there than here as most of people here use Microchip compilers. 
    What exactly do you mean by remap the tx1,rx1,tx2, and rx2?

    Free online Microcontroller Tutorials and Projects for Hobbyists and students. From beginners to advanced. Website: www.studentcompanion.co.za
    YouTube Tutorials: https://www.youtube.com/StudentCompanionSA
    #2
    qhb
    Superb Member
    • Total Posts : 9998
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: mapping pins 2019/04/11 19:04:14 (permalink)
    +1 (3)
    The PIC16F19156 has PPS, so it can remap most peripheral inputs and outputs to almost any pin.
    The OP is asking how to use PPS, so I assume they are having trouble interpreting the PPS chapter.
     

    Nearly there...
    #3
    igeorge5149
    New Member
    • Total Posts : 24
    • Reward points : 0
    • Joined: 2011/03/15 01:40:09
    • Location: 0
    • Status: offline
    Re: mapping pins 2019/04/11 19:05:00 (permalink)
    0
    Tx2 and Rx2 are on the RB6 and RB7 which are used for programing the chip.
    I want to move them from there.
    When you were kids, your father help you to ride a bike, even if the bike has a user manual.
    It was my opinion that this is the purpose for forums.
    When you are in trouble, ask for help from GODS.
    If they send you back to datasheet is no need for forums.
    For this you find in a forum two type of users :newby and Super members
    And they have to exchange the information.
    post edited by igeorge5149 - 2019/04/11 19:13:25
    #4
    qhb
    Superb Member
    • Total Posts : 9998
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: mapping pins 2019/04/11 19:22:15 (permalink)
    +1 (1)
    You simultaneously selected my post as "Best answer", and also gave it a "-1" vote ???
    I was just clarifying the question for katela.
    That doesn't leave me too inspired to want to offer more help now.
     
     

    Nearly there...
    #5
    igeorge5149
    New Member
    • Total Posts : 24
    • Reward points : 0
    • Joined: 2011/03/15 01:40:09
    • Location: 0
    • Status: offline
    Re: mapping pins 2019/04/11 19:26:55 (permalink)
    0
    Read above super god
    Sending me back to datasheet is not too much help 
    Sorry
    #6
    qhb
    Superb Member
    • Total Posts : 9998
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: mapping pins 2019/04/11 19:28:47 (permalink)
    +1 (1)
    I was clarifying the question.
    If you had come back, and said "Yes, I  have looked in the PPS chapter, but I don't understand this bit", I'd be happy to help.
    However, with that attitude, you're on your own.
     
     

    Nearly there...
    #7
    katela
    Super Member
    • Total Posts : 1282
    • Reward points : 0
    • Joined: 2013/06/11 05:25:18
    • Location: South Africa
    • Status: offline
    Re: mapping pins 2019/04/11 19:32:18 (permalink)
    0
    igeorge5149
     
    When you were kids, your father help you to ride a bike, even if the bike has a user manual.
    It was my opinion that this is the purpose for forums.
    When you are in trouble, ask for help from GODS.
    If they send you back to datasheet is no need for forums.
    For this you find in a forum two type of users :newby and Super members
    And they have to exchange the information.


    You must learn some patience and good attitude in the forums. There are many people in the forums, some will provide the answers you need, some maybe not what you want to hear.
    You can't have an attitude when someone is clarifying a question, the more info you provide, the easier and quicker you might get support.

    Free online Microcontroller Tutorials and Projects for Hobbyists and students. From beginners to advanced. Website: www.studentcompanion.co.za
    YouTube Tutorials: https://www.youtube.com/StudentCompanionSA
    #8
    igeorge5149
    New Member
    • Total Posts : 24
    • Reward points : 0
    • Joined: 2011/03/15 01:40:09
    • Location: 0
    • Status: offline
    Re: mapping pins 2019/04/11 19:35:18 (permalink)
    0
    You can close the thread.
    I expected respect and help.
    I do not need to be in a forum where people treat you like that.
    I am here maybe once a year and i do not know even how to navigate or the meaning of button i press.
    Let's close it and i will find away my help and answer.
    Was a sad experience.
    #9
    katela
    Super Member
    • Total Posts : 1282
    • Reward points : 0
    • Joined: 2013/06/11 05:25:18
    • Location: South Africa
    • Status: offline
    Re: mapping pins 2019/04/11 19:40:46 (permalink)
    0
    LoL
    I don't think there is anyone who has disrespected you, and if you are not happy with some replies as I said, move on there are many people who are actively participating in this forum who might provide you with what you need. Just have a good attitude and a thick skin, that's all.
    post edited by katela - 2019/04/11 19:49:52

    Free online Microcontroller Tutorials and Projects for Hobbyists and students. From beginners to advanced. Website: www.studentcompanion.co.za
    YouTube Tutorials: https://www.youtube.com/StudentCompanionSA
    #10
    pcbbc
    Super Member
    • Total Posts : 1098
    • Reward points : 0
    • Joined: 2014/03/27 07:04:41
    • Location: 0
    • Status: offline
    Re: mapping pins 2019/04/11 21:36:25 (permalink)
    0
    igeorge5149When you were kids, your father help you to ride a bike, even if the bike has a user manual.
    Yes, but he didn’t ride the bike for me and then say “There, look son, it’s done! Now you don’t need to bother to learn for yourself or read the manual”.

    As qhb says, show you have read the datasheet first. Explain what parts you did not understand. Or post some code which is not working. Anything to show you are prepared to put the effort in, and then we will be prepared to do the same.

    Otherwise we need to write a complete explaination of PPS, which is pointless - that is already done adequately (in our opinion) by the datasheet.

    1. Select the peripheral IO function you want to configure and the PPS register associated with it.
    See TABLE 15-4

    2. Assign it a value depending on which pin you want it attached to.
    See TABLE 15-2: PPS REGISTER VALUES

    3. Optionally lock out any further changes to the PPS module.
    EXAMPLE 15-1: PPS LOCK/UNLOCK SEQUENCE
    post edited by pcbbc - 2019/04/11 21:52:53
    #11
    Jump to:
    © 2019 APG vNext Commercial Version 4.5