Resembles a DOS or UNIX shell commands using PIC16F4550 | LINUX Commands

Опубликовано: 18 Ноябрь 2024
на канале: Electronics Developer
221
like

Resembles a DOS or UNIX shell commands using PIC16F4550 | LINUX Commands | Check the functionality of DOS, UNIX or LINUX OS on PIC microcontroller | sd card interfacing to pic16f4550
-------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------
📌 Introduction
-------------------------
The CCS C compiler has a good example of using PIC microcontroller with SD card in FAT file format, this file is located in the examples folder (C:\Program Files\CCS\Examples), its full name is ex_fat.c (fat_ex_shell.c ). This topic shows how this example works, circuit diagram and Proteus ISIS simulation.

As written in the head of the file ex_fat.c:
This is a neat little shell utility that resembles a DOS or UNIX type shell in order to manipulate files on the FAT file system. This is mostly for demonstration purposes on how to use some of the basic functionality of the FAT library.

-------------------------
📌CCS C code
-------------------------
The following C code was tested with version 5.051, it gives some warnings which can be ignored.
I made some modifications to the original to work with the PIC18F4550 microcontroller and the circuit diagram shown above.

With the 8MHz crystal oscillator and by enabling PLL2 the microcontroller speed becomes 48MHz which is the highest speed of the PIC18F4550 microcontroller.

As a reminder, to be able to compile the C code below without errors, add the files mmcsd_m.c and fat_m.c to project folder

-------------------------
📌 Tags
-------------------------
#pic16f4550 #dos #linux

-------------------------
📌 DOS or UNIX commands Covered
-------------------------
1] 2:46 | help
2] 2:58 | mkdir
3] 3:23 | make
4] 3:47 | dir
5] 3:50 | append
6] 4:19 | cat
7] 5:30 | del
8] 5:51 | rmdir
9] 6:12 | format

📌 Tune With us so you never miss any update
--------------------------------------------------------------------------------------------------------------------------------------------------------------
🏷️Telegram : https://t.me/electronicsdeveloper

🏷️Facebook :   / electronicsdeveloper  

🏷️Instagram :   / electronics_developer  

🏷️Tweeter : https://twitter.com/Electronics_Dev?s=09

🏷️LinkedIn :   / electronics-with-shreyash  

🏷️Pinterest :   / electronics_developer  


Copyright Disclaimer under Section 107 of the copyright act 1976
--------------------------------------------------------------------------------------------------------------------------------------------------------------
Copyright Disclaimer under Section 107 of the copyright act 1976, allowance is made for fair use for purposes such as criticism, comment, news reporting, scholarship, and research. Fair use is a use permitted by copyright statute that might otherwise be infringing. Non-profit, educational or personal use tips the balance in favour of fair use.

---------------------------------------------------------------------------------------------------------------------------------------------------------------
About Electronics Developer : YouTube certified creative essentials and asset monetization