13 thoughts on “Old Entries

  1. Your Tutorials are absolutely priceless. Why in the world did you stop abruptly. Waiting for more tutorials on dsPIC…

    1. I am working on PWM but before that PPS has to be done. I have a draft for PPS that i will review and post it today. PWM this week. Followed by that UART and ADC. There is DMA that should also go along with it.
      Thanks for giving a push. Will keep it rolling pretty soon.

  2. Hello,
    I am working on a feflow project ; https://github.com/andysworkshop/awreflow
    and I got stucked on
    Flash the graphics to the onboard SPI flash
    You need a second STM32 development board to do this and that board needs to have an SDIO SD card slot and a USART port. I use an STM32F103 board that I got on ebay to do this.
    Copy the spiflash directory from firmware/ux to the root of an SD card and insert the card into your development board.

    Flash the stm32plus flash_spi_program example to your development board.

    Connect your development board to the oven controller using the following pinout (development board => controller board).
    Remove the PWR_SEL jumper to isolate the voltage regulator. Remove your ST-Link/v2 if it’s connected.
    Connect a serial cable to your development board’s USART1 port and run a PC serial program so you can see the output. Configure the program for a 57600/8/N/1 protocol.

    How do I use serial cable to connect to Disc F4 and get the Flash files to Spansion Flash?
    Can you help me please?

    mike

  3. hi, i was wondering if you could post a tutorial of Flash memory for PIC24.
    I really like your tutorials.

    1. If you are asking for an external Flash memory like EEPROM, pick one with serial (SPI/I2C) interface and follow the help documents in your compiler folder. I haven’t got time to work on this blog for quite some time. You should be able to see some new posts from next month onwards. Thanks for you comments. Hope its not time critical for you.

  4. Hello,

    My question is how due i install the peripheal – libraries for the pic18f46k20, I tried using the
    pic18-v2.00rc3-windows it says can`t find the foulder xc8.

    How due i link the lbraries so my program can use the libraries. When i compile my program
    i get the alarm below.

    #include “p18f46k20.h”
    #include
    #include
    #include
    #include

    newmain.c:76: error: (141) can’t open include file “plib/usart.h”: No such file or directory

  5. Hi,

    I need to use the peripheral library, I can find the list of functions per module e.g. ADC but I cannot find the documentation and parameters passed to each module like the post https://singularengineer.com/tag/xc8-compiler/

    I would appreciate if you could point me to the XC8 peripheral documentation.

    Very interesting blog,

    Thanks,

    1. C:\Program Files (x86)\Microchip\xc8\\docs

      Since plib is a legacy library, I’m surprised lot of things are missing. You will still find “MPLAB_XC8_Peripheral_Libraries.pdf” file will give you enough information. You might have to still dig into header file to find more stuff in there. Stuff in this blog is obsolete now. So good luck.

Leave a Reply

Your email address will not be published. Required fields are marked *