On 02/11/2011 10:29 PM, mattschinkel wrote:
Well, it is an option since you only need to change the device include
block and pins. PIC18F4458 should be good (2kb ram). I see it runs up
to 48mhz which is great.
Hmmm... I was planning on using a PIC16F887 for the PATA controller...
but if the
PIC18F4458 will work better... I can spare one for that use.
Will USB use a lot of the 2kb ram? This could be an issue. Are you
planning to use USB?
The only use I will have for USB on the PIC is for firmware upgrades.
Other than that... no.
I want to use a PIC16F887 chip with 2 Hard Drives (using the CS0 and CS1
pins
for selection), and a second PATA interface for later use.
that is not the purpose of those pins, but you are right, it should
not be difficult to change the code. You can see the variable
"pata_hd_slave" in the hard disk library. It is untested, but changing
it may change between master/slave.
According to Wikipedia (http://en.wikipedia.org/wiki/Parallel_ATA ) the
CS pins are
"Chip Select" pins... in IC terms... that selects which chip the main
controller wants to talk to.
Perhaps it's not what those pins are used for... but that's what the
terminology suggests.
I'm sure it is... but as I said in my previous email... I chose to do it
this way, in an effort to make this player highly modular.
Sorry, I had only read quickly earlier. I've thought about just using
slave SPI devices to attach other things you need.
If you add radio, one PIC can control the hard disk and mp3 player. A
separate PIC can control the radio. No data transfer needs to be done
through each of these, you just need a way to switch the headphone
jack audio from MP3 to Radio and others.
Actually... I was thinking of merging the Human Interface Controller
with the Radio
controller after your earlier email, as having separate chips does seem
rather wasteful.
I was thinking of having one of the Tuners go to the Line/Mic input of
the VS1053B to allow me to
record on occasion... and the other would go directly to the separate
audio amplifier I will also be
adding to this box.
Doing data transfer is
probably a waste of resources, but maybe you have another reason for
doing so. You will need resources/speed to keep up with high data rate
music files.
Hence the use of SPI over the RS232 link used in the 16F877 version of
the schematic.
I want to keep the hard drive controller separate for the simple reason
that it will allow me
to add upto 4 PATA drives per PIC device.
I may eventually add a CD player to the media player, as well, so having
a generic PATA controller
is very useful in my case.
Also... using SPI will allow me to add many PATA Controllers as my
digital media collection expands.
I've already filled 2 320GB PATA hard drives with my collection, and
since PATA seems to be limited in
size (500GB drives are the highest I've ever seen PATA go), the ability
to add more controllers as my
collection expands is critical.
I think you can use VS1053B for "audio in" and microphone.
I was just letting you know my plans. I would like to complete a
portable player, and also a player for my car. The player for my car
will hopefully have WIFI for updating songs over night as I sleep. I
also have no spare cash, this is why my project remains incomplete.
WiFi seems like overkill for such an app. Have you considered ZigBee?
Would probably be easier to add to your project than WiFi.
ZigBee boards available here: http://www.sparkfun.com/categories/111
They're relatively cheap too (~$23 USD).
I'm not sure if the GLCD thing is going to work out for me, it is too
much for PIC. I'm going to try PIC18F46K22 at 64mhz. I think drawing
text may still be slow. I was even thinking about going with a
dedicated GLCD graphics device , does anyone know any good ones?
What kind of GLCD are you using? What controller does it have?
Interfacing a native TFT with a PIC is a fools errand... but using a
GLCD with a
SED or T6963C controller (or similar) should be fairly easy for a PIC.
Examples:
http://www.microchip.com/forums/tm.aspx?high=&m=188814&mpage=1#189174
http://www.sxlist.com/techref/io/lcd/LPH7366.htm
http://www.sxlist.com/techref/member/peter_Oonion-bt-/index.htm
http://www.microchip.com/forums/tm.aspx?high=&m=557138&mpage=1#557138
http://www.compsys1.com/workbench/On_top_of_the_Bench/T6963C/t6963c.html
Those are just a few quick examples.
I have also seen on the net that some people put more then one 4x20
LCD beside each other to make a big lcd.
Sure... you can also get 4x40 LCDs... but they can get expensive.
Lyos Gemini Norezel
--
You received this message because you are subscribed to the Google Groups
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jallib?hl=en.