Page 1 of 1

Connect Flash Drive to PIC

PostPosted: Tue Feb 23, 2016 10:59 am
by tzyuen1122
Hi, may i know how to connect flash drive to PIC microcontroller? Microcontroller that i using is PIC18F4520. The apllication that i want to do is use PIC microcontroller to play a music by connecting USB flash drive. Can i make it?

Re: Connect Flash Drive to PIC

PostPosted: Tue Feb 23, 2016 12:21 pm
by ZaM
hi, i am not sure PIC18F4520 have or can act as USB HOST, maybe you can survey for PIC18F4550 or can search from this link. http://www.microchip.com/ParamChartSearch/chart.aspx?branchID=1005. To handle music file also challenging.

Re: Connect Flash Drive to PIC

PostPosted: Tue Feb 23, 2016 4:13 pm
by Idris
Hi tzyuen1122,

FYI, PIC18F4520 not support for USB host, and currently all 8-bit PIC (PIC16 & PIC18) don't support that feature.
You can consider to explore 16-bit PIC (PIC24 series) or 32-bit PIC for this application.

Thanks.

Re: Connect Flash Drive to PIC

PostPosted: Tue Feb 23, 2016 8:48 pm
by tzyuen1122
Thanks for reply. If connect PIC microcontoller with one chip, then communicate with I2C or SPI, so able to that?

Re: Connect Flash Drive to PIC

PostPosted: Thu Feb 25, 2016 8:37 am
by ober
tzyuen1122 WROTE:Thanks for reply. If connect PIC microcontoller with one chip, then communicate with I2C or SPI, so able to that?


Are you referring to USB pendrive? USB Pendrive is using USB to communicate, I2C or SPI will not help. But you are referring other chip, it will depends on that chip. If it is I2C, you will need to use I2C.