TOP Contributors

  1. MIKROE (2760 codes)
  2. Alcides Ramos (374 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (139223 times)
  2. FAT32 Library (71732 times)
  3. Network Ethernet Library (57114 times)
  4. USB Device Library (47426 times)
  5. Network WiFi Library (43051 times)
  6. FT800 Library (42401 times)
  7. GSM click (29832 times)
  8. mikroSDK (28038 times)
  9. PID Library (26881 times)
  10. microSD click (26196 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Project

Tool: PIC uart to USB interface

Rating:

0

Author: dany

Last Updated: 2023-05-08

Package Version: 1.0.0.0

Category: USB

Downloaded: 103 times

Not followed.

License: MIT license  

Converts PIC level Uart signals to USB in both directions. This project is meant for use with PC's that do not have an RS232 interface any more. It makes it possible to handle the pic uart signals with a PC without an RS232 interface.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Tool: PIC uart to USB interface" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Tool: PIC uart to USB interface" changes.

Do you want to report abuse regarding "Tool: PIC uart to USB interface".

  • Information
  • Comments (0)

Project Blog

Converts PIC level Uart signals to USB (VID=$3931, PID=$2222, Name='UART USB Interface') in both directions.

This project is meant for use with PC's that do not have an RS232 interface any more (so usage of a PIC level uart connection to RS232 cannot be used as before).

It takes the PIC level (5 or 3.3V) signals from a Uart port of a project under test (that uses of course Uart in/out for communication purposes, see e.g. https://libstock.mikroe.com/projects/view/5316/wifi-plus-click-http-client) and converts those into /from USB data which can be finally read/send by a PC application (e.g. the 'HID Terminal' tool of the MikroE compilers).

The used USB standard is HID (not CDC), because no special drivers are needed for this type. This also means that the outgoing Uart data can contain trailing zero's and the USB data to the PC can also contain trailing zero's (the number of sent/received bytes is always a multiple of 64). No filters are applied in either data direction.

The software runs on a P24FJGB002 with an 8 Mhz crystal.

Libraries used by it are: 

- MikroE: 'Conversions', 'Peripheral_pin_Select', 'String' and 'Uart'

- Other: 'USB_HID_Library_P24' (https://libstock.mikroe.com/projects/view/71/usb-oa), 'BitUtils' (https://libstock.mikroe.com/projects/view/39/utilities) and 'Uart_Receiver_p24' (https://libstock.mikroe.com/projects/view/102/uart-buffered).

ALSO FROM THIS AUTHOR

Tool: PIC Clear project

5

This tool enables you, in case of troubles, to delete the derived files (*.mcl etc...) in the project directories and the "Defs" directory. It also enables you to edit/check the .mpppi (project) file. For: mP for PIC, dsPIC and PIC32.

[Learn More]

Tool: Basic Source code Formatter

5

This tool is a simple mikroBasic source code formatter, mainly making correct and readable code indentation.

[Learn More]

Rotary Encoder

5

Simple timer interrupt based Rotary Encoder decoding library.

[Learn More]