TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (352 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (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 (136726 times)
  2. FAT32 Library (69941 times)
  3. Network Ethernet Library (55940 times)
  4. USB Device Library (46265 times)
  5. Network WiFi Library (41886 times)
  6. FT800 Library (41169 times)
  7. GSM click (28982 times)
  8. PID Library (26412 times)
  9. mikroSDK (26358 times)
  10. microSD click (25366 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: 65 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

Thermostat with DS1820

5

Usage of the Ds1820 (one wire temp sensor) to control a heating system. Provides 2 different temp settings (e.g. day and night settings). Proportional control of the heater (which is basically on/off controlled) using PWM like method with a 1 minute timebase (x minutes on, y minutes off).

[Learn More]

USB_OA

26

USB libraries (HID, CDC, MSD), original architecture: only 1 kind of USB device, no composite device. -- for P18's or P24's with USB -- . Additionally: the CDC_Twin library (P18 only), which creates 2 virtual COM (CDC) devices.

[Learn More]

Memory

6

Libaries are:
- "MemManager_": simple memory manager making dynamic variables possible in mP (procedures GetMem and FreeMem available), and
- "Eepromvariable": Procedures/functions that write and read the content of any type of variable to/from the internal PIC Eeprom.

[Learn More]