View previous topic :: View next topic |
Author |
Message |
kumsaatci
Joined: 18 Jun 2010 Posts: 1
|
18f4550+barcode reader |
Posted: Sat Jun 19, 2010 8:05 am |
|
|
hello
I want to mount 18f4550 with barcode reader.
barcode reader has a usb cable.
actually I dont know how can I do
this is my thesis
please somebady help me
thank you very much |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19504
|
|
Posted: Sat Jun 19, 2010 8:34 am |
|
|
You can't....
You need to learn the difference between a USB _slave_, and a USB _master_ device.
The PIC184550 is a USB slave. So is the barcode reader. For any USB communication, one of the devices must be a master.
Solutions:
1) FTDI Vinculum.
2) A PIC with USB OTG support.
A search here will find a lot more about this (and just how complex it may be). If the barcode reader is seen on a PC, as a COM port, then the Vinculum, has 'demo' software available off the shelf, that would provide the needed operation. Otherwise it will get more complex...
Best Wishes |
|
|
MiniMe
Joined: 17 Nov 2009 Posts: 50
|
|
Posted: Sat Jun 19, 2010 12:17 pm |
|
|
Ttelmah, Hi
There is no doubt that you got great amount of experience and wide overview over embedded systems.
Maybe you can answer choice based question.
To add simple USB CDC feature to HVAC application device. Reason is to show history based information from MCU on PC. Since i do not have any experience regarding RS 232, i say ... Just like Proteus ISIS virtual terminal screen.
What is most simplest still working solution.
- Choosing USB pic like 18F4550
- Using Microchip new product: MCP2200 - USB-to-UART serial converter. i like to think that it is component as simple as resistor. To add it between UART and USB port.
- Something else like FTDI Vinculum component.
Thank you in advance. |
|
|
bungee-
Joined: 27 Jun 2007 Posts: 206
|
|
Posted: Sat Jun 19, 2010 12:55 pm |
|
|
If you don't want to bother yourself and uC with USB communication, then it is easier to take some of UART<->USB chips available and let them do all the work around USB stack etc.
Now here is of course question of price, if adding of additional hardware still meets your budget. |
|
|
|