Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hardware/schematic.md - UART pins are backwards #353

Closed
igoeco opened this issue Dec 7, 2021 · 1 comment
Closed

hardware/schematic.md - UART pins are backwards #353

igoeco opened this issue Dec 7, 2021 · 1 comment

Comments

@igoeco
Copy link

igoeco commented Dec 7, 2021

The pins for UART given in the schematic are backwards. The V2 schematic currently reads:

P0.06     UART_INTERNAL_RX 
P1.08     UART_INTERNAL_TX

The correct assignment is:

P0.06     UART_INTERNAL_TX 
P1.08     UART_INTERNAL_RX

I tried making P0.06 the Receiver pin and P1.08 the transmit pin but could not get serial communication to work. It worked when I switched. Here is a code snippet from using NRF device registers:

#include <nrf.h>
...
//pin configurations -- directions
    NRF_P0->DIR |= (1 << p6); //TX_PIN_NUMBER = p0.6);
    NRF_P1->DIR &= ~(1 << p8); //RX_PIN_NUMBER = p1.8);
// UART
    NRF_UART0->PSEL.TXD = p6;    //TX_PIN_NUMBER 0.6 = 0+6;
    NRF_UART0->PSEL.RXD = p8+32; //RX_PIN_NUMBER 1.8 = 32+8;
@igoeco igoeco changed the title hardware/schematic.md hardware/schematic.md - UART pins are backwards Dec 7, 2021
@microbit-mark
Copy link
Contributor

Thanks for raising this. This appears to be a duplicate of #282, so will close in favour of the earlier issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants