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 (136724 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 (25364 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

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]

Schedulers

11

Scheduler (in a broad sense) related libs:
"Timebase"
"Timers"
"COS"
"COS_TimedOnly"
"StateMachine"
"StateMachine_2"

[Learn More]

Tool: Global variable usage

10

Shows, from a selected routine, the following items: - The parameter - The (used) local variables - The unused local variables (eliminated by optimiser) - The used global variables - Called routines For Pic, Pic24 and P32, both mP and mB

[Learn More]