Microchip Embedded Systems
Microchip Embedded Systems
Bachelor of Technology in
i
Roll no:22KD1A02C1
CERTIFICATE
This report on “MICROCHIP EMBEEDED SYSTEMS” is a bona fide record of the internship
work submitted by VEMULA VAMSHI with Reg. No 22KD1A02C1, in his 4th semester in
partial fulfillment of the requirements for the award of degree of B.Tech in Electrical and Electronics
Department of EEE
EXTERNAL EXAMINER
ii
Roll no:22KD1A02C1
ACKNOWLEDGENT
I would like to express my deep sense of gratitude to my esteemed institute Lendi Institute of
Engineering and Technology (Autonomous), which has provided me an opportunity to fulfill my
cherished desire.
I am highly indebted to Dr.K.Subbaramaiah, Professor - Head of the Department of
Electrical and Electronics Engineering, Lendi Institute of Engineering and Technology (Autonomous), for
giving me the opportunity to do the internship in college.
I express my sincere thanks to Principal, Dr. V. V Rama Reddy, Lendi Institute of
Engineering and Technology (Autonomous) for his encouragement to me during this Internship,
giving me a chance to explore and learn new technologies in the form of summer Internship-2.
I am grateful for EDUSKILLS and AICTE for providing me this learning opportunity.
Finally, I am indebted to the teaching and non-teaching staff of the Electrical and Electronics
Engineering Department for all their support in completion of my Internship
VEMULA VAMSHI
(22KD1A02C1)
iii
Roll no:22KD1A02C1
CERTIFICATE
iv
Roll no:22KD1A02C1
v
Roll no:22KD1A02C1
vi
Roll no:22KD1A02C1
INSTITUTE
VISION
Producing globally competent and quality technocrats with human values for the holistic needs of industry
and society.
MISSION
Creating an outstanding infrastructure and platform for enhancement of skills, knowledge and behavior of
students towards employment and higher studies.
Providing a healthy environment for research, development and entrepreneurship, to meet the expectations
of industry and society.
Transforming the graduates to contribute to the socio-economic development and welfare ➢ Of the society
through value based education.
vi
Roll no:22KD1A02C1
VISION
To be a hub for imparting knowledge, skills, and behavior for exemplary contributions in the
field of Electrical and Electronics Engineering.
MISSION
To impart Technical Education through the state -of-the-art infrastructure facilities, laboratories and
instruction.
To inculcate industry oriented learning through industrial visits, internships, projects at Industries,
MOUs, to make student’s technically skills oriented.
Creating conducive environment for higher education, employment an entrepreneurship through
quality education, professional skills and research.
To promote societal commitment among students by inculcating moral and ethical values.
PEO1:Graduates shall have strong foundation in core and allied Electrical and Electronics
Engineering, in sciences and mathematics, to become globally competent in designing, modeling
and critical problem solving.
PEO2: Graduates shall involve in research activities in the field of electrical and electronics
engineering through life long learning and provide solutions to engineering problems for sustainable
development of society.
PEO3: Graduates shall have good communication skills and socio-ethical values for getting employment
or higher studies by excelling in competitive examinations and be able to work in supportive and
leadership roles.
v
Roll no:22KD1A02C1
PO10: Communication Skills: Communicate effectively on complex engineering activities with the
engineering community and with society at large, such as, being able to comprehend and write
effective reports and design documentation, make effective presentations, and give and receive clear
instructions.
PO11:Project Management &Finance: Demonstrate knowledge and understanding of the
engineering and management principles and apply these to one’s own work, as a member and leader
in a team, to manage projects and in multi disciplinary environments
PO12:Life Long Learning: Recognize the need for, and have the preparation and ability to engage in
independent and life-long learning in the broadest context of technological change.
PROGRAMSPECIFICOUTCOMES (PSOs)
PSO1: Capable of design, develop, test, verify and implement electrical and electronics engineering
systems and products.
PSO2:Succeed in national and international competitive examinations for successful higher studies and
employment
vii
Roll no:22KD1A02C1
COURSE OUTCOMES
S.No Description
CO1 Construct the company profile by compiling the brief history, management
structure, products / services offered, key achievements and market
performance of internship organization.
CO4 Apply various soft skills such as time management, positive attitude and
communication skills during performance of the tasks assigned in internship
organization.
CONTENTS
S.NO TITLE
Microchip Architecture
2.
9. Internet of Things
10. Security and Safety Considerations
✓ Data Collection/Storage/Representation
✓ Data Communication
✓ Data (Signal) Processing
✓ Monitoring
✓ Control
✓ Application Specific User Interface Advantages of Embedded System:
❖ You need to reset all setting, due to happen any issue in the framework.
❖ Investigating is Harder.
❑ Household Appliances: Television, DVD players, washing machine, Fridge, Microwave Oven etc.
❑ Home Automation and Security Systems: Air conditioners, sprinklers, Intruder detection alarms, Closed
Circuit Television Cameras, Fire alarms etc.
❑ Automotive Industry: Anti-lock breaking systems (ABS), Engine Control, Ignition Systems, Automatic
Navigation Systems etc.
❑ Banking & Retail: Automatic Teller Machines (ATM) and Currency counters, Point of Sales (POS)
❑ Card Readers: Barcode, Smart Card Readers, Hand held Devices etc.
Roll no: 22KD1A02C1
2.Microchip Architecture
Processor Cores:
➢ PIC (Peripheral Interface Controller) Cores:
- Harvard architecture
- 35 instructions
- RISC architecture
- Harvard architecture
- 100-150 instructions
- RISC architecture
- 100-500 instructions
Key Features:
Comparison:
- PIC: Simple, low-power, and low-cost; suitable for basic control applications
- AVR: Balanced performance and power consumption; suitable for general-purpose microcontrollers
- ARM: High-performance and feature-rich; suitable for complex applications (smartphones, laptops, etc.)
Microchip Architecture:
Microchip Architecture Memory Organization:
Harvard Architecture:
- Data memory:
- Program memory:
- Flash memory
- Advantages:
- Improved performance
- Memory is used for both data and program storage - Instructions and data are stored in the same memory
space
- Advantages:
- Easier programming
- Advantages:
- Improved performance
- Increased flexibility
- Memory segmentation
- Memory paging
- Cache memory
- Virtual memory
Memory Types:
- Flash memory
6
Roll no: 22KD1A02C1
Memory Hierarchy:
- Main memory
- Secondary storage
- Types of I/O:
Digital I/O
- Digital input:
- Digital output:
- Driving LEDs and displays - Controlling relays and actuators Analog I/O:
Serial I/O
Roll no: 22KD1A02C1
- RS-232
- RS-485
- USB
Parallel I/O
- Polling
- Interrupt-driven I/O
I/O Applications
8
Roll no: 22KD1A02C1
The embedded system design process typically involves the following stages:
2. Hardware design: Creating the physical components, such as circuits and microcontrollers.
3. Software design: Developing the programs and algorithms that run on the hardware.
4. Integration: Combining hardware and software components to achieve the desired functionality.
5. Testing and debugging: Verifying that the system works correctly and fixing any errors.
6. Validation: Ensuring the system meets the required specifications and standards.
1. Power-aware design: Consider power consumption during system design, selecting components and
architectures that minimize power usage.
2. Low-power microcontrollers: Choose microcontrollers with low power consumption, such as those with
sleep modes or dynamic voltage scaling.
3. Power gating: Turn off power to components or subsystems when not in use.
4. Clock gating: Stop clock signals to components or subsystems when not in use.
6. Dynamic voltage and frequency scaling: Adjust voltage and frequency based on system workload.
7. Power-efficient communication: Use low-power communication protocols and techniques, such as
Bluetooth Low Energy or Zigbee.
8. Energy harvesting: Use environmental energy sources, like solar or vibration, to power the systm.
10. Power management ICs: Utilize specialized power management ICs to control power consumption.
11. System optimization: Optimize system software and firmware to minimize power consumption.
1
12. Sleep odes: Implement sleep modes or low-power states for components or subsystems. 0
Roll no: 22KD1A02C1
13. Wake-up mechanisms: Use efficient wake-up mechanisms, such as interrupts or timers, to transition
from sleep to active states.
14. Energy-efficient memory: Select memory technologies with low power consumption.
15. Thermal management: Consider thermal effects on power consumption and system reliability.
1. Choosing a programming language: Select a language supported by the microchip, such as C, C++, or
Assembly.
2. Writing the code: Create algorithms and functions to interact with hardware components and perform
tasks.
3. Compiling and assembling: Convert the code into machine code using a compiler or assembler.
4. Loading and debugging: Load the program into the microchip's memory and test it using debugging tools.
5. Optimizing and refining: Optimize the code for performance, power consumption, and memory usage.
Some popular programming tools and techniques for microchip embedded systems include:
1. Microchip's MPLAB X IDE: A comprehensive development environment for Microchip
microcontrollers.
5. GNU Compiler Collection (GCC): A widely used compiler for various microcontrollers.
Programming techniques:
By mastering these programming tools and techniques, you can create efficient and effective embedded
systems that interact with the physical world. If you have specific questions or projects related to
programming microchip embedded systems, feel free to ask!
C programming is a popular choice for microcontroller programming due to its efficiency, portability, and
flexibility. Here are some key aspects of C programming for microcontrollers:
1. Variables and Data Types: Use variables to store and manipulate data. Common data types include
integers (int), characters (char), and floating-point numbers (float).
2. Control Structures: Use if-else statements, for loops, and while loops to control the flow of your program
3. Functions: Write reusable code using functions. Declare functions to perform specific tasks, and call them
when needed.
6. Bit Manipulation: Perform bitwise operations to interact with hardware registers and bits.
8. Input/Output Operations: Use C libraries or direct hardware access to perform input/output operations.
9. Timing and Delays: Use timing functions and delays to control the pace of your program.
10. Microcontroller-Specific Features: Use C libraries or direct hardware access to utilize
microcontrollerspecific features like ADC, PWM, and UART.
- Keil µVision
Variable arrays:
• An array is a set of data, stored in consecutive memory locations, beginning at a named address– Declare
array name and number of data elements, N– Elements are “indexed”, with indices [0 ... N-1]
C control structures:
• Control order in which instructions are executed (program flow)
• Conditional execution
– Execute a set of statements if some condition is met – Select one set of statements to be executed from
several options, depending on one or more conditions
• Iterative execution
– Repeated execution of a set of statements
• A specified number of times, or
• Until some condition is met, or
• While some condition is true
C functions:
• A function is “called” by another program to perform a task
– The function may return a result to the caller
– One or more arguments may be passed to the function/procedure
Pointers:
• Objectives:
In this chapter the basic concepts of pointers are explained. At
the end of this chapter, one should be able to: - declare
and initialize a pointer
- use pointers and pointer operators
- understand the close relationship between pointers and arrays 1
4
Roll no: 22KD1A02C1
- use pointers to pass arguments by reference to a function - use pointers to functions
Declaration
Like every variable in C, a pointer variable must be declared before it can be used. In its most general
form, a pointer declaration can be written as:
<target datatype> * <name>;
The * in the declaration indicates that the variable is a pointer. For instance, int *ptr; declares the pointer
variable with name ptr that can point to a variable of the type int.
1. Microcontroller or microprocessor: The brain of the system that executes software instructions.
2. Software: The programs and algorithms that run on the microcontroller or microprocessor.
3. Hardware: The physical components that interact with the software, such as sensors, actuators, and
communication interfaces.
4. Real-time operating system (RTOS): Manages resources, prioritizes tasks, and provides a platform for
software execution.
1. Real-time operation: Must respond to events and inputs in a predictable and timely manner.
2. Limited resources: Often have limited processing power, memory, and energy.
Roll no: 22KD1A02C1
3. Specific purpose: Designed to perform a specific task or set of tasks.
4. Integration: Combines hardware and software components to achieve the desired functionality.
5. Reliability: Must operate reliably and fault-tolerantly in various environments.
8.Applications of
Microchip Embedded Systems
Microchip embedded systems have numerous applications across various industries, including:
1. Consumer Electronics: Smart TVs, set-top boxes, DVD players, cameras, and smartphones.
2. Industrial Control Systems: Robotics, manufacturing systems, process control systems, and
automation.
3. Medical Devices: Heart rate monitors, blood glucose meters, insulin pumps, and portable defibrillators.
4. Automotive Systems: Engine control units, navigation systems, anti-lock braking systems (ABS), and
traction control systems (TCS).
5. Aerospace and Defense: Navigation systems, communication equipment, weapon systems, and
surveillance systems.
6. Internet of Things (IoT) Devices: Smart home devices, wearables, sensors, and actuators.
7. Communication Systems: Modems, routers, switches, and network interface cards (NICs).
8. Computing and Peripherals: Keyboards, mice, printers, and scanners.
9. Gaming Consoles: Game controllers, gamepads, and gaming systems.
Roll no: 22KD1A02C1
10. Smart Energy and Utilities: Smart meters, energy management systems, and renewable energy
systems.
11. Agricultural Systems: Precision agriculture, farm automation, and livestock monitoring.
12. Medical Implants: Pacemakers, cochlear implants, and neurostimulators.
13. Security Systems: Access control systems, intrusion detection systems, and surveillance cameras.
14. Environmental Monitoring: Air quality monitoring, water quality monitoring, and weather monitoring.
15. Transportation Systems: Traffic management systems, parking management systems, and navigation
systems.
What is IoT?
The Internet of Things (IoT) describes the network of physical objects— “things”—that are embedded
with sensors, software, and other technologies for the purpose of connecting and exchanging data with
other devices and systems over the internet. These devices range from ordinary household objects to
sophisticated industrial tools. With more than 7 billion connected IoT devices today, experts are expecting
this number to grow to 10 billion by 2020 and 22 billion by 2025. Oracle has a network of device partners.
Cloud computing platforms. The increase in the availability of cloud platforms enables both businesses
and consumers to access the infrastructure they need to scale up without actually having to manage it all.
Machine learning and analytics. With advances in machine learning and analytics, along with access to
varied and vast amounts of data stored in the cloud, businesses can gather insights faster and more easily.
The emergence of these allied technologies continues to push the boundaries of IoT and the data produced
by IoT also feeds these technologies.
Conversational artificial intelligence (AI). Advances in neural networks have brought natural-language
processing (NLP) to IoT devices (such as digital personal assistants Alexa, Cortana, and Siri) and made
them appealing, affordable, and viable for home use.
Security:
1. Authentication: Ensure only authorized access to the system.
2. Encryption: Protect data with encryption algorithms.
3. Secure Boot: Ensure the system boots with a secure and trusted firmware.
4. Access Control: Limit access to sensitive data and functions.
5. Intrusion Detection: Monitor for potential security breaches.
6. Secure Communication: Protect communication channels with encryption and authentication.
7. Regular Updates: Regularly update software and firmware to address security vulnerabilities.
Safety:
1. Error Handling: Implement robust error handling mechanisms.
2. Fault Tolerance: Design the system to continue operating in case of faults.
3. Redundancy: Implement redundant systems or components.
Roll no: 22KD1A02C1
4. Safety-Critical Components: Use safety-critical components that meet strict safety standards.
5. EMI/EMC: Ensure electromagnetic compatibility and electromagnetic interference.
6. Thermal Management: Ensure proper thermal management to prevent overheating.
7. Compliance: Comply with relevant safety standards and regulations.
Additional considerations:
1. Secure Development: Implement secure development practices.
2. Penetration Testing: Perform regular penetration testing.
3. Code Reviews: Conduct regular code reviews.
4. Security Audits: Perform regular security audits.
5. Incident Response: Establish an incident response plan.
Microchip embedded systems are constantly evolving, and here are some future trends and developments
to expect:
1. Artificial Intelligence (AI) and Machine Learning (ML) integration: Embedded systems will leverage
AI and ML for predictive maintenance, automation, and decision-making.
2
0
Roll no: 22KD1A02C1
2. Internet of Things (IoT) connectivity: Embedded systems will increasingly connect to the IoT, enabling
smart devices and applications.
3. Edge Computing: Embedded systems will process data closer to the source, reducing latency and
improving real-time processing.
4. Security and Trust: Enhanced security features and protocols will be developed to address growing
concerns.
5. Low Power and Energy Harvesting: Embedded systems will focus on reducing power consumption
and harnessing energy from environmental sources.
6. Autonomous Systems: Embedded systems will enable autonomous vehicles, robots, and devices.
7. Advanced Materials and Manufacturing: New materials and manufacturing techniques will lead to
smaller, faster, and more efficient embedded systems.
8. Neuromorphic Computing: Embedded systems will adopt neuromorphic computing for adaptive and
dynamic processing.
9. Heterogeneous Processing: Embedded systems will combine different processing technologies for
optimal performance and efficiency.
Conclusion
As the saying goes “Necessity is the mother of all inventions”, a need for software which would control
process and devices was recognized. The design approach used here has given satisfactory results and the
microcontroller is sufficient for measuring the required parameters. The power consumption has been kept
as low as possible and the measurements made by the device are quite reliable. Accordingly, a highly
interactive user-friendly module based embedded technology with microcontrollers was developed to
solve the problem. The module which is developed will make the job of process easier. The user module
has resulted in reducing work of human also makes more comfortable. The module is, therefore
functioning as a very good tool. Incorporating the future enhancements specified earlier would make the
software a perfect tool, which would help the user. This project gives a detailed mechanism about the robot
that continuously monitors, intimates the respective personnel and extinguishes the fire. In the industry if
any fire accident occurs, there is a need of person to monitor continuously and rectify it. In this process if
any time delay takes place irreparable loss occurs since it is a cotton industry.
Roll no: 22KD1A02C1
2
2