SlideShare a Scribd company logo
Unit-IV
On-Chip Peripherals And Programming
Embedded Programming: Data Types,
Operators Embedded Programming: Data
Conversion, I/O Programming Timer/Counter:
Operating Modes, Programming.
UART:Operating Modes, Programming.
data types
• The primary data types used in Embedded C
are: int (integer), char (character), float
(floating point), double (double precision
floating point), along with modifiers like
"unsigned" and "short" to adjust the size and
range of the data depending on the specific
hardware requirements; "void" is also used for
functions that don't return any value.
Key points about data types in Embedded C:
• Int: Most commonly used for whole numbers, usually signed
by default.
• Char: Represents a single character.
• Unsigned: Can be used with integer types to store only
positive values, allowing for a larger positive range.
• Short: Can be used to declare smaller integer variables,
often useful for memory-constrained systems.
• Float/Double: Used for decimal values, with "double"
offering higher precision at the cost of more memory usage.
Important considerations when choosing data types in Embedded
C:
• Memory constraints:
• Microcontrollers often have limited memory, so choosing the
smallest appropriate data type is crucial.
• Hardware specific details:
• The exact size and range of each data type can vary depending
on the microcontroller architecture.
• Bit manipulation:
• Embedded systems often require direct manipulation of
individual bits, which can be achieved using bitwise operators.
Embedded Programming: Data Types, Operators Embedded Programming
Embedded Programming: Data Types, Operators Embedded Programming

More Related Content

PPTX
Basic Computer information and Programming in C
PDF
Data structure & Algorithms - Programming in C
PPT
1 introduction-to-computer
PPTX
Introduction-to-C-Programming (1ggggggggggggggggg).pptx
PPSX
Lecture 2
PPTX
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 Microcontrollers
PPTX
C programmimng basic.ppt
PPTX
Programming 8051 with C and using Keil uVision5.pptx
Basic Computer information and Programming in C
Data structure & Algorithms - Programming in C
1 introduction-to-computer
Introduction-to-C-Programming (1ggggggggggggggggg).pptx
Lecture 2
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 Microcontrollers
C programmimng basic.ppt
Programming 8051 with C and using Keil uVision5.pptx

Similar to Embedded Programming: Data Types, Operators Embedded Programming (20)

PPTX
1.instrumentation ii
PPTX
MICROPROCESSOR.pptx Microprocessor lec 2
PPTX
UNIT 4 8051Microcontroller.pptx
PDF
E-Note_19681_Content_Document_20240512114009AM.pdf
PPT
Embeded system by Mitesh Kumar
PPTX
Data-Types-in-C-Programming.Programming.pptxProgramming.pptxpptx
PPTX
12 mt06ped005
PDF
INTRODUCTION TO C PROGRAMMING in basic c language
PPT
Assembly language programming implemenation
PPT
8051 block diagram
PPSX
Microprocessor Architecture-III
PPT
isa architecture
PDF
01 introduction to microcomputers
PDF
Lesson 3.2 data types for memory location
PPTX
20250505055905FINAL Revised XI CS Computer systems and Organisation Unit1 Par...
PPTX
UNIT 4.pptx
PPTX
The primary purpose of memory interfacing is to facilitate the transfer of da...
PPTX
8051 Programing in C.pptx this is ppt on 8051 programming
PPTX
Uc1(vii sem)
PPTX
INTRODUCTION TO MICROCONTROLLER
1.instrumentation ii
MICROPROCESSOR.pptx Microprocessor lec 2
UNIT 4 8051Microcontroller.pptx
E-Note_19681_Content_Document_20240512114009AM.pdf
Embeded system by Mitesh Kumar
Data-Types-in-C-Programming.Programming.pptxProgramming.pptxpptx
12 mt06ped005
INTRODUCTION TO C PROGRAMMING in basic c language
Assembly language programming implemenation
8051 block diagram
Microprocessor Architecture-III
isa architecture
01 introduction to microcomputers
Lesson 3.2 data types for memory location
20250505055905FINAL Revised XI CS Computer systems and Organisation Unit1 Par...
UNIT 4.pptx
The primary purpose of memory interfacing is to facilitate the transfer of da...
8051 Programing in C.pptx this is ppt on 8051 programming
Uc1(vii sem)
INTRODUCTION TO MICROCONTROLLER
Ad

