USB to UART bridge using PIC18F4550

General discussion on mikroC PRO for PIC.
Author
Message
T.Jackson
Posts: 31
Joined: 13 Sep 2010 09:00

Re: USB to UART bridge using PIC18F4550

#16 Post by T.Jackson » 14 Sep 2010 07:33

I mean, without relying on libs -- you should be able to do an Keypad-based engine immobilizer with under 500 bytes of program space.

Same goes for a Speed Limiter / Voltmeter (or similar) for your car.

T.Jackson
Posts: 31
Joined: 13 Sep 2010 09:00

Re: USB to UART bridge using PIC18F4550

#17 Post by T.Jackson » 14 Sep 2010 07:37

The problem with libs is that they need to throw in everything that's in the package in prog memory.

There might be 200 functions in them and you only make use of 3 of them.

What a waste of resources that is!

Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

Re: USB to UART bridge using PIC18F4550

#18 Post by Dany » 14 Sep 2010 16:11

T.Jackson wrote:The problem with libs is that they need to throw in everything that's in the package in prog memory.
There might be 200 functions in them and you only make use of 3 of them.
What a waste of resources that is!
Actually, only the procedures that are used in the program are linked into the final product. :D
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

Re: USB to UART bridge using PIC18F4550

#19 Post by Dany » 14 Sep 2010 16:18

constructor wrote:Hi T.Jackson and thank you for your quick reply,
I'd like to develop a small external device for my iPhone where the the data from the iPhone's USB port will be accessible from an other module that I would like to connect, that uses the UART interface.
[iPhone -> USB -> PIC18F4550 -> UART module]
I know that iPhone has a built - in UART port but it won't offer baud rates > 57600bps. Because I would like to run the module's UART @ 921600 bps, I have to go this way.
So... anyway to get started with the mikroC USB Library?
Thank you.
This will be difficult with the available software. To make [iPhone -> USB -> PIC18F4550 -> UART module] you need USB host software in your PIC, and as far as I know mE does not have that, see the comment of drdoug. Furthermore I do not know if it is possible to make an 18F4550 function as an USB host, see http://www.mikroe.com/forum/viewtopic.p ... st#p129961.
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

Post Reply

Return to “mikroC PRO for PIC General”