Even

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 15

AVANTHI INSTITUTE OF

ENGINEERING AND
TECHNOLOGY

DEPARTMENT OF
ELECTRONICS AND COMMUNICATIONS
ENGINEERING
EDUSKILLS
VIRTUAL INTERNSHIP PROGRAM
MAY-JULY 2023
EDUSKILLS VIRTUAL INTERNSHIP
PROGRAM
ON

EMBEDDED DEVELOPER
VIRTUAL INTERNSHIP
ASSOCIATED WITH
MICROCHIP
BY
A.SAMPATH SASTRY

21811A04O1
AICTE EDUSKILLS
 AICTE (All India Council Of Technical Education)
Under The Ministery of Education has colabrated
with EDUSKILLS in order to enchance technical
knowledge at UG programs
 It is conducting many virtual internship programs for
various courses for development of skills for the
students
 Its organizes different platform and different sources
for internship and offers course completion
certificate which can be useful for future
opportunities
EMBEDDED SYSTEMS
An embedded system is a system in which the
computer (generally a microcontroller or
microprocessor) is included as an integral part of the
system. Often, the computer is relatively invisible to
the user, without obvious applications, files, or
operating systems.
Embedded systems range in size from portable
personal devices such as digital watches and MP3
players to bigger machines like home appliances,
industrial assembly lines, robots, transport vehicles,
traffic light controllers, and medical imaging systems
CONTENT
 8 Bit Microcontrollers ; Architecture of the PIC16
 Introduction To MPLAB X IDE
 Advanced C Programming
 C Programming: Linked List Data Structure
 T Syntax And Structure Of C
 8-Bit PIC MCU Peripheral Deep Drive
8 Bit Microcontrollers ; Architecture of the
PIC16
 The PIC16 architecture is a widely used 8-bit microcontroller
architecture developed by Microchip Technology. It has gained
popularity due to its simplicity, low power consumption, and
versatility. Here's an overview of its key aspects:
 The PIC16 architecture follows a Harvard architecture, which means it has
separate memory spaces for program code and data. It has a small set of
registers that can be directly manipulated by instructions, which helps in
achieving fast and efficient execution of instructions.
 Analog-to-Digital Converter (ADC): Many PIC16 microcontrollers have built-
in ADCs, enabling them to convert analog signals from sensors or other
sources into digital values.
INTRODUCTION TO MPLAB X
IDE(INCLUDE BLINK LED)
 1. Project Management: MPLAB X IDE allows you to create and
manage projects for your microcontroller applications. Projects help organize
your code, configuration settings, and build options in one place.
 2. Code Development:You can write, edit, and compile your code
within the IDE. It supports various programming languages like C, C++, and
assembly.
 3. Device Configuration: MPLAB X IDE provides tools to configure
your microcontroller's peripherals and settings. This makes it easier to set up
timers, I/O pins, communication modules, and other hardware features.
 4. Debugging: One of the strengths of MPLAB X IDE is its debugging
capabilities. It supports real-time debugging, allowing you to halt execution,
inspect variables, and step through code to find and fix issues. It interfaces
with hardware debuggers like PICkit or incircuit emulators.
ADVANCED C PROGRAMMING
 Data Structures: Data structures like structs allow you to create
composite data types that can hold different types of variablesThey group
related variables together under a single name, enhancing code organization
 Data Structure Pointers: Pointers can be used with data structures
to efficiently access and modify their members.Use the `->` operator to access
members of a structure through a pointer (e.g., `structPtr- >member`).
 Advanced Data Structure Pointers: You can create pointers to
structures, arrays of structures, and even structures that contain
pointers.Pointers to structures enable dynamic memory allocation for
structures, allowing for more flexible memory management.
 State Machines: Building on the concept mentioned earlier, state
machines are used to model systems with distinct states and transitions
between them. State machines can simplify complex logic and make it easier
to understand and maintain
C PROGRAMMING:LINKED LIST DATA
STRUCTURE
 Linked Lists Overview: A linked list is a linear data structure made
up of nodes, where each node contains data and a reference (or pointer) to the
next node in the sequence. Unlike arrays, linked lists allow dynamic
allocation of memory, making them flexible for storing and managing data of
varying sizes
*Node Structure: *
Define a structure to represent the nodes in the linked list. The structure
should contain the data and a pointer to the next node.
c
struct Node {
int data;
struct Node* next;
}
Example: Allocating Memory Before Runtime:
c
struct Node {
int data;
int nextIndex; // Index of the next node};
int main() {
int maxSize = 100; // Maximum size of the linked list
struct Node linkedList[maxSize]; // Allocate memory for all nodes
// Initialize linked list
for (int i = 0; i < maxSize - 1; i++) {
linkedList[i].nextIndex = i + 1;
}
linkedList[newNodeIndex].data = dataToInsert;
return 0;
}
T SYNTAX AND STRUCTURE OF C
 Variables: Variables are used to store data values in memory. They must
be declared with a data type before use (e.g., `int`, `float`, `char`).
 Literals & Constants: - Literals are directly written values in the code
(e.g., `42`, `3.14`, `'A'`). Constants are named values that do not change
during program execution. Constants can be defined using `const` keyword
(e.g., `const int MAX_VALUE = 100;`).
 Symbolic Constants: Also known as `#define` constants, they are
created using preprocessor directives. Defined using the `#define` directive
followed by the constant name and its value (e.g.,`#define PI 3.14159`).
 Loops: `for` loop: Executes a block of code a specific number of times.
while` loop: Repeats a block of code while a condition is true.`do-while` loop:
Similar to the `while` loop, but the code block is executed at leas once
8-Bit PIC MCU Peripheral Deep
Drive
Every PIC MCU device is equipped with many different hardware
®

peripherals which simplify system implementation. With


the MPLAB® Code Configurator (MCC) to help produce peripheral
initialization software, you can quickly design and configure
application source code. Having a complete understanding of the
latest peripherals available and details on their functional use is
very helpful.
THE END

You might also like