0% found this document useful (0 votes)
11 views

Day 3

This document summarizes a training session on embedded C programming. It discusses the structure of a C program, including preprocessor commands, functions, variables, statements, and comments. It also covers escape sequences, data types in C like integer, character, and floating-point types, variable definition and scopes. Specific topics covered include format specifiers, sizeof operator, integer ranges, and representation of signed and unsigned integers. The session aims to help learners understand fundamental C programming concepts.

Uploaded by

Chintala Rahul
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Day 3

This document summarizes a training session on embedded C programming. It discusses the structure of a C program, including preprocessor commands, functions, variables, statements, and comments. It also covers escape sequences, data types in C like integer, character, and floating-point types, variable definition and scopes. Specific topics covered include format specifiers, sizeof operator, integer ranges, and representation of signed and unsigned integers. The session aims to help learners understand fundamental C programming concepts.

Uploaded by

Chintala Rahul
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 71

Master Class on

“Embedded C “
Programming

DAY 3/30 mk
What you will learn Today

 Structure of a C Program
 Escape sequence
 Format Specifier
 C Datatypes and Variables
 Variable Scopes
 Sizeoff Operator
About Pantech Prolabs India Pvt Ltd
 Started in the Year 2004
 Lab equipments and Sensor Interface
 Manufacturer of Brainsense EEG Headset
 Reconfigurable Algorithms on AI
 Manufacture of AI development Boards
 Power electronics, Fuel cell and Renewable Energy trainers

Vision
To help 10 Million students around the
globe to learn technology in a easy way

www.pantechsolutions.net
About me

My Primary Expertise
Microcontroller Architecture: 8051,PIC,AVR,ARM,MSP430,PSOC3
DSP Architecture: Blackfin,C2000,C6000,21065L Sharc
FPGA: Spartan,Virtex,Cyclone
Image Processing Algorithms: Image/Scene Recognition, Machine Learning, Computer Vision, Deep Learning,
Pattern Recognition, Object Classification ,Image Retrieval, Image enhancement and denoising.
Neural Networks : SVM,RBF,BPN
Cryptography :RSA,DES,3DES,Ellipti curve,Blowfish,Diffe Hellman
Compilers: Keil,Visual DSP++,CCS, Xilinx Platform studio,ISE, Matlab, Open CV
https://www.linkedin.com/in/jeevarajan/ www.pantechsolutions.net
Announcement
 Attendance Link at anytime of the session.
 Minimum attendance required for an E-Certificate is 25 Days. Attendance
link will be closed at the end of the event.
 For Internship Candidates no attendance required ,it will be accessed from
the LMS Portal. (learn.pantechsolutions.net)
 Recorded Video Streaming for LAB classes to improve Learning
Experience or if I am not able to present on Live.
 PPT in facebook group and Telegram Group
 Source code and projects available download only for Internship canditates
Mindset Lesson for the Day

“Formal Education will make you a living


Self education will make you a fortune”

The best investment is “Investing in Yourself”

More you work on Yourself, Greater the Impact will


be

www.pantechsolutions.net
For learning hub visit learn.pantechsolutions.net
Are you Ready to learn?
Structure of a C Program
• C program basically consists of the following parts
– Preprocessor Commands
• Inbuilt
• userdefined
– Functions
– Variables
– Statements & Expressions
– Comments

www.pantechsolutions.net
For learning hub visit learn.pantechsolutions.net
Structure of a C Program
Structure of a C Program
Escape Sequence
An escape sequence is a sequence of characters used in formatting the output and are not
displayed while printing text on to the screen, each having its own specific function.
Difference between \n and \r
Difference between \n and \r
Difference between \n and \r
Assignment
Commenting
‘C’ data types and variables
Data Types
Representing real world data
Examples of Data in Real world

Based on the real-world data we have two significant data types in C


Data types
Integer Data types -Signed
Integer data are represented by different integer data types
Integer Data types -unsigned
Storage Size of Different data types
Integer Data types -Storage Size and Range
XC8 COMPILER (PIC 8 Bit Microcontrollers)
armcc compiler for 32 bit ARM Microcontrollers
‘C’ integer data types , their storage
sizes and value ranges
CHAR DATATYPES
Range of CHAR Datatypes
Example
Example
Variable Definition
Example
Write a C program to calculate and
print distance from A to C
Steps to write the Program
FORMAT SPECIFIER
Range Calculation
1 byte signed data representation
Example
Example
Char data type range
Char data type range
Unsigned char range
Unsigned char range
Integer data type : short int and
unsigned short int
Range calculation of short int
Range calculation of short int
Range calculation of short int
2 byte unsigned data representation
Integer data type : int and unsigned
int
Integer data type : long and unsigned
long
Variables
Defining Variables
Defining Variables
Syntax : Defining Variables
Variable initialization
This is illegal
This is legal
Rules for naming a variable
C99 reserved keywords
Variable scopes
Variable scopes
sizeof operator
Q&A
Thank You

You might also like