Microchip Developer Help
Getting Started with the Clock System of PIC32CM Microcontrollers - Part 1: Overview and Operation
updated
Links:
· PIC32CX SG Family of Microcontrollers
microchip.com/en-us/products/microcontrollers-and-microprocessors/32-bit-mcus/pic32-32-bit-mcus/pic32cmlx
· SAM E5x Microcontrollers
microchip.com/en-us/products/microcontrollers-and-microprocessors/32-bit-mcus/sam-32-bit-mcus/sam-e
· PIC32CX SG60 Curiosity Ultra Evaluation Board
microchip.com/en-us/development-tool/EV09H35A
· PIC32CX SG41 Curiosity Ultra Evaluation Board
microchip.com/en-us/development-tool/EV06X38A
· 32-bit Microcontroller Collateral and Solutions Reference Guide
ww1.microchip.com/downloads/aemDocuments/documents/MCU32/ProductDocuments/ReferenceManuals/32-bit-Microcontroller-Collateral-and-Solutions-Reference-Guide-DS70005534.pdf#page=8
· GitHub Reference Apps:
github.com/Microchip-MPLAB-Harmony/reference_apps/tree/master/apps/pic32cx_sg61_cult
github.com/Microchip-MPLAB-Harmony/reference_apps/tree/master/apps/pic32cx_sg41_cult
· MPLAB Discover:
mplab-discover.microchip.com/v2?dsl=PIC32CM+AND+LS60
mplab-discover.microchip.com/v2?dsl=PIC32CM+AND+LS00
mplab-discover.microchip.com/v2?dsl=PIC32CM+AND+LE00
· MPLAB® X IDE Essentials - 01: Installation and Ecosystem
youtube.com/watch?v=WSePR0jIeKI
· How to Set up the Tools Required to Get Started with MPLAB® Harmony v3 and MCC
youtube.com/watch?v=0rNFSlsVwVw&t=1s
Timestamps:
0:00 – Introduction to PIC32CX SG Family
0:42 – What makes them special
1:58 – Getting Started is a Breeze
2:12 – Project Creation with Harmony and MCC
3:06 – Need More Help? We've Got You Covered!
This features Microchip’s MCP6491 low input bias current op amps, the characteristics of photodiodes, and the strengths of the active photodiode current-to-voltage converter (i.e. photodiode amplifier). It utilizes a 5V power supply, inputs 0-50 microamps, and outputs a 300mV to 2.7 volts. The focus shifts to the design techniques of photodiode amplifier circuitry. Several key design points are discussed in order to improve the circuit’s performance depending on the application.
The video explains the relationship between Time Interval Error (TIE) and Phase Noise plots, illustrating how phase noise at specific frequency offsets represents the combined phase power of clock edges. It also discusses how spurs in the plot indicate deterministic phase noise sources, using an example of crosstalk between two clocks to show a significant phase noise increase at a particular frequency offset.
This video explores Time Interval Error (TIE), the deviation between a real clock's rising edge and an ideal clock's edge. TIE is explained through amplitude and frequency pairs in the phase domain using straightforward examples that illustrate the concept.
Link: microchip.com/en-us/tools-resources/develop/mplab-extensions-vs-code
Link: microchip.com/en-us/tools-resources/develop/mplab-extensions-vs-code
Link: microchip.com/en-us/tools-resources/develop/mplab-extensions-vs-code
Welcome to Microchip Technical Support. With Microchip’s highly diverse portfolio, sometimes finding relevant information might be tricky. In this video, we will show you how to quickly find help by navigating a wide variety of resources available.
0:26 - Searching the Microchip Website
0:56 - Selecting Products
2:05 - Exploring Collateral on Product Pages
3:03 - Searching for Example Codes
4:08 - Finding Answers in Forums and Knowledge Base Articles
5:10 - Looking for Training Resources
6:34 - Looking for a Complete Solution
Links:
· PIC32CM JH Family of Microcontrollers
microchip.com/en-us/products/microcontrollers-and-microprocessors/32-bit-mcus/pic32-32-bit-mcus/pic32cm-jh
· SAM C2x Microcontrollers
microchip.com/en-us/solutions/motor-control-and-drive/motor-control-products/32-bit-microcontrollers-for-motor-control-applications/sam-c2x-and-d2x
· PIC32CM JH01 Curiosity Nano Evaluation Kit
microchip.com/en-us/development-tool/EV29G58A
· PIC32CM JH01 Curiosity Pro Development Board
microchip.com/en-us/development-tool/ev81x90a
· 32-bit Microcontroller Collateral and Solutions Reference Guide
ww1.microchip.com/downloads/aemDocuments/documents/MCU32/ProductDocuments/ReferenceManuals/32-bit-Microcontroller-Collateral-and-Solutions-Reference-Guide-DS70005534.pdf#page=8
· GitHub Reference Apps:
github.com/Microchip-MPLAB-Harmony/core_apps_pic32cm_jh00_jh01
· MPLAB Discover:
mplab-discover.microchip.com/v2?dsl=PIC32CM+AND+JH
· MPLAB® X IDE Essentials - 01: Installation and Ecosystem
youtube.com/watch?v=WSePR0jIeKI
· How to Set up the Tools Required to Get Started with MPLAB® Harmony v3 andMCC
youtube.com/watch?v=0rNFSlsVwVw&t=1s
Timestamps:
0:00 – Introduction to PIC32CM JH Family
0:41 – What makes them special
1:25 – Getting Started is a Breeze
1:42 – Project Creation with Harmony and MCC
2:36 – Need More Help? We've Got You Covered!
The application reads the current room temperature from the temperature sensor on the I/O1 Xplained Pro Extension. The temperature read is displayed on a serial console periodically every 500 milliseconds. The periodicity of the temperature values displayed on the serial console is changed to 1 second, 2 seconds, 4 seconds and back to 500 milliseconds every time you press the switch SW0 on the SAM C21N Xplained Pro Evaluation Kit. Also, an LED is toggled every time the temperature is displayed on the serial console.
Links:
· SAM C21N XPLAINED PRO EVALUATION KIT page
microchip.com/en-us/development-tool/atsamc21n-xpro
· Microchip’s Microcontrollers and Microprocessors product page
microchip.com/en-us/products/microcontrollers-and-microprocessors
· MPLAB Reference Apps GitHub
github.com/Microchip-MPLAB-Harmony/reference_apps
· MPLAB Reference Apps Gitee
gitee.com/Microchip-MPLAB-Harmony/reference_apps
· GitHub link for SAM C21N Xplained Pro Evaluation Kit
github.com/Microchip-MPLAB-Harmony/reference_apps/tree/master/apps/sam_c21n_xpro
· Demo user guide
github.com/Microchip-MPLAB-Harmony/reference_apps/tree/master/apps/sam_c21n_xpro/samc21n_getting_started
· MPLAB® X IDE Essentials - 01: Installation and Ecosystem
youtube.com/watch?v=WSePR0jIeKI
· How to Set up the Tools Required to Get Started with MPLAB® Harmony v3 and MCC
youtube.com/watch?v=0rNFSlsVwVw
Timestamps:
0:00 – Introduction
0:13 – Prerequisite - Software
0:26 – Prerequisite - Hardware
0:54 – Project Scope and Steps
1:33 – Step 1: Setup the Hardware
1:39 – Step 2: Download the project from the kit page
1:53 – Step 3: Open the project and launch MCC
2:20 – Step 4: Check the peripheral configurations in MCC
4.19 – Step 5: Review the application code
4:58 – Step 6: Check the pin configurations
5:37 – More application demos on SAM C21N XPRO Xplained Pro Evaluation Kit
5:59 – More information on MPLAB Harmony
The MPLAB® Integrated Programming Environment (IPE) is a simplified application that provides an interface for microcontroller (MCU) production programmers that allows a technician to easily load, program and verify software and avoid the complexities of full-featured Integrated Development Environments (IDEs). This video will step you thru the IPE installation.
Links:
PIC32CM MC Family of Microcontrollers
microchip.com/en-us/products/microcontrollers-and-microprocessors/32-bit-mcus/pic32-32-bit-mcus/pic32cm-mc
SAM C2x Microcontrollers
microchip.com/en-us/solutions/motor-control-and-drive/motor-control-products/32-bit-microcontrollers-for-motor-control-applications/sam-c2x-and-d2x
PIC32CM MC00 Curiosity Pro Evaluation Kit
microchip.com/en-us/development-tool/ev15n46a
PIC32CM MC00 Curiosity Nano Evaluation Kit
microchip.com/en-us/development-tool/ev10n93a
PIC32CM MC00 Motor Control Plug-In-Module
microchip.com/en-us/development-tool/ev94f66a
32-bit Microcontroller Collateral and Solutions Reference Guide
ww1.microchip.com/downloads/aemDocuments/documents/MCU32/ProductDocuments/ReferenceManuals/32-bit-Microcontroller-Collateral-and-Solutions-Reference-Guide-DS70005534.pdf#page=8
GitHub Reference Apps:
github.com/Microchip-MPLAB-Harmony/reference_apps/tree/master/apps/pic32cm_mc00_cnano
github.com/Microchip-MPLAB-Harmony/reference_apps/tree/master/apps/pic32cm_mc00_curiosity_pro
MPLAB Discover:
mplab-discover.microchip.com/v2/category/com.microchip.code.examples?dsl=PIC32CM+AND+MC
How to Set up the Tools Required to Get Started with MPLAB® Harmony v3 and MCC
youtu.be/0rNFSlsVwVw?si=KDs18NlXOdu_bdPQ
MPLAB® X IDE Essentials - 01: Installation and Ecosystem
youtube.com/watch?v=WSePR0jIeKI
Getting Started with MPLAB® Harmony v3 Using MPLAB Code Configurator
youtube.com/watch?v=KdhltTWaDp0
MPLAB® Code Configurator Content Manager for MPLAB Harmony v3 Projects
youtube.com/watch?v=PRewTzrI3iE&t
0:00 – Introduction to PIC32CM MC
0:30 – What makes them special
1:07 – Getting Started is a Breeze
1:20 – Project Creation with Harmony and MCC
2:09 – Need More Help? We've Got You Covered!
The application reads the current room temperature from the temperature sensor on the I/O1 Xplained Pro Extension. The temperature read is displayed on a serial console periodically every 500 milliseconds. The periodicity of the temperature values displayed on the serial console is changed to 1 second, 2 seconds, 4 seconds and back to 500 milliseconds every time you press the switch SW0 on the SAM D21 Xplained Pro Evaluation Kit. Also, an LED is toggled every time the temperature is displayed on the serial console.
Links:
· SAM D21 XPLAINED PRO EVALUATION KIT page
microchip.com/en-us/development-tool/atsamd21-xpro
· Microchip’s Microcontrollers and Microprocessors product page
microchip.com/en-us/products/microcontrollers-and-microprocessors
· MPLAB Reference Apps GitHub
github.com/Microchip-MPLAB-Harmony/reference_apps
· MPLAB Reference Apps Gitee
gitee.com/Microchip-MPLAB-Harmony/reference_apps
GitHub link for SAM D21 Xplained Pro Evaluation
Kitgithub.com/Microchip-MPLAB-Harmony/reference_apps/tree/master/apps/sam_d21_xpro
· Demo user guide
github.com/Microchip-MPLAB-Harmony/reference_apps/tree/master/apps/sam_d21_xpro/samd21_getting_started
· MPLAB® X IDE Essentials - 01: Installation and Ecosystem
youtube.com/watch?v=WSePR0jIeKI
· How to Set up the Tools Required to Get Started with MPLAB® Harmony v3 and MCC
youtube.com/watch?v=0rNFSlsVwVw
Timestamps:
0:00 – Introduction
0:12 – Prerequisite - Software
0:32 – Prerequisite - Hardware
1:07 – Project Scope and Steps
1:37 – Step 1: Setup the Hardware
1:40 – Step 2: Download the project from the kit page
1:52 – Step 3: Open the project and launch MCC
2:14 – Step 4: Check the peripheral configurations in MCC
4:16 – Step 5: Review the application code
4:50 – Step 6: Compile the project and see the Output
5:41 – More application demos on SAM D21 XPRO Xplained Pro Evaluation Kit
5:53 – More information on MPLAB Harmony
• use the "Filter Design Aid" to create a customized filter,
• view the filter's schematic and response in the "Circuit Schematic" and "Filter Response" tabs,
• adjust a filter response using the "Modify Current Filter" tab, and
• view the filter's group delay response, input impedance, step response, and noise analysis.
Timestamps:
0:00 - Introduction
0:26 – Filter Design Aid
0:41 – Passband Region
0:58 – Stopband Region
1:25 – Customizing components
1:29 – Minimize Power Consumption
1:40 – Minimize Bill of Materials
2:04 – Gain response preview
2:36 – Circuit Schematic
2:57 – Filter Response
3:29 – Modify Current Filter
3:55 – Choose My Own Op Amp
4:26 – Simulator Settings (Group delay, input impedance, step response, noise analysis)
4:36 – Show Previous Plot
4:51 – Auto Scaling
6:11 – Sallen-Key upturn
6:38 – Adjusting resistor and capacitor values
7:27 – Anti-Aliasing Filter Design
7:39 – Sampling Frequency
8:09 – ADC Bit Resolution
8:13 – SNR
8:29 – Import/Export filter settings
Timestamps:
0:00 – Introduction
0:21 – What are filters?
1:20 – Noise
3:03 – Interference
4:34 – Bandwidth Selection
5:02 – Anti-Aliasing
5:57 – Filter Skills: Bode Plots
7:22 – RC Filter Example in MPLAB Mindi Simulator
9:40 – Filter Terminologies
11:57 – Filter Types
12:28 – 2nd Order High Pass Filter Example
13:26 – Designing your own filter
Timestamps:
0:00 – Introduction
0:31 – RC low pass filter
1:58 – Complex numbers à magnitude and phase
3:34 – Magnitude and phase of RC filter
5:34 – -20dB/decade
6:47 – Phase response: -45°/decade
7:32 – -6dB/octave
8:22 - Outro
In this AVR-DD bare metal video, we will create an SPI driver for both host and client devices. This is the last bare metal driver before we start building our final project, using all of the drivers we have written.
Relevant Links:
Overview of SPI: mchp.us/3vJFr3F
Tech Brief TB3215 - Getting Started with SPI: mchp.us/3TLEm3g
SPI Peripheral Page: mchp.us/4aBo4Rw
AVR-DD Family Page: mchp.us/3POFZfz
Timestamps:
00:00 - In the previous video
00:39 - In this video
01:16 - What is SPI?
01:57 - Create new project for SPI and import previously created libraries
02:15 - Set up main clock and USART
03:01 - Test Main Clock and USART
03:25 - TB3215 - Sending Data as Host Device
03:43 - Configure location of SPI pins
04:40 - Create SPI Host Driver Initialization function
05:08 - How to initialize the peripheral
06:06 - Configure direction of pins
06:50 - SPI Buffer Mode
08:20 - Write functions to select and deselect client devices
09:20 - Write functions to write, read and exchange a byte
14:02 - Write main function to test SPI Host driver
15:20 - Using Loopback to test Host driver
15:46 - SPI Client Driver - Create project and import libraries
16:31 - SPI Client Initialization function
17:04 - ISR (Interrupt Service Routine) for SPI Client
19:16 - Write main function to test SPI Client driver
19:35 - Modify SPI Host driver to work with SPI Client driver
20:21 - Connect SPI bus
20:46 - Test both Host and Client drivers together
21:25 - In the next videos
· MPLAB® X Integrated Development Environment (IDE)
microchip.com/en-us/tools-resources/develop/mplab-x-ide
· MPLAB® XC32 Compiler
microchip.com/en-us/tools-resources/develop/mplab-xc-compilers/xc32
· PIC32CM MC00 Curiosity Nano Evaluation Kit
microchip.com/en-us/development-tool/ev10n93a
· MPLAB Reference Apps GitHub
github.com/Microchip-MPLAB-Harmony/reference_apps
· MPLAB Reference Apps Gitee
gitee.com/Microchip-MPLAB-Harmony/reference_apps
· MPLAB® X IDE Essentials - 01: Installation and Ecosystem
youtube.com/watch?v=WSePR0jIeKI
· Getting Started with MPLAB® Harmony v3 Using MPLAB Code Configurator
youtube.com/watch?v=KdhltTWaDp0
· MPLAB® Code Configurator Content Manager for MPLAB Harmony v3 Projects
youtube.com/watch?v=PRewTzrI3iE&t
Timestamps:
0:00 – Introduction
0:22 – Install MPLAB®-X-IDE
1:19 – Install XC32 Compiler
2:24 – MCC and Content Manager
2:45 – Verify MCC Plugin
2:51 – Verify Content Manager
3:42 – Open a Project in MCC
4:54 – Tool Tip
5:23 – More information on MPLAB Harmon
This video looks at Hexmate, a post-link utility provided by Microchip that can merge and modify Intel Hex files produced by any Microchip MPLAB XC compiler. The Intel Hex file specification is introduced along with examples of Hexmate commands that perform tasks useful for program development.
This video describes how phase noise is measured and how these measurements are used to determine whether a clock meets phase noise mask specifications for a given device.
Phase Power Spectral Density -- more commonly called “Phase Noise” in Timing applications – is explained in this video and
compared to FM radio modulation. Phase Noise refers to the undesired frequency/phase deviations of a clock signal from its ideal frequency, and it is a critically important parameter in data communications; if Phase Noise is too high, it can cause data errors.
Here are some Microchip's general purpose families that have fast start-up time:
(1MHz) - microchip.com/en-us/product/MCP6007
(3MHz) - microchip.com/en-us/product/MCP6477
(10MHz) - microchip.com/en-us/product/mcp6487
(30MHz) - microchip.com/en-us/product/MCP6497
0:23– Prerequisite – Software
1:29 – Project Scope and Steps
1:58– Prerequisite - Hardware
1:33 – Step 1: Setup the Hardware
2:05 – AWS Account Setup and AWS Cloud IoT Provisioning,
2:20 - Firmware upgrade and WiFi configuration process,
3:45 - Running the demo application
5:14 – Visualize the data
5:47 – More application demos on SAM IoT Wx v2 Development Board
5:59 – More information on MPLAB Harmony
The SAM-IoT Wx v2 Development Board, based on the SAM D21 microcontroller, serves as a compact Wi-Fi-based IoT Node development platform for the AWS IoT Core. The application showcases MQTT data transfer from onboard light and temperature sensors to AWS IoT Core. The demo application is based on the MPLAB Harmony v3 software framework, allowing easy customization.
• SAM IoT Wx v2 Development Board page
microchip.com/en-us/development-tool/EV62V87A
• SAM-IoT Wx v2 Development Board Overview
youtu.be/nHTvRF9Lo0k?feature=shared
• Microchip's Microcontrollers and Microprocessors product page
microchip.com/en-us/products/microcontrollers-and-microprocessors
• MPLAB Reference Apps GitHub
github.com/Microchip-MPLAB-Harmony/reference_apps
• MPLAB Reference Apps Gitee
gitee.com/Microchip-MPLAB-Harmony/reference_apps
• GitHub link for SAM IoT Wx v2 Development Board
• github.com/Microchip-MPLAB-Harmony/reference_apps/tree/master/apps/sam_d21_iot_v2
• Demo user guide
github.com/Microchip-MPLAB-Harmony/reference_apps/blob/master/apps/sam_d21_iot_v2/samiot2_aws_cloud_core/readme.md
• MPLAB® X IDE Essentials - 01: Installation and Ecosystem
youtube.com/watch?v=WSePR0jIeKI
• Getting Started with MPLAB® Harmony v3 Using MPLAB Code Configurator
youtube.com/watch?v=KdhltTWaDp0
• MPLAB® Code Configurator Content Manager for MPLAB Harmony v3 Projects
youtube.com/watch?v=PRewTzrI3iE&t
Download an MPLAB XC32 Compiler here and get started: microchip.com/compilers
This webinar shows the steps you need to take to download and install a Microchip MPLAB XC Compiler. The purchase and installation of a Workstation license file is described, as well as how you can assess the full suite of compiler optimizations free of charge by installing an evaluation license. Activation steps for compilers purchases via Microchip distributors are also discussed.
transmitted on a CAN network via the CAN peripheral and displays it on the PC serial terminal window using the USB CDC virtual COM port. With CAN NVM bootloader host functionality, it sends the binary image from the Python script to the target over the CAN bus for programming.
CTA Links:
· SAM E54 Xplained Pro Evaluation Kit page
microchip.com/en-us/development-tool/atsame54-xpro
· Microchip's Microcontrollers and Microprocessors product page
microchip.com/en-us/products/microcontrollers-and-microprocessors
· MPLAB Reference Apps GitHub
github.com/Microchip-MPLAB-Harmony/reference_apps
· MPLAB Reference Apps Gitee
gitee.com/Microchip-MPLAB-Harmony/reference_apps
· GitHub link for SAM E54 Xplained Pro Evaluation Kit
github.com/Microchip-MPLAB-Harmony/reference_apps/blob/master/apps/sam_e54_xpro
· Demo user guide
github.com/Microchip-MPLAB-Harmony/reference_apps/blob/master/apps/sam_e54_xpro/same54_can_usb_bridge/readme.md
· CAN FD Interrupt Application
microchip-mplab-harmony.github.io/csp_apps_sam_d5x_e5x/apps/can/can_fd_operation_interrupt_timestamp/readme.html
· CAN Bootloader Application
github.com/Microchip-MPLAB-Harmony/bootloader_apps_can/tree/master/apps/can_bootloader/bootloader/firmware/sam_e54_xpro.X
· MPLAB® X IDE Essentials - 01: Installation and Ecosystem
youtube.com/watch?v=WSePR0jIeKI
· Getting Started with MPLAB® Harmony v3 Using MPLAB Code Configurator
youtube.com/watch?v=KdhltTWaDp0
· MPLAB® Code Configurator Content Manager for MPLAB Harmony v3 Projects
youtube.com/watch?v=PRewTzrI3iE&t
· GitHub link for SAM E54 Xplained Pro Evaluation Kit github.com/Microchip-MPLAB-Harmony/reference_apps/tree/master/apps/sam_e54_xpro
Timestamps:
0:00 – Introduction
0:10 – Prerequisite - Hardware
0:36 – Prerequisite - Software
0:53 – Project Scope
1:05 – Application Block Diagram
1:49 – Project Scope and Steps
2:00 – Step 1: Setup the Hardware
2:30 – Step 2: Download the project from the kit page
2:45 – Step 3: Open the project and launch MCC
2:56 – Step 4: Check the peripheral configurations in MCC
3:50 – Step 5: Compile the project and see the Output
6:35 – More application demos on SAM E54 Xplained Pro Evaluation Kit
6:47 – More information on MPLAB Harmony
2:51 Data Preparation
6:22 Model Building
12:53 Model Testing
14:27 Model Deployment
What is I3C®? - youtube.com/watch?v=g3TBNHec5Ec
I3C® Peripheral in 8-bit MCU® Peripheral - mchp.us/3T6m2mv
MCC Melody Technical Reference - mchp.us/3uGUhYg
Code examples on MPLAB Discover - mchp.us/3uJrmTr
Example demo using I3C Target DMA Driver - youtube.com/watch?v=T3jNlTklpCo
PIC18-Q20 MCU Product Family Page - mchp.us/48pALNF
Timing specifications typically include parameters such as "Phase Noise" and "Jitter", which are related to a clock's Phase Domain Spectral Power Density. This video reviews Voltage Domain Spectral Power and Spectral Power Density, which lay the groundwork for understanding Phase Domain Spectral Power Density.
Engineers are typically accustomed to thinking in the Voltage Domain, but to understand Timing, one needs to understand how to think in the Phase Domain. This video demonstrates how to map familiar Voltage Domain concepts to the Phase Domain as a basis for understanding Phase Domain descriptions of a clock.
Links:
microchip.com/en-us/products/fpgas-and-plds/fpgas/polarfire-fpgas
microchip.com/en-us/products/fpgas-and-plds/fpgas/igloo-2-fpgas
microchip.com/en-us/products/fpgas-and-plds/system-on-chip-fpgas/smartfusion-2-fpgas
Memory Log Analyzer software download link:
ww1.microchip.com/downloads/aemDocuments/documents/FPGA/SOCDesignFiles/Memory_Log_Analyzer_GUI_Installer.zip
Memory Log Analyzer Help Online Documentation link:
onlinedocs.microchip.com/oxy/GUID-7F276F66-9418-456E-9FA3-8E7EE40C9E25-en-US-7/GUID-174402C0-E316-4BF8-BA7F-28E312E9049D.html
Downloaded the example source files from the DDR Demo on PolarFireSoC (mpfs-hal-ddr-demo) GitHub repository:
github.com/polarfire-soc/polarfire-soc-bare-metal-examples
Source Code: mchp.us/3RKlnGR
PIC18-Q71 Family of Microcontrollers: mchp.us/3RqVudP
PIC18-Q71 Curiosity Nano: mchp.us/3TsfQWu
#microcontroller #8bit #led
0:00 – Introduction
0:15 – Prerequisite - Software
0:30 – Prerequisite - Hardware
1:05 – Project Scope and Steps
1:38 – Step 1: Setup the Hardware
1:42 – Step 2: Download the project from the kit page
1:58 – Step 3: Open the project and launch MCC
2:05 – Step 4: Check the peripheral configurations in MCC
3:55 – Step 6: Review the Application code
4:26 – Step 7: Compile the project and see the Output
5:19 – More application demos on PIC32CZ CA90 Curiosity Ultra Evaluation Kit
5:28 – More information on MPLAB Harmony
This video introduces and explains how to get started with PIC32CZ CA90 Curiosity Ultra Evaluation Board. This project is based on an Arm® Cortex®-M7-based PIC32CZ CA90 MCU with an integrated hardware security module (HSM). This application demonstrates how to toggle LED0 by pressing switch SW-0 on a timeout basis and viewing the LED toggling rate on the serial terminal. The periodicity of the timeout will change from 500 milliseconds to one second, two seconds, four seconds, and back to 500 milliseconds every time you press switch SW 0. The periodicity will not change while switching between SW-0 to SW-1 or vice versa. The demo application has extended functionality to read and print the current room temperature periodically using the onboard temperature sensor when pressing the switch SW-1. The temperature reading is displayed every second on the serial console.
PIC32CZ CA90 Curiosity Ultra Evaluation Board page microchip.com/en-us/development-tool/ea58x56a · Microchip’s Microcontrollers and Microprocessors product page microchip.com/en-us/products/microcontrollers-and-microprocessors · MPLAB Reference Apps GitHub github.com/Microchip-MPLAB-Harmony/reference_apps · MPLAB Reference Apps Gitee gitee.com/Microchip-MPLAB-Harmony/reference_apps · GitHub link for PIC32CZ CA90 Curiosity Ultra Evaluation Board github.com/Microchip-MPLAB Harmony/reference_apps/tree/master/apps/pic32cz_ca90_cult · Demo user guide github.com/Microchip-MPLAB-Harmony/reference_apps/blob/master/apps/pic32cz_ca90_cult/pic32cz_ca90_getting_started_ext/readme.md · MPLAB® X IDE Essentials - 01: Installation and Ecosystem youtube.com/watch?v=WSePR0jIeKI · Getting Started with MPLAB® Harmony v3 Using MPLAB Code Configurator youtube.com/watch?v=KdhltTWaDp0 · MPLAB® Code Configurator Content Manager for MPLAB Harmony v3 Projects youtube.com/watch?v=PRewTzrI3iE&t
· GitHub link for PIC32CZ CA80 Curiosity Ultra Evaluation Board github.com/Microchip-MPLAB-Harmony/reference_apps/tree/master/apps/pic32cz_ca80_cult · Demo user guide github.com/Microchip-MPLAB-Harmony/reference_apps/blob/master/apps/pic32cz_ca80_cult/pic32cz_ca80_getting_started_ext/readme.md
This video covers how to refactor a MCC Melody project which starts an ADC conversion using a Real-Time Counter (RTC) overflow callback. Instead of a callback, the Event System (EVSYS) is used to directly start ADC conversions on an RTC overflow event. Since the EVSYS makes direct hardware connections between the peripherals, the RTC callback (and its registration) can be removed.
Although Microchip produces thousands of different devices, these are targeted by just four compilers: the MPLAB® XC8 C Compiler, for all 8-bit PIC® and AVR® microcontrollers; MPLAB XC16, for all 16-bit PIC microcontrollers; MPLAB XC-DSC, for all dsPIC® Digital Signal Controllers; and XC32, for C and C++ development with all 32-bit PIC and SAM microcontrollers and microprocessors.
Each of these compilers have separate installers for Windows, macOS and Linux hosts, and they can be run as a command-line tool or integrated into the MPLAB X IDE.
The compilers can be run unlicensed and with no charge as a full-featured tool with basic optimizations, or you can purchase a PRO license, which unlocks a higher level of optimization, significantly reducing the size and execution time of generated code.
0:15 – Prerequisite - Software
0:35 – Prerequisite - Hardware
0:58 – Project Scope and Steps
1:32– Step 1: Setup the Hardware
1:38– Step 2: Download the project from the kit page
1:50 – Step 3: Open the project and launch MCC
2:07 – Step 4: Check the peripheral configurations in MCC
3:06 – Step 5: Check the pin configurations
4:23 – Step 6: Compile the project and see the Output
5:15 – More application demos on PIC32CX SG61 Curiosity Ultra Evaluation Kit
5:29 – More information on MPLAB Harmony
This video introduces the PIC32CX SG61 Curiosity Ultra Evaluation Board and explains how to create a simple application on Microchip's PIC32CX SG41/SG60/61 Arm® Cortex®-M4F based 32-bit microcontroller using MPLAB Code Configurator.
This application demonstrates how to toggle LED0 by pressing switch SW 1 on a timeout basis and view the LED toggling rate on the serial terminal. The periodicity of the timeout will change from 500 milliseconds to one second, two seconds, four seconds, and back to 500 milliseconds every time you press switch SW 1. The periodicity will not change while switching between SW 1 to SW 2 or vice versa. The demo application has extended functionality to read and print the current room temperature periodically using the on-board temperature sensor when pressing the switch SW 2. The temperature reading is displayed every second on the serial console.
· PIC32CX SG61 Curiosity Ultra Evaluation Board page
microchip.com/en-us/development-tool/EV09H35A
· Microchip’s Microcontrollers and Microprocessors product page
microchip.com/en-us/products/microcontrollers-and-microprocessors
· MPLAB Reference Apps GitHub
github.com/Microchip-MPLAB-Harmony/reference_apps
· MPLAB Reference Apps Gitee
gitee.com/Microchip-MPLAB-Harmony/reference_apps
· GitHub link for PIC32CX SG61 Curiosity Ultra Evaluation Board
github.com/Microchip-MPLAB-Harmony/reference_apps/tree/master/apps/pic32cx_sg61_cult
· Demo user guide
github.com/Microchip-MPLAB-Harmony/reference_apps/blob/master/apps/pic32cx_sg61_cult/pic32cx_sg61_getting_started/readme.md
· MPLAB® X IDE Essentials - 01: Installation and Ecosystem
youtube.com/watch?v=WSePR0jIeKI
· Getting Started with MPLAB® Harmony v3 Using MPLAB Code Configurator
youtube.com/watch?v=KdhltTWaDp0
· MPLAB® Code Configurator Content Manager for MPLAB Harmony v3 Projects
youtube.com/watch?v=PRewTzrI3iE&t
· PIC32CX SG41 Curiosity Ultra Evaluation Board microchip.com/en-us/development-tool/EV06X38A
· GitHub link for PIC32CX SG41 Curiosity Ultra Evaluation Board github.com/Microchip-MPLAB-Harmony/reference_apps/tree/master/apps/pic32cx_sg41_cult
· Demo user guide
github.com/Microchip-MPLAB-Harmony/reference_apps/blob/master/apps/pic32cx_sg41_cult/pic32cx_sg41_getting_started/readme.md
Source Code and Write-up: mchp.us/3Q8S52u
Software:
MPLAB® X IDE: mchp.us/46244pj
MPLAB XC8: mchp.us/46pPnfm
MPLAB Code Configurator mchp.us/46rIPNu
Hardware:
PIC16F18076 Product Page and Datasheet: mchp.us/45e8B6X
PIC16F18076 Curiosity Nano (EV53Z50A): mchp.us/46uAE2T
Curiosity Nano Base for Click Boards (AC164162): mchp.us/3ZEeXeo
25CSM04 Product Page and Datasheet: mchp.us/45dhJsg
MikroE EEPROM 7: mchp.us/46KdRRa
#microcontroller #8bit #eeprom
youtu.be/eppo_D4Ij_c?si=F4J1mGNtjphFK0ASMicrochip IoT
youtu.be/8AMKc6-LQy4?si=Q8dtqzbQ4IUI9vZW
Create your AWS account here: portal.aws.amazon.com/billing/signup#/start/email
PIC®-IoT WA product page : microchip.com/en-us/development-tool/EV54Y39A
PIC®-IoT WG product page : microchip.com/en-us/development-tool/AC164164
Github page for Microchip IoT Developer Guides for AWS : github.com/microchip-pic-avr-solutions/microchip-iot-developer-guides-for-aws
Provisioning Tool : github.com/microchip-pic-avr-tools/iotprovision-bin/releases
This is also applicable for AVR-IoT WA, AVR-IoT WG.
PolarFire SoC Landing Page: microchip.com/polarfiresoc Icicle Kit Product Page: microchip.com/icicle PolarFire SoC GitHub Repository: github.com/polarfire-soc
PolarFire SoC Landing Page: microchip.com/polarfiresoc Icicle Kit Product Page: microchip.com/icicle PolarFire SoC GitHub Repository: github.com/polarfire-soc
- Creating driver to take ADC measurements
- Set up thresholding window
- Learn about oversampling and decimation to increase effective ADC resolution from 12-bits to 14-bits
- Create driver to perform oversampling and decimation.
AVR121: Enhancing ADC Resolution By Oversampling App Note
mchp.us/3RH5mla
AVR64DD32 Datasheet
mchp.us/3Q1nUeU
AVR64DD32 Product Page
mchp.us/46f90Hm
AVR-DD Curiosity Nano Hardware User Guide
mchp.us/3PZZmmn
Timestamps:
00:00 In the previous video
00:21 In this video
01:24 Create ADC Control Functions
01:49 ADC Enable function
02:09 ADC Disable function
02:34 ADC Start Conversion function
03:07 ADC Stop Conversion function
03:40 ADC Is Conversion Done function
04:18 ADC Is Window Satisfied function
05:11 ADC Get Result function
05:31 Start Application code
05:37 Set up 1MHz Clock and Test Clock Output
06:24 Set up USART driver and test output
07:18 Set up ADC driver for single conversion with window threshold
09:35 Write code to start ADC Conversion, check for conversion complete, check if window satisfied, print result and whether window is satisfied
10:49 Test ADC driver with window threshold
11:44 Learning about Oversampling and Decimation (AVR121 App Note)
14:30 Implementing Oversampling and Decimation
14:34 ADC Start Oversampled Conversion function
15:44 ADC Get Oversampled Result function
18:14 Oversampling Application code
19:00 Test oversampling and observe effect of oversampling on thresholding window
19:28 Separate ADC Driver into header and source files
21:09 Test Driver works as expected
21:21 In the next video
For more information about versatile and easy-to-use connectivity features of the MPLAB ICD 5 In-Circuit Debugger/Programmer visit microchip.com/ICD5.
To get started with the MCC Melody, training materials have been built into this API reference. Many components have a "How to Use the …." section, which include a number of use cases, consisting of the following:
1. Required configuration settings of the component (and potentially other components).
2. Schematics of the board being used, e.g., In Pin Grid View: Select a LED pin as an Output, renaming it to LED.
3. Code snippets to be added to your application.
The use cases can be run on any AVR supported in MCC Melody. Only minor modifications will be required to run the use cases on a particular board, e.g., selecting the analog input channel being used.
Videos: Some of the use cases include videos, which give a high-level overview of how to run the use cases. These may be especially useful if new to the MPLAB Tools Ecosystem.
To get started with the MCC Melody, training materials have been built into this API reference. Many components have a "How to Use the …." section, which include a number of use cases, consisting of the following:
1. Required configuration settings of the component (and potentially other components).
2. Schematics of the board being used, e.g., In Pin Grid View: Select a LED pin as an Output, renaming it to LED.
3. Code snippets to be added to your application.
The use cases can be run on any PIC16F/18F supported in MCC Melody. Only minor modifications will be required to run the use cases on a particular board, e.g., selecting the analog input channel being used.
Videos: Some of the use cases include videos, which give a high-level overview of how to run the use cases. These may be especially useful if new to the MPLAB Tools Ecosystem.


