45- SPI Communication part 2: Config with MPLAB Code Configurator | MPLAB XC8 for Beginners Tutorial
HTML-код
- Опубликовано: 6 фев 2025
- Learn the basics of SPI communication with PIC Microcontroller. Learn to configure easily your SPI module with MPLAB Code Configurator (MCC). Send/receive data to/from slave devices.
For more info and download source code: www.studentcom...
Have questions, need assistance or looking for source code? Engage with us and please do not forget to support us with any donation:
Please Donate: www.paypal.com...
Patreon: / studentcompanion
Facebook: / studentcompanion
Twitter: / stcompanion
#SPI #SPICommunicationPICMicrocontroller #MPLABCodeConfigurator #MCC #ProgrammingMicrocontrollers #MicrocontrollersTutorials #MPLABTutorials #StudentCompanionElectronics #PICmicrocontrollerTutorial #MPLABXC8BeginnersTutorial
Best PIC tutorial channel on youtube!
+Marco Domingo Thanks. We appreciate your feedback.
You can download the source code of this tutorial at: www.studentcompanion.co.za/pic-microcontroller-communication-with-spi-bus-xc8/
this link is no longer working to download software example.
Best MPLAB XC8 channel. Great tutorials. Keep it up guys.
+tota896 Thank you
Thank you very much for this great tutorial again. Much appreciated.
+keshena naidu Thank you for watching.
We appreciate all your feedback guys. Thank you.
سلام عليك جزاك الله خيرا والله اكبر
+Hicham Bougaa Thank you
very good
Thank you!
Just the right tutorial for me! Very good! I just have one thing to point. It wasn't clear which part of the code was wrote by you and what part was wrote by MplabX, but I think I can figure it out.
OK. Good to hear. If you follow the tutorial attentively you'll see the code that we wrote.
Thanks
Yes. It was the first time I watched it. I'm sure I'll be able to understand.
Great. thanks for watching our videos.
Please note: PIC18F26K20 oparate with 3.3V eventhough in this simulation we use 5V. In your hardware 3.3V should be used
What is the simulator that you are using at 15:32? It has a built in oscilloscope. May I have a link for it, please?
+t1d100 Hi. The simulator is called Proteus from
www.labcenter.com/
In the pin module.. do you leave WPU checked or unchecked during code configuration for SPI for slave or master
+cheece2001 unchecked. You can download the source code of that project on our website.
+Student Companion SA thankks :)
+cheece2001 you are welcome!
Can you make a tutorial like this one using mikroC?
Hi, here is the equivalent tutorial with mikroC: ruclips.net/video/v5X7a6n-QEM/видео.html
do you tutorial on tft display module interfacing with pic mcu???
lot of helpful.... it will
Hi, currently we don't have. But we will consider it in the future
can u please post a code for ccs c compiler
Hi. Unfortunately we don't program wuth CCS compiler. You can find out from other tutorials that support it.
Excellent tutorial! Could you give us some ideas of how to connect a PIC16F877A with a data logging module V1.0 using the SPI protocol? I would really appreciate it.
+Manuel Arellano Conde what is data logging module v1.0? Any SPI connection should be the same using SDI, SDO, CLK and CS pins.
It's a data logging shield designed to be used only with Arduino Modules that integrates an SD card to store information and a Real Clock Timer (RTC) inside. I've got one but I don't know how to program it so it can work with a PIC microcontroller.
+Manuel Arellano Conde we can't assist you with that as it will require us a lot of time which we don't have.
Arduino is not based on PIC microcontroller it based on ATMega microcontroller. The Arduino libraries can't work with PIC Microcontrollers. You can write your own libraries for this based on that hardware. I see it had an SD Card and an RTC chip, check our SD card and DS1307 RTC videos to learn more.
Ok. Thank you!
+Manuel Arellano Conde you are welcome!
what if i want to read a 12 bit binary number from the slave? in my case, from a MAX6675.
+Carlos Samaniego you can use the procedure.
im really confuse cuz the "SPI_Exchange8bit(0x00)" funtion exchange a single byte (8 bits), i need to read a 12 bit number from a temperature digital converter. also i dont know how to use the data received from the slave.
if (SW_Pressed == 0)for (int countdelay=0; countdelay
+Carlos Samaniego what are you trying to achieve?
i want to use the temperature lecture from the MAX6675 to control five LED that turn on when temperature rise up.
Hi Sir,Can I transfer my .hex files which I built via mplab xc8 into pic microcontrollers via this usb transmissions?(I didn't text on it coz website login needed thatsy texting here) I have an arduino,how can I use it to transfer/burn my .hex code into pic? for pic18f4550 I couldn't find MISO,MOSI pins pls help me with the pins to be chosen for pic18f4550
Your question is not clear. This is SPI Communication tutorial which us diffetent to USB communication. What are you trying to do?
not regarding this,I have read USB communication in ur stdcomp website,I couldn't comment there,thatsy tried asking from here. Im gonna do some of ur projects but I don't wanna buy a pic kit,so I'm trying for a easy way to upload the .hex files we create via mplab into my pic microcontrollers. for that I have an arduino uno board,so I need a suggestion how can I do it? via USB communication is it possible? or spi communication ? but I cannot find any MISO/MOSI pins in pic18f4550.pls help sir
You can load an hex file with USB just like the Arduino. You can also use other communication protocol such as USART. But you'll need a Bootloarder inside your PIC first. Just like the Arduino it microcontroller comes with a bootloader.
Read this article to learn more on Bootloarders: www.microchip.com/promo/8-bit-bootloader
thank you but a small doubt, did u mean for usb communication also bootloader needed or for usart & other communications? so if I follow the usb comm steps can I simply transfer the .hex right?
hello can you make SPI for dsPIK33CK256MP508