More from govindsingh258478 (16)

PPTX
Unit - I : Introduction of Embedded system
PPTX
Unit-VI IoT applications like Home automations etc
PPTX
Interfacing with 8051: LED, LED pattern display
PPTX
Off-Chip Peripheral Interfacing And Programming
PPTX
I/O Programming Timer/Counter: Operating Modes
PPTX
Program Counter and ROM space in 8051 and register bank
PPTX
Functional block diagram and pin diagram of 8051
PPTX
Instruction set of microprocessor: Data transfer, Arithmetic
PPTX
Instruction Set and programming with 8085
PPTX
Basics of 8085 microprocessor architecture and functional block, 8085 micropr...
PPTX
Basics of 8085 microprocessor architecture
PDF
Introduction of IEEE 802.15.4 Technology
PDF
types of sensors are active, passive, analog, and digital. Active sensors
PDF
Fundamental components of the Internet of Things unit 1.pdf
PPT
Blockdiagramof8085.ppt
PPTX
Unit 2 DE Notes.pptx
Unit - I : Introduction of Embedded system
Unit-VI IoT applications like Home automations etc
Interfacing with 8051: LED, LED pattern display
Off-Chip Peripheral Interfacing And Programming
I/O Programming Timer/Counter: Operating Modes
Program Counter and ROM space in 8051 and register bank
Functional block diagram and pin diagram of 8051
Instruction set of microprocessor: Data transfer, Arithmetic
Instruction Set and programming with 8085
Basics of 8085 microprocessor architecture and functional block, 8085 micropr...
Basics of 8085 microprocessor architecture
Introduction of IEEE 802.15.4 Technology
types of sensors are active, passive, analog, and digital. Active sensors
Fundamental components of the Internet of Things unit 1.pdf
Blockdiagramof8085.ppt
Unit 2 DE Notes.pptx
Ad

Recently uploaded (20)

PPTX
Construction Project Organization Group 2.pptx
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPT
Mechanical Engineering MATERIALS Selection
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
DOCX
573137875-Attendance-Management-System-original
PPTX
Sustainable Sites - Green Building Construction
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
PPT on Performance Review to get promotions
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
Digital Logic Computer Design lecture notes
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
UNIT 4 Total Quality Management .pptx
Construction Project Organization Group 2.pptx
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Operating System & Kernel Study Guide-1 - converted.pdf
Mechanical Engineering MATERIALS Selection
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
Model Code of Practice - Construction Work - 21102022 .pdf
573137875-Attendance-Management-System-original
Sustainable Sites - Green Building Construction
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPT on Performance Review to get promotions
Automation-in-Manufacturing-Chapter-Introduction.pdf
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
CH1 Production IntroductoryConcepts.pptx
Digital Logic Computer Design lecture notes
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
UNIT 4 Total Quality Management .pptx

Embedded Programming: Data Types, Operators Embedded Programming

  • 1. Unit-IV On-Chip Peripherals And Programming Embedded Programming: Data Types, Operators Embedded Programming: Data Conversion, I/O Programming Timer/Counter: Operating Modes, Programming. UART:Operating Modes, Programming.
  • 2. data types • The primary data types used in Embedded C are: int (integer), char (character), float (floating point), double (double precision floating point), along with modifiers like "unsigned" and "short" to adjust the size and range of the data depending on the specific hardware requirements; "void" is also used for functions that don't return any value.
  • 3. Key points about data types in Embedded C: • Int: Most commonly used for whole numbers, usually signed by default. • Char: Represents a single character. • Unsigned: Can be used with integer types to store only positive values, allowing for a larger positive range. • Short: Can be used to declare smaller integer variables, often useful for memory-constrained systems. • Float/Double: Used for decimal values, with "double" offering higher precision at the cost of more memory usage.
  • 4. Important considerations when choosing data types in Embedded C: • Memory constraints: • Microcontrollers often have limited memory, so choosing the smallest appropriate data type is crucial. • Hardware specific details: • The exact size and range of each data type can vary depending on the microcontroller architecture. • Bit manipulation: • Embedded systems often require direct manipulation of individual bits, which can be achieved using bitwise operators.