Menu

Nice new demo - show casing 11 different capabilities

Anobium
2023-08-19
2023-08-23
  • Anobium

    Anobium - 2023-08-19

    Last week I purchased an Explorer 8 board to validate and resolve the PIC1867K40 microcontroller.

    As part of the testing of this microcontroller I have ported/created a mega demonstration to show many of the microcontroller capabilities. Many of the capabilities are common to PICs. AVRs and LGTs but this is a demonstration with 11 separate sub programs,

    Explorer 8 Board

    The demonstration comprises 11 sub programs utilizing the different peripherals while demonstrating the different capabilities of the Explorer 8 Development Board. Each sub program contains a brief description of the lab, code snippets, and discussions to make you become easily acquainted with the different peripherals and commands. This program also make use of the PPSTOOL, the easy-to-use tool that you can use to generate codes for a more efficient use of the CPU and memory resources.

    All written in GCBASIC language and are compatible with the latest GCBASIC compilers.

    Sub Programs

    The Sub Programs in this program are presented in the same order as they appear when you program a micrcontroller. You can navigate through each lab by pressing the S2 button.

    • Lesson 1: Hello World (Turn On an LED)
    • Lesson 2: Blink
    • Lesson 3: Rotate (Moving the Light Across LEDs)
    • Lesson 4: Analog-to-Digital Conversion (ADC)
    • Lesson 5: Variable Speed Rotate
    • Lesson 6: Debounce
    • Lesson 7: Pulse-Width Modulation (PWM)
    • Lesson 8: Timer1
    • Lesson 9: Interrupts
    • Lesson 10: Sleep/Wakeup
    • Lesson 11: EEPROM Memory Operations
    • Lesson 12: GCLD
    • Lesson 13: NVM Memory Operations
    

    Using

    You can easily port this to other microcontrollers. The documentation is available on GitHub ( see URL below ) and you can examine these documents to aid porting.

    This will be included in the next release of the Demonstration Programs.

    URL

    Folder URL

    The URL to the GitHub folder is:

    https://github.com/GreatCowBASIC/Demonstration_Sources/tree/main/Vendor_Boards/Microchip_Explorer_8_Demo_Board

    Demonstration Program URL

    The URL to the program is:

    https://github.com/GreatCowBASIC/Demonstration_Sources/blob/main/Vendor_Boards/Microchip_Explorer_8_Demo_Board/Explorer8_Capability_demo.gcb

    The folder has the resources you need to port, plus working examples. These working examples will increase as the verification of other microcontrollers happens.


    I will use this demonstration program is future to test microcontrollers. In the past I have created programs to test the capabilities as part of verifying a microcontroller is supported by GCBASIC but this pulls these tests into one program. :-)

    Enjoy

     

    Last edit: Anobium 2023-08-23
  • Anobium

    Anobium - 2023-08-21

    Updated the Explorer 8 board demonstration program to include GCLD capabilities.

    So, the major demonstration now shows LCD via expander using SPI and GLCD via I2C on the same data bus. Clever.

    I have also posted an I2C hardware and software GLCD demonstration program.

     
  • Anobium

    Anobium - 2023-08-23

    Updated the Explorer 8 board demonstration program to include NVM Memory Operations

    The K40 now supports self-write capability to PROGMEM. The demo now write and reads to the K40 NVM memory. This is handled within the existing NVM library where it reads, erases and writes blocks of PROGMEM.

    Enjoy


    Whilst doing this... I hit an issue with Software I2C where is was not caching the state of the global interrupt flag. This is now resolved in the latest build #1271.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.