Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
1 views
BCD Program
Uploaded by
22.6024abdullahilyas
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF, TXT or read online on Scribd
Download now
Download
Save Bcd Program For Later
Download
Save
Save Bcd Program For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
1 views
BCD Program
Uploaded by
22.6024abdullahilyas
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF, TXT or read online on Scribd
Download now
Download
Save Bcd Program For Later
Carousel Previous
Carousel Next
Save
Save Bcd Program For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 1
Search
Fullscreen
“Through BCD” convertor, convert a 1-byte binary number into a 3-byte BCD number in
C language for 8052 Microcontroller
#include <8051.h> // Include header for 8052 microcontroller
Void binaryToBCD(unsigned char binary, unsigned char *bcd) {
Bcd[0] = binary / 100; // Hundreds place
Bcd[1] = (binary / 10) % 10; // Tens place
Bcd[2] = binary % 10; // Units place
Void main() {
Unsigned char binary = 0x7B; // Example binary input (123 in decimal)
Unsigned char bcd[3]; // Array to store BCD result
binaryToBCD(binary, bcd);
// Output the BCD result to ports for verification (e.g., debugging)
P1 = bcd[0]; // Hundreds place
P2 = bcd[1]; // Tens place
P3 = bcd[2]; // Units place
While (1); // Infinite loop to hold results
You might also like
BCD Adder Verilog
PDF
50% (4)
BCD Adder Verilog
8 pages
Code Conversion
PDF
No ratings yet
Code Conversion
12 pages
ECE3829 Class Examples: Binary To BCD Converter
PDF
No ratings yet
ECE3829 Class Examples: Binary To BCD Converter
6 pages
Experiment No.HEX to BCD
PDF
No ratings yet
Experiment No.HEX to BCD
3 pages
Binary To BCD Converter
PDF
No ratings yet
Binary To BCD Converter
4 pages
Lab # 3
PDF
No ratings yet
Lab # 3
6 pages
Microprocessor Microproject
PDF
No ratings yet
Microprocessor Microproject
10 pages
ES M2-Note2
PDF
No ratings yet
ES M2-Note2
4 pages
"Convert BCD Number To Equivalent HEXADECIMAL Number": A Project Report On
PDF
No ratings yet
"Convert BCD Number To Equivalent HEXADECIMAL Number": A Project Report On
11 pages
1.1 Bitwise Operations in C
PDF
No ratings yet
1.1 Bitwise Operations in C
9 pages
ES UNIT-II
PDF
No ratings yet
ES UNIT-II
39 pages
Binary To BCD Conversion
PDF
No ratings yet
Binary To BCD Conversion
4 pages
Lab 11 Math Instructions
PDF
No ratings yet
Lab 11 Math Instructions
26 pages
Instruction Set: DR Narayana Swamy R
PDF
No ratings yet
Instruction Set: DR Narayana Swamy R
48 pages
Binary To LCD
PDF
No ratings yet
Binary To LCD
13 pages
C Program To Convert Binary To Decimal and Vice Versa
PDF
No ratings yet
C Program To Convert Binary To Decimal and Vice Versa
3 pages
Ce089 Aaryan Parpyani Csa Lab04
PDF
No ratings yet
Ce089 Aaryan Parpyani Csa Lab04
11 pages
Mupi Lab Manual - Exp-5
PDF
No ratings yet
Mupi Lab Manual - Exp-5
2 pages
PART 3 - 8051 Miccontroller Programming
PDF
No ratings yet
PART 3 - 8051 Miccontroller Programming
9 pages
Lecture6_EELE_1232 (1)
PDF
No ratings yet
Lecture6_EELE_1232 (1)
8 pages
Embedded C Lab (21EC481)
PDF
No ratings yet
Embedded C Lab (21EC481)
19 pages
Binary-to-BCD Converter: Basic Idea
PDF
No ratings yet
Binary-to-BCD Converter: Basic Idea
5 pages
Niraj Micro
PDF
No ratings yet
Niraj Micro
20 pages
BCD Adder-Subtractor
PDF
0% (1)
BCD Adder-Subtractor
9 pages
COA_BCA_notes-98-104-2-7
PDF
No ratings yet
COA_BCA_notes-98-104-2-7
6 pages
Co Practicals
PDF
No ratings yet
Co Practicals
40 pages
Lab 7F BCD and Ascii Conversion in C: Lab Manual For "The 8051 Microcontroller "
PDF
No ratings yet
Lab 7F BCD and Ascii Conversion in C: Lab Manual For "The 8051 Microcontroller "
2 pages
32-Bit BCD Addition
PDF
No ratings yet
32-Bit BCD Addition
10 pages
Pack The Unpacked BCD Numbers - Free 8085 Microprocessor Projects
PDF
No ratings yet
Pack The Unpacked BCD Numbers - Free 8085 Microprocessor Projects
1 page
B2H Algorithm
PDF
No ratings yet
B2H Algorithm
2 pages
UNIT6 - Code Conversion
PDF
No ratings yet
UNIT6 - Code Conversion
71 pages
Unit 04 - Program
PDF
No ratings yet
Unit 04 - Program
7 pages
8051 Program 16 BIT
PDF
No ratings yet
8051 Program 16 BIT
2 pages
C Program To Convert Number From Decimal To Binary, Decimal To Binary Conversion - IncludeHelp
PDF
No ratings yet
C Program To Convert Number From Decimal To Binary, Decimal To Binary Conversion - IncludeHelp
5 pages
Fall 2018/19 - Lecture Notes # 10: - Logic Instructions
PDF
No ratings yet
Fall 2018/19 - Lecture Notes # 10: - Logic Instructions
10 pages
Decimal To Binary and Vice Versa Conversion
PDF
No ratings yet
Decimal To Binary and Vice Versa Conversion
5 pages
6 Hextobcd MPL
PDF
No ratings yet
6 Hextobcd MPL
6 pages
Arithmetic & Logic Instructions and Programs: The 8051 Microcontroller and Embedded Systems: Using Assembly and C
PDF
No ratings yet
Arithmetic & Logic Instructions and Programs: The 8051 Microcontroller and Embedded Systems: Using Assembly and C
44 pages
Topic Data converations
PDF
No ratings yet
Topic Data converations
5 pages
Lecture 3
PDF
No ratings yet
Lecture 3
52 pages
Ex No: 3 Number Conversions Using 8086 Date: AIM: (A) - To Convert The BCD Number To Binary
PDF
No ratings yet
Ex No: 3 Number Conversions Using 8086 Date: AIM: (A) - To Convert The BCD Number To Binary
4 pages
BCD To Binary
PDF
No ratings yet
BCD To Binary
56 pages
BCD Adder
PDF
No ratings yet
BCD Adder
12 pages
Chapter2-Microcontroller Architecture & Assembly Language Pt3
PDF
100% (2)
Chapter2-Microcontroller Architecture & Assembly Language Pt3
36 pages
Figure 3.7. Four Basic Components of The 6812 Processor.: Processor Registers Bus Interface Unit Control Address Data
PDF
No ratings yet
Figure 3.7. Four Basic Components of The 6812 Processor.: Processor Registers Bus Interface Unit Control Address Data
18 pages
II-i It Mpmc Unit-2 Ppt
PDF
No ratings yet
II-i It Mpmc Unit-2 Ppt
46 pages
BCD 2 Binary
PDF
No ratings yet
BCD 2 Binary
25 pages
CH 6 - Arithmetic, Logic Instructions and Programs
PDF
No ratings yet
CH 6 - Arithmetic, Logic Instructions and Programs
35 pages
Embedded_Class-Jan-2024-Lec-IV
PDF
No ratings yet
Embedded_Class-Jan-2024-Lec-IV
85 pages
Lecture 4
PDF
No ratings yet
Lecture 4
7 pages
Packed BCD To Unpacked BCD
PDF
No ratings yet
Packed BCD To Unpacked BCD
5 pages
1.1 Intro to Binary and BCD
PDF
No ratings yet
1.1 Intro to Binary and BCD
6 pages
01 - 8051 IO Ports in C
PDF
No ratings yet
01 - 8051 IO Ports in C
23 pages
C Programming
From Everand
C Programming
Netra
No ratings yet
Computer Engineering Laboratory Solution Primer
From Everand
Computer Engineering Laboratory Solution Primer
Karan Bhandari
No ratings yet
Projects With Microcontrollers And PICC
From Everand
Projects With Microcontrollers And PICC
Guillermo Perez Guillen
5/5 (1)
C Programming for the Pc the Mac and the Arduino Microcontroller System
From Everand
C Programming for the Pc the Mac and the Arduino Microcontroller System
Peter D Minns
No ratings yet
Calculated Encryption
From Everand
Calculated Encryption
John C Livingstone
No ratings yet
Exploring BeagleBone: Tools and Techniques for Building with Embedded Linux
From Everand
Exploring BeagleBone: Tools and Techniques for Building with Embedded Linux
Derek Molloy
4/5 (2)
Network with Practical Labs Configuration: Step by Step configuration of Router and Switch configuration
From Everand
Network with Practical Labs Configuration: Step by Step configuration of Router and Switch configuration
Mulayam Singh
No ratings yet
Document from Abdullah ILYAS Hassan ?
PDF
No ratings yet
Document from Abdullah ILYAS Hassan ?
4 pages
I2C Communicatio Protocol and SPI
PDF
No ratings yet
I2C Communicatio Protocol and SPI
15 pages
Presentation of I2C Communicatio Protocol and SPI Communication
PDF
No ratings yet
Presentation of I2C Communicatio Protocol and SPI Communication
9 pages
ELTR-363 Assembly Language Program
PDF
No ratings yet
ELTR-363 Assembly Language Program
11 pages