CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

18f4550+barcode reader

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
kumsaatci



Joined: 18 Jun 2010
Posts: 1

View user's profile Send private message

18f4550+barcode reader
PostPosted: Sat Jun 19, 2010 8:05 am     Reply with quote

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

View user's profile Send private message

PostPosted: Sat Jun 19, 2010 8:34 am     Reply with quote

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

View user's profile Send private message

PostPosted: Sat Jun 19, 2010 12:17 pm     Reply with quote

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. Very Happy

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. Shocked
- Something else like FTDI Vinculum component.


Thank you in advance.
bungee-



Joined: 27 Jun 2007
Posts: 206

View user's profile Send private message

PostPosted: Sat Jun 19, 2010 12:55 pm     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group