USB IO PICs for Simple Computer Control: Tips and Advice

  • Thread starter Thread starter Sathhin
  • Start date Start date
  • Tags Tags
    Usb
Click For Summary
SUMMARY

This discussion focuses on utilizing USB PICs for simple input/output control in electronic projects. The user, Sathhing, seeks guidance on programming PIC microcontrollers for USB interfacing, particularly with a background in C++ and electronic design. Key resources mentioned include the Microchip website for PIC18F USB devices and FTDI's UM232R module, which offers a reliable USB interface with throughput up to 3+ Mbps. Additionally, the V-USB firmware for Atmel AVR is highlighted as a viable option for low-speed USB applications.

PREREQUISITES
  • Basic understanding of C++ programming
  • Familiarity with electronic design principles
  • Knowledge of USB communication standards
  • Experience with microcontroller programming
NEXT STEPS
  • Research Microchip's PIC18F USB device documentation
  • Explore FTDI's UM232R module specifications and usage
  • Learn about V-USB firmware for Atmel AVR microcontrollers
  • Study differential signaling for USB communication
USEFUL FOR

Electronics hobbyists, engineering students, and developers interested in microcontroller-based USB interfacing and control systems.

Sathhin
Messages
1
Reaction score
0
Hey all,
I'd like to apologise in advance if my post/question seems overly ignorant in any way, also this is sort of an "Hello Forum" and questions combined. I've not used a forum before for help with electronic projects :) I've been looking at basic relay/switching control from a computer so that eventually I can build up to using it in conjunction with RC circuits or what not to do all sorts of fun things. However the most material I've come across is C++ interfacing with the old serial ports.

I have a fair working understanding of both C++ & Electronic design but I won't claim to be anywhere near knowledgeable on either, I'm still studying engineering at college...

Anyway, on to my question. Is there any material related to using USB PICs as simple IO devices? I don't really want to seem to be asking for a hand out, just interested if there is any reading material available? As I'll gladly get my head in a book. I have no idea where to begin with regards to programming a PIC, especially with USB interfacing, since it's all ASM as I understand? Just wondered if anyone had any advice on where I should go with this?

Cheers in advance for any info you can provide and also, sorry for the quality of this first post :)
-Sathhing
 
Engineering news on Phys.org
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2651&param=en534491
 
I used to design controller with USB interface. I used micro controllers from Cypress. At the time, they had a whole family of chips based on Intel 8051 micro controller. Go on their website and see what they have today.

BTW, I don't think you can use solderless breadboard for USB like the picture in one of the link. USB II is 400MHz! You have to have balance differential 90ohm lines for that. USB is RF in every sense. Those plug in wire bread board is no good for any significant frequency.
 
You can probably do low speed USB (<1.5 Mbps) on a breadboard without too much difficulty, but anything higher would probably be difficult.

For quick and dirty (and reusable) USB, you can get FTDI's UM232R (about $25 from most vendors):
http://www.ftdichip.com/Products/Modules/DevelopmentModules.htm#UM232R

They're based around the FTDI FT232R family of chips (virtual com port and lower-level drivers are available for Windows, Mac, and Linux), which are the same ones used in most of the good USB-RS232 adapters (which also use the aforementioned drivers). Pretty good throughput (supposedly up to 3+ Mbps) and you can use standard UART handling and programming (on both the PC and micro side).

There's also an emulated (but low-speed, i.e. 1.5 Mbps) USB firmware for the Atmel AVR--V-USB. I don't know much about it, but I believe it's the same one used in more recent variants of some Arduinos (I believe older ones used the aforementioned FTDI).

Not super fast, but good enough for hobbyist use in an era where serial ports are going extinct.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
Replies
2
Views
2K
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
11
Views
2K
Replies
6
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
12
Views
3K
Replies
2
Views
1K