U S B is essentially a serial protocol . But the data transferring is in differential. In Usart the data is understand with reference to ground. So you first need a usb host. Otherwise you can chose pic 18f4550 it already contain an usb client. It is pin compatible with pic16F877
U S B is essentially a serial protocol . But the data transferring is in differential. In Usart the data is understand with reference to ground. So you first need a usb host. Otherwise you can chose pic 18f4550 it already contain an usb client. It is pin compatible with pic16F877
Hi thunderboympm, thank you for your reply.
USB host? What do you mean? Because from 16F877a i saw i can go for MSSP or USART.
are you saying that USB = serial protocol = use USART??
Any good and helpful links you could share with me. please?
U S B is essentially a serial protocol . But the data transferring is in differential. In Usart the data is understand with reference to ground. So you first need a usb host. Otherwise you can chose pic 18f4550 it already contain an usb client. It is pin compatible with pic16F877
Hi thunderboympm,
glad to receive your reply. What do you mean by havng a "usb host?"
I would like to use PIC16F877a.
Therefore, I am assuming the components I will be needing are,
a PIC16F877a , a cable with one end having the USB head...
I have surfed through the internet and found that some people commented using max232 or rs232...hwo is that so?
i know thunderboy is asking me to use PIC18f4550..but I am assigned with PIC16F877a...
I believe there should be a way to it right?
using 16F877a? please?
i know thunderboy is asking me to use PIC18f4550..but I am assigned with PIC16F877a...
I believe there should be a way to it right?
using 16F877a? please?
Not really - use an FT232 to convert from USB to serial, and connect the PIC via serial. Or just use a USB/Serial lead, which will probably be cheaper.
If you want 'real' USB use one of the 18F series that have USB support in hardware.
i know thunderboy is asking me to use PIC18f4550..but I am assigned with PIC16F877a...
I believe there should be a way to it right?
using 16F877a? please?
USB is complex. For this reason microchip provides the USB stack (code) and it is written in c. Microchip also provides micro controllers with built in USB hardware.
If you have a boss asking you to do this I doubt he understands what he is asking. If it is a school assignment good luck.
Search for an old thread started by Brad Minch where he posted about implementing USB in assembler.
It is, by far, the longest thread in the USB forum and basically worth the effort if you really want to approach an Assembler implementation.
I personally did and built the circuits for each "lab" using the 18F4550.
Point is that, besides spending LOT of time you have to be prepared to continuous after that, mostly on you own.
When you managed to understand the basics, look for the posts of another member, Olin Lathrop, who implemented a working design fully in Assembler. IIRC he posted software or links to it.
Sure you will spend time.
Just a suggestion: prior going there read the basics somewhere else.