Connect Flash Drive to PIC

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

Connect Flash Drive to PIC

Postby tzyuen1122 » Tue Feb 23, 2016 10:59 am

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?
tzyuen1122
Greenhorn
 
Posts: 3
Joined: Thu Jul 04, 2013 1:42 am

Re: Connect Flash Drive to PIC

Postby ZaM » Tue Feb 23, 2016 12:21 pm

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.
ZaM
Moderator
 
Posts: 78
Joined: Tue Nov 23, 2010 4:16 pm

Re: Connect Flash Drive to PIC

Postby Idris » Tue Feb 23, 2016 4:13 pm

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.
Cytron Technologies invest time and resources providing tutorial, training and support for STEM education and maker movement. We need your support by purchasing products from Cytron Technologies. Thanks.
http://www.cytron.com.my
User avatar
Idris
Moderator
 
Posts: 409
Joined: Thu Mar 22, 2012 5:28 pm
Location: Pulau Pinang

Re: Connect Flash Drive to PIC

Postby tzyuen1122 » Tue Feb 23, 2016 8:48 pm

Thanks for reply. If connect PIC microcontoller with one chip, then communicate with I2C or SPI, so able to that?
tzyuen1122
Greenhorn
 
Posts: 3
Joined: Thu Jul 04, 2013 1:42 am

Re: Connect Flash Drive to PIC

Postby ober » Thu Feb 25, 2016 8:37 am

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.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 8 guests