This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Still confused

I understood why PINSEL0 is used for P0_15 & PINSEL1 is used for P0_16 .

I tend to get confused when i see different codes being used for different Application notes.

PINSEL0 |= 0x00050000; // Select UART1 RXD/TXD

How TXD/RXD is being selected through PINSEL0 inspite it is clear that RXD OF Uart1 can be slected only by PINSEL1 ?

Parents
  • Why do you create new threads for the same subject?
    http://www.keil.com/forum/19109/

    Don't you notice the difference between "Start a thread" and "Reply"?

    Next thing.

    You are confused by this line:

    PINSEL0 |= 0x00050000; // Select UART1 RXD/TXD
    


    That would set bits affecting P0.8 and P0.9.
    P0.8 have alternatives (P0.8, I2STX_WS, MISO1, MAT2.2)
    P0.9 have alternatives (P0.9, I2STX_SDA, MOSI1 or MAT2.3)

    So the question then is: Where did you see that line? If you want help with a specific line that doesn't make sense, it would definitely help if you posted where you found it. Don't you think so?

Reply
  • Why do you create new threads for the same subject?
    http://www.keil.com/forum/19109/

    Don't you notice the difference between "Start a thread" and "Reply"?

    Next thing.

    You are confused by this line:

    PINSEL0 |= 0x00050000; // Select UART1 RXD/TXD
    


    That would set bits affecting P0.8 and P0.9.
    P0.8 have alternatives (P0.8, I2STX_WS, MISO1, MAT2.2)
    P0.9 have alternatives (P0.9, I2STX_SDA, MOSI1 or MAT2.3)

    So the question then is: Where did you see that line? If you want help with a specific line that doesn't make sense, it would definitely help if you posted where you found it. Don't you think so?

Children