8-Bit PIC MCU GPIO

r

This Class will cover all the features associated with the GPIO module in the 8-Bit PIC MCU Family. There will be Demonstrations to show how to set up the Peripheral for types of inputs and outputs. There will be discussions on where certain features will be useful in real world examples. And also cover common pitfalls you may encounter with GPIO.

Course Outline

r

Coaching Interview 3. Develop a Course OutlineFrom the Job/Task analysis, group content together into chapters and name the chapters."Knowledge" (Concept/Fact/Principle) bubbles map to "Lessons""Procedure" bubbles map to "Lab Exercises" or "Quizzes" or other hands-on activities.Typically, a 1:1 relationship exists between Major Tasks and Chapters. However, you are free to group knowledge and procedures from several different Tasks into the same Chapter in the course outline.When finished, the TTE will produce a course outline in word format that captures this structure.

Introduction to PIC MCU GPIO Architecture

PORT and LAT Registers

PORT Structure Diagram

TRIS Register

Tristate buffer truth-table

Input vs Output

ANSEL Register

Analog vs Digital State

Overview of MCC Melody

GPIO Libraries within MCC Melody

Using a GPIO to Control an LED (Digital Output)

Demo using PORT, LAT, TRIS, and ANSEL Registers

Interrupt On Change Register

What is Interrupt on Change

When to use it and how to use it

Demonstrate Interrupt on Change

Weak Pull Up Register

What is a WPU

It's purpose and how to enable

Demonstrate WPU Register

Advanced Digital Input Control

Schmitt Trigger

What is a Schmitt Trigger

Purpose and when to use it

Graphic images of Scope Plot or similar

Input Threshold Control Register

What is input Threshold

Purpose and when to use it

Graphic images of Scope Plot or Similar

Advanced Digital Output Control

Slew Rate control Register

What is Slew Rate Control

Purpose and when to use it

Demonstrate Slew Rate Register

Peripheral Pin Select Register

What is Peripheral Pin Select

It purpose and when to use it

What is UART (basic description)

Demonstrate PPS using the UART Hello World using Data visualizer

Common Pitfalls

Pullup interferes with external source driving the pin

ANSEL misconfigured causes the pin to read zero at all times

Floating pin causes excessive power consumption

Suggestion of what to do with unused pins (output driving zero?)

Improper threshold voltage selection

IOL vs VOL curves

Conclusion

Summarize items mentioned above

Requirements

r

Coaching Interview 1. Gather top-level project constraints.Interview SME and sponsor to fill in each of the requested constraints.

Due Date

Nov 1, 2021

Major Job Outcome

r

What will Attendees be able to produce or accomplish back on the job after taking this training? State it as a noun-phrase, for example:"Customized LoRaWAN demo application using the SAMR34 Module"

At the end of this training the student will be able to setup I/O ports on Microchip PIC MCU devices for digital inputs (Sensors), Digital Outputs (Indicators) using the MPLAB Code Configurator (MCC) Melody Libraries.

Target Audience

r

Who are the major audience groups the training is targeted to?Expected background knowledge and experience level?

Limited knowledge of the Microchip PIC18 Architecture (Oscillator, Reset Circuitry, Programming Configurations, etc.)

Limited Embedded Control Design Knowledge

Some Embedded C language Knowledge

Familiar with MPLAB X and MCC Melody

Familiar with Microchip Development Tools including Microchip Nano Module

Familiar with typical Electronic Tools (Oscilloscope, Volt Meter, Etc.)

Implementation and Delivery Constraints

r

Course Type (Lecture-Only, Hands-On)?Course Duration (Hours)? Number of instructors required?

Online Videos

Online Recorded Demos

No Q/A sessions after class

Major Tasks

r

What are the major engineering tasks required in order to accomplish the Job Outcome?For a Job Outcome of "Custom LoRaWAN demo application using the SAMR34 Module", we could have the following tasks:Evaluate the functional fitness of the SAMR34 for the demo applicationBuild/purchase a hardware prototype for the applicationDownload/Install firmware development toolsWrite and test firmware for the application

Introduction to PIC MCU GPIO Architecture

Overview of MCC Melody Libraries

Schmitt Trigger and Input Threshold Control Register

Interrupt On Change Register

Weak Pull Up Register

Slew Rate control Register

Peripheral Pin Select Register

Common Pitfalls

Conclusion