170 likes | 369 Views
MP3 player on PC using PIC controller via USB. Supervisor: Dmitry Sokolik Performed by: Yoav Gershoni Shachar Faigenblat. Project Overview. Playing MP3 files that located in the PC Controlling the song selection using the PIC. Establish a USB based connection for control.
E N D
MP3 player on PC using PIC controller via USB. Supervisor: Dmitry Sokolik Performed by: Yoav Gershoni Shachar Faigenblat
Project Overview • Playing MP3 files that located in the PC • Controlling the song selection using the PIC. • Establish a USB based connection for control. • Enable friendly user interface (LCD, switches).
Block diagram PIC board
Project Specification • Components: • PIC 18F452 evaluation board. • DLP 245. • Power supply: • 5v for the evaluation board, PIC and USB bus. • Interfaces: • USB bus between the PIC board and the PC
Software Architecture • PC Main function COM Port functions USB Driver and Bus
Software Architecture • PIC Main function LCD Driver functions DLP Driver functions LCD Display USB Bus
Software Development Tools • PIC: • MCC18 compiler on MPLAB IDE. • PC: • Code in C, with Visual Studio compiler. • USB protocol: • USB Inspector.
DLP 245 – USB Device • Provides parallel interface to USB bus. • Easy to handle. • No USB protocol knowledge required. • PC Driver are Virtual COM Port.
DLP 245 – PIC connection PIC DLP 245
LCD • 2x16 Characters. • LCD controller provide easy handling. • Parallel bus to LCD controller.
LCD BUS Waveform Since the LCD has only 4 bits the E line has to toggle twice for each Data/command transaction.
LCD Initialization proccess It appears that the initialization process of the LCD module isn't strait forward as one would think.
Conclusions • Every thing works this time!! • Datasheets don’t always have all the information needed to make things work. (LCD) • HW doesn’t always work as you intended it would (Philips). • The Internet provides a useful knowledge base, with the experience of many skilled people.