TOP Contributors

  1. MIKROE (2656 codes)
  2. Alcides Ramos (353 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 (136866 times)
  2. FAT32 Library (70000 times)
  3. Network Ethernet Library (55998 times)
  4. USB Device Library (46298 times)
  5. Network WiFi Library (41904 times)
  6. FT800 Library (41204 times)
  7. GSM click (29012 times)
  8. PID Library (26423 times)
  9. mikroSDK (26394 times)
  10. microSD click (25385 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: 67 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

C RTOS for mP and mB (P18 and P24)

10

CRTOS stands for Cooperative Real Time Operating System; designed for and written specifically in mP/mB from mikroElektronika. The system uses cooperative as opposed to pre-emptive scheduling which means that the application code you write has to voluntarily release back to the operating system at appropriate times.

[Learn More]

TempSensors Ds1820 LM35

16

The basic functions for the DS18(S/B)20 (onewire digital temperature sensor), including string output, ready to display. A routine to convert a more than 9 bits temperature read from a DS18B20 to a string (to e.g. display on an LCD) is also present. Including Parasite Power and Configuration routines. The LM35 basic functions, code efficient.

[Learn More]

Article: Ram corruption reasons in mP and mB

5

Purpose: Make people aware about the ways of working that can introduce ram corruption (and of course how to avoid it). In this document the many ways where it goes right are not mentioned, only the danger areas are highlighted.

[Learn More]