This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Sending data from smart beacon to a Pic with RS232

Hi all! I want to send data from a beacon (nrf51822) to a Pic microcontroller with the RS232 standard, what function should I use to send data? For example, I can use the app_uart_put function? If yes, the beacon knows which is the port to which I connected the Pic or should I specify it in some way? Thank you so much :)

Parents
  • You have to connect the USART module of your PIC to any pins of the nRF51.

    • On the PIC, you have to connect the UART lines to the specific pins of the hardware module. You can choose if you want to use flow control (if the hardware module supports it) or not, so will have to connect 2 or 4 signals.
    • On the nRF side, you can connect the UART lines to any pins (pin crossbar). You will have to specify these pins when initialization the app_uart library.

    If you PIC is powered by a 3.3V voltage source, you do not need any external transceiver or level shifter. If you use TTL signals, you will need a level shifter. They are so many different PIC families (and old ones)... I do not know which one you use, but be aware of this.

Reply
  • You have to connect the USART module of your PIC to any pins of the nRF51.

    • On the PIC, you have to connect the UART lines to the specific pins of the hardware module. You can choose if you want to use flow control (if the hardware module supports it) or not, so will have to connect 2 or 4 signals.
    • On the nRF side, you can connect the UART lines to any pins (pin crossbar). You will have to specify these pins when initialization the app_uart library.

    If you PIC is powered by a 3.3V voltage source, you do not need any external transceiver or level shifter. If you use TTL signals, you will need a level shifter. They are so many different PIC families (and old ones)... I do not know which one you use, but be aware of this.

Children
No Data
Related