UART Serial Port Programming Raspberry Pi Pico Interfacing

chapter 4 n.w
1 / 13
Embed
Share

Explore UART serial port programming with Raspberry Pi Pico using MicroPython. Learn about data transfer, duplex transfers, ASCII framing, and practical examples to calculate bits and transfer times. Discover UART pinouts and configurations for UART0 and UART1.

  • Raspberry Pi Pico
  • UART
  • Serial Port
  • MicroPython

Uploaded on | 1 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. Chapter 4: UART Serial Port Programming Raspberry Pi Pico Interfacing and Programming with MicroPython www.MicroDigitalEd.com

  2. Figure 4-1: Serial vs. Parallel Data Transfer

  3. Figure 4-2: Parallel In Serial Out

  4. Figure 4-3: Serial In Parallel Out

  5. Figure 4-4: Simplex, Half-, and Full-Duplex Transfers

  6. Figure 4-5: Framing ASCII "A" (0x41)

  7. Example 4-1 Calculate the total number of bits used in transferring 50 pages of text, each with 80 25 characters. Assume 8 bits per character and 1 stop bit. Solution For each character a total of 10 bits is used, 8 bits for the character, 1 stop bit, and 1 start bit. Therefore, the total number of bits is 80 25 10 = 20,000 bits per page. For 50 pages, 1,000,000 bits will be transferred.

  8. Example 4-2 Calculate the time it takes to transfer the entire 50 pages of data in Example 4-1 using a baud rate of: (a) 9600 (b) 57,600 Solution (a) 1,000,000 / 9600 = 104 seconds (b) 1,000,000 / 57,600 = 17 seconds

  9. Example 4-3 Calculate the time it takes to download a movie of 2 gigabytes using a telephone line. Assume 8 bits, 1 stop bit, no parity, and 57,600 baud rate. Solution 2 230 10 / 57,600 = 347,222 seconds = 4 days

  10. Figure 4-6: Raspberry Pi Pico Pinout

  11. Table 4-1A: UART0 Pins UART pin UART0_TX UART0_RX GPIO pin number GP0, GP12, GP16 GP1, GP13, GP17 Table 4-1B: UART1 Pins UART pin UART1_TX UART1_RX GPIO pin number GP4, GP8, GP20 GP5, GP9, GP21

  12. Figure 4-7: USB-to-Serial Converters

  13. Figure 4-8: Pico UARTX Serial Connection

Related


More Related Content