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

Комментарии • 64

  • @marcodomingo6763
    @marcodomingo6763 8 лет назад +6

    Best PIC tutorial channel on youtube!

    • @StudentCompanion
      @StudentCompanion  8 лет назад +2

      +Marco Domingo Thanks. We appreciate your feedback.

  • @StudentCompanion
    @StudentCompanion  9 лет назад +5

    You can download the source code of this tutorial at: www.studentcompanion.co.za/pic-microcontroller-communication-with-spi-bus-xc8/

    • @Porco_Utah
      @Porco_Utah 2 года назад

      this link is no longer working to download software example.

  • @tota896
    @tota896 9 лет назад +4

    Best MPLAB XC8 channel. Great tutorials. Keep it up guys.

  • @keshenanaidu7160
    @keshenanaidu7160 9 лет назад +4

    Thank you very much for this great tutorial again. Much appreciated.

  • @StudentCompanion
    @StudentCompanion  9 лет назад +2

    We appreciate all your feedback guys. Thank you.

  • @hicham3341
    @hicham3341 9 лет назад +5

    سلام عليك جزاك الله خيرا والله اكبر

  • @FloppyEmulatorPicF
    @FloppyEmulatorPicF 4 года назад +1

    very good

  • @AV1461
    @AV1461 8 лет назад +1

    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.

    • @StudentCompanion
      @StudentCompanion  8 лет назад +1

      OK. Good to hear. If you follow the tutorial attentively you'll see the code that we wrote.
      Thanks

    • @AV1461
      @AV1461 8 лет назад +1

      Yes. It was the first time I watched it. I'm sure I'll be able to understand.

    • @StudentCompanion
      @StudentCompanion  8 лет назад +1

      Great. thanks for watching our videos.

  • @StudentCompanion
    @StudentCompanion  8 лет назад +4

    Please note: PIC18F26K20 oparate with 3.3V eventhough in this simulation we use 5V. In your hardware 3.3V should be used

  • @t1d100
    @t1d100 7 лет назад +1

    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?

    • @StudentCompanion
      @StudentCompanion  7 лет назад +1

      +t1d100 Hi. The simulator is called Proteus from
      www.labcenter.com/

  • @friendman2001
    @friendman2001 8 лет назад +3

    In the pin module.. do you leave WPU checked or unchecked during code configuration for SPI for slave or master

    • @StudentCompanion
      @StudentCompanion  8 лет назад +4

      +cheece2001 unchecked. You can download the source code of that project on our website.

    • @friendman2001
      @friendman2001 8 лет назад +3

      +Student Companion SA thankks :)

    • @StudentCompanion
      @StudentCompanion  8 лет назад +3

      +cheece2001 you are welcome!

  • @jaroddavid1074
    @jaroddavid1074 4 года назад +1

    Can you make a tutorial like this one using mikroC?

    • @StudentCompanion
      @StudentCompanion  4 года назад +1

      Hi, here is the equivalent tutorial with mikroC: ruclips.net/video/v5X7a6n-QEM/видео.html

  • @dr.explorer7082
    @dr.explorer7082 4 года назад +1

    do you tutorial on tft display module interfacing with pic mcu???
    lot of helpful.... it will

    • @StudentCompanion
      @StudentCompanion  4 года назад +1

      Hi, currently we don't have. But we will consider it in the future

  • @jaikrish50
    @jaikrish50 4 года назад +1

    can u please post a code for ccs c compiler

    • @StudentCompanion
      @StudentCompanion  4 года назад +1

      Hi. Unfortunately we don't program wuth CCS compiler. You can find out from other tutorials that support it.

  • @manuelarellanoconde8735
    @manuelarellanoconde8735 7 лет назад +2

    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.

    • @StudentCompanion
      @StudentCompanion  7 лет назад +1

      +Manuel Arellano Conde what is data logging module v1.0? Any SPI connection should be the same using SDI, SDO, CLK and CS pins.

    • @manuelarellanoconde8735
      @manuelarellanoconde8735 7 лет назад +1

      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.

    • @StudentCompanion
      @StudentCompanion  7 лет назад +1

      +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.

    • @manuelarellanoconde8735
      @manuelarellanoconde8735 7 лет назад +1

      Ok. Thank you!

    • @StudentCompanion
      @StudentCompanion  7 лет назад +1

      +Manuel Arellano Conde you are welcome!

  • @carlossamaniego9056
    @carlossamaniego9056 7 лет назад +1

    what if i want to read a 12 bit binary number from the slave? in my case, from a MAX6675.

    • @StudentCompanion
      @StudentCompanion  7 лет назад +1

      +Carlos Samaniego you can use the procedure.

    • @carlossamaniego9056
      @carlossamaniego9056 7 лет назад +1

      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.

    • @carlossamaniego9056
      @carlossamaniego9056 7 лет назад +1

      if (SW_Pressed == 0)for (int countdelay=0; countdelay

    • @StudentCompanion
      @StudentCompanion  7 лет назад +1

      +Carlos Samaniego what are you trying to achieve?

    • @carlossamaniego9056
      @carlossamaniego9056 7 лет назад +1

      i want to use the temperature lecture from the MAX6675 to control five LED that turn on when temperature rise up.

  • @kitaspidate5835
    @kitaspidate5835 6 лет назад +1

    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

    • @StudentCompanion
      @StudentCompanion  6 лет назад +1

      Your question is not clear. This is SPI Communication tutorial which us diffetent to USB communication. What are you trying to do?

    • @kitaspidate5835
      @kitaspidate5835 6 лет назад +1

      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

    • @StudentCompanion
      @StudentCompanion  6 лет назад +1

      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.

    • @StudentCompanion
      @StudentCompanion  6 лет назад +2

      Read this article to learn more on Bootloarders: www.microchip.com/promo/8-bit-bootloader

    • @kitaspidate5835
      @kitaspidate5835 6 лет назад +1

      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?

  • @cantaldianebernadetteo3256
    @cantaldianebernadetteo3256 Год назад

    hello can you make SPI for dsPIK33CK256MP508