smraise
Junior Member level 1

I would like to build a PIC project using PIC18F4553 with the below features.
1. USB interface so communicate with PC host application for bidirectional real time data exchange, which can be further process on PC,
e.g. Analogue or Digital Scope channels.
2. Use LCD and select buttons on board to run the program from the SD card attached using SPI interface with µc. The SD card has multiple programmes having different port settings as per the program requirement.
e.g. first program read this port as 5 analogue channels
second program use this port for 5 digital channels
Analogue - Digital
PIN µc pins
================================
1 || 2 A-D
2 || 3 A-D
3 || 4 A-D
4 || 5 A-D
5 || 6 A-D
================================
e.g.
Third program use µc to control motors
Forth program use µc to TX as remote control
Motor control /remote control
================================
1 || 15 D
2 || 16 D PWM2
3 || 17 D PWM1
4 || 25 D TX
================================
The beauty is that we just need to update or add as many as hex files on the SD card and on runtime we select which program we now want to run on µc, its actually give me a feeling of a micro gadget box in my pocket.
I read lot of threads and googling a lot and end up with the option of multitasking operating systems. either one. But when I read in detail I have to include all the programme on the time of compilation and all of them then run in parallel ....
I actually want to run an application from SD card when I want it to run and I can add remove modify the card any time like we do in PC's, Have OS and then we install applications and remove applications. Something like that with PIC.
Thanks in advance.
∞∞∞ΩµΠφΔΘΛΣΦΨβδζψηθλξσω²§∑∫∞∞∞
1. USB interface so communicate with PC host application for bidirectional real time data exchange, which can be further process on PC,
e.g. Analogue or Digital Scope channels.
2. Use LCD and select buttons on board to run the program from the SD card attached using SPI interface with µc. The SD card has multiple programmes having different port settings as per the program requirement.
e.g. first program read this port as 5 analogue channels
second program use this port for 5 digital channels
Analogue - Digital
PIN µc pins
================================
1 || 2 A-D
2 || 3 A-D
3 || 4 A-D
4 || 5 A-D
5 || 6 A-D
================================
e.g.
Third program use µc to control motors
Forth program use µc to TX as remote control
Motor control /remote control
================================
1 || 15 D
2 || 16 D PWM2
3 || 17 D PWM1
4 || 25 D TX
================================
The beauty is that we just need to update or add as many as hex files on the SD card and on runtime we select which program we now want to run on µc, its actually give me a feeling of a micro gadget box in my pocket.
I read lot of threads and googling a lot and end up with the option of multitasking operating systems. either one. But when I read in detail I have to include all the programme on the time of compilation and all of them then run in parallel ....
I actually want to run an application from SD card when I want it to run and I can add remove modify the card any time like we do in PC's, Have OS and then we install applications and remove applications. Something like that with PIC.
Thanks in advance.