This PDF serves as a practical guide to microprocessors and controllers for electrical engineering students at Sarvajanik College of Engineering and Technology (SCET GTU). It goes beyond theory, offering practical solutions and applications tailored to the SCET GTU curriculum.
This resource aims to equip students with the skills to implement and utilize microprocessors and controllers effectively in real-world electrical engineering projects.
The document describes writing a C program to print "hello world" using the Keil uVision IDE. The program toggles port P1.0 each time it prints the message to create an infinite loop. The program is compiled and run with no errors. Key steps include selecting the pre-existing hello world project files, building the target, and verifying there are no errors.
The document discusses Real Time Operating Systems (RTOS). It defines RTOS as a multitasking operating system intended for real-time applications. RTOS provides deterministic timing behavior and limited resource utilization for applications that require logically correct results within strict deadlines, such as those found in automotive and industrial systems. The document outlines some key RTOS concepts like multitasking, interrupt handling, and memory management. It explains that while not necessary for simple embedded systems, RTOS is beneficial for more complex real-time applications as it helps manage hardware resources and schedule tasks to meet application demands and deadlines.
The document provides an introduction to embedded systems and the 8051 microcontroller. It discusses that embedded systems are designed to perform specific functions with real-time constraints. The 8051 microcontroller is an 8-bit microchip used for tasks like displaying information through LEDs. The document outlines the features of the 8051 including RAM, ROM, registers, timers, interrupts and I/O pins. It also discusses the software, compiler and programming tools used to program the 8051 microcontroller.
This document provides an overview of the VHDL design flow process from modeling a digital system in VHDL to implementing it in an FPGA. It describes 5 main steps: 1) design entry using a hardware description language like VHDL, 2) functional simulation to verify logical behavior, 3) synthesis to convert the design to logic gates and components, 4) implementation which places and routes the design in the target FPGA, and 5) generating a configuration bitstream file to download to the FPGA. It then guides the reader through an example of designing an 8-bit up/down counter using this flow in Xilinx tools including writing VHDL code, simulating in ModelSim, and synthesizing and
The document describes using an IP core in a Xilinx FPGA design. Specifically, it discusses:
1) Creating an adder/subtractor IP core using the Xilinx CORE Generator.
2) Connecting the IP core as a component in a top-level VHDL file.
3) Synthesizing and programming the design onto a Spartan 3E FPGA board to test the four-bit adder/subtractor functionality.
Creating first project in mikroC PRO for 8051inovabrasil
Fonte: http://www.mikroe.com/downloads/get/304/1st_project_8051_c_v100.pdf [27/03/2014]
Programação de microcontroladores 8051 (MCS-51) em linguagem C.
Para baixar a versão demo do programa compilador mikroC PRO for 8051 [site da MikroElektronika]:
http://www.mikroe.com/mikroc/8051/overview/
The document provides instructions for using the Keil Micro-vision software to write and test embedded C code for 8051 microcontrollers. It describes how to download the Keil software, create a new project specifying the target device as an Atmel AT89C51 microcontroller, add and compile C source code files, and generate the corresponding hex code file. The key steps are to create a project specifying the target device and options, add C source files to the project, compile the project which generates assembly code and hex files for programming the microcontroller.
The document describes writing a C program to print "hello world" using the Keil uVision IDE. The program toggles port P1.0 each time it prints the message to create an infinite loop. The program is compiled and run with no errors. Key steps include selecting the pre-existing hello world project files, building the target, and verifying there are no errors.
The document discusses Real Time Operating Systems (RTOS). It defines RTOS as a multitasking operating system intended for real-time applications. RTOS provides deterministic timing behavior and limited resource utilization for applications that require logically correct results within strict deadlines, such as those found in automotive and industrial systems. The document outlines some key RTOS concepts like multitasking, interrupt handling, and memory management. It explains that while not necessary for simple embedded systems, RTOS is beneficial for more complex real-time applications as it helps manage hardware resources and schedule tasks to meet application demands and deadlines.
The document provides an introduction to embedded systems and the 8051 microcontroller. It discusses that embedded systems are designed to perform specific functions with real-time constraints. The 8051 microcontroller is an 8-bit microchip used for tasks like displaying information through LEDs. The document outlines the features of the 8051 including RAM, ROM, registers, timers, interrupts and I/O pins. It also discusses the software, compiler and programming tools used to program the 8051 microcontroller.
This document provides an overview of the VHDL design flow process from modeling a digital system in VHDL to implementing it in an FPGA. It describes 5 main steps: 1) design entry using a hardware description language like VHDL, 2) functional simulation to verify logical behavior, 3) synthesis to convert the design to logic gates and components, 4) implementation which places and routes the design in the target FPGA, and 5) generating a configuration bitstream file to download to the FPGA. It then guides the reader through an example of designing an 8-bit up/down counter using this flow in Xilinx tools including writing VHDL code, simulating in ModelSim, and synthesizing and
The document describes using an IP core in a Xilinx FPGA design. Specifically, it discusses:
1) Creating an adder/subtractor IP core using the Xilinx CORE Generator.
2) Connecting the IP core as a component in a top-level VHDL file.
3) Synthesizing and programming the design onto a Spartan 3E FPGA board to test the four-bit adder/subtractor functionality.
Creating first project in mikroC PRO for 8051inovabrasil
Fonte: http://www.mikroe.com/downloads/get/304/1st_project_8051_c_v100.pdf [27/03/2014]
Programação de microcontroladores 8051 (MCS-51) em linguagem C.
Para baixar a versão demo do programa compilador mikroC PRO for 8051 [site da MikroElektronika]:
http://www.mikroe.com/mikroc/8051/overview/
The document provides instructions for using the Keil Micro-vision software to write and test embedded C code for 8051 microcontrollers. It describes how to download the Keil software, create a new project specifying the target device as an Atmel AT89C51 microcontroller, add and compile C source code files, and generate the corresponding hex code file. The key steps are to create a project specifying the target device and options, add C source files to the project, compile the project which generates assembly code and hex files for programming the microcontroller.
We are one of the best embedded systems training institute for advance courses. We are the pioneer of the embedded system training in Pune & Pcmc with the expertise of over 16 years. we are working in the field training & development of embedded systems & currently we are also working on live projects as per the requirements of clients. though we provide many different courses & training in embedded all aim at giving good practical knowledge to students as well help them in their career.
We are one of the best embedded systems training institute for advance courses. We are the pioneer of the embedded system training in Pune & Pcmc with the expertise of over 16 years. we are working in the field training & development of embedded systems & currently we are also working on live projects as per the requirements of clients. though we provide many different courses & training in embedded all aim at giving good practical knowledge to students as well help them in their career.
15LLP108_Demo4_LedBlinking.pdf1. Introduction In D.docxfelicidaddinwoodie
15LLP108_Demo4_LedBlinking.pdf
1. Introduction
In Demo3, we have learned how to read sensor values of light, temperature and humidity of a node
and output these values to the console. In this demonstration, we will use the code from Demo3 and
learn how to turn on/off the LEDs and make them blinking regularly on the sensor node XM1000,
meanwhile to count how many times the LED has blinked and output the count to the console.
2. Timer
In order to make the blue LED on the XM1000 sensor node to blink in every half second (i.e. On 0.5S
and Off 0.5S), we also need a timer. Follow the instructions in Demo3 for configure and reset a timer.
We aslo need to create an infinite while() loop so that it runs our functions repeatedly, such as
counting the times the LED has blinked, output the counter’s value and actually turn on or off the
LEDs to make it blinking.
Please follow timer and while() loop structure in Demo3.
3. LED Blinking
To get access to the LED functionalities in Contiki, we need to include the LED header file in the
source code:
#include "leds.h" // file is in directory /home/user/contiki/core/dev
After the process begin, we have to initialise the LEDs on the sensor node by calling the following
function:
leds_init(); // Initialise the LEDs
And finally we can turn on, off, or blink the LEDs by the following functions:
void leds_on(unsigned char leds);
void leds_off(unsigned char leds);
void leds_toggle(unsigned char leds);
void leds_invert(unsigned char leds);
For example, if you want to blink the Blue LED, yon need to call the toggle function as:
void leds_toggle(LEDS_BLUE); // Toggle the blue LED
4. Exercise
Modify the program from Demo3 with periodic timer to make the BLUE led blinking in every half
second, also to count the blinking times and output the counted number to the console.
Can your change the code so that the BLUE LED is lighted for 1 second and off for 0.5 second
periodically?
15LLP108 – Internet of Things and Applications
Lab Session 2: Demo 4 – LED Blinking
Prepared by Xiyu Shi
5. Source code
Here is the source code for reference
#include "contiki.h"
#include "leds.h"
#include <stdio.h> /* for printf() */
static struct etimer timer;
/*____________________________________________________*/
PROCESS(led_blinking_process, "LED Blinking Process");
PROCESS(LED_process, "LED process");
AUTOSTART_PROCESSES(&LED_process);
/*____________________________________________________*/
PROCESS_THREAD(LED_process, ev, data)
{
static int count = 0;
PROCESS_BEGIN();
etimer_set(&timer, CLOCK_CONF_SECOND/2); // 0.5S timer
leds_init(); // intialise the LEDs
while(1) {
PROCESS_WAIT_EVENT_UNTIL(ev==PROCESS_EVENT_TIMER); // wait for timer event
count++; // count the blinking times
process_start(&led_blinking_process, NULL); // to blink the BLUE Led
printf("Count: %d\n", count); // output the counte ...
Info plc net_dcs800_controlbuilder_basic_exercisesMahmoud Hassan
This document provides instructions for programming ABB DC drives using ControlBuilder DCS800 software. It covers installing the software, creating a basic project to read and write digital inputs and outputs, and uploading/downloading the program to the drive's memory card. The document contains step-by-step explanations and screenshots to guide users through programming their first application to control a digital input and output on an ABB DC drive. Advanced examples are also provided for reading and writing analog signals.
This document describes an experiment to implement a VHDL decoder design onto an FPGA board. The experiment involves:
1. Designing a 2-to-4 decoder using VHDL code and simulating the design functionally and for timing. The VHDL code is then synthesized and the design is implemented onto an FPGA board.
2. Designing a 3-to-8 decoder using two 2-to-4 decoders as components in VHDL code. The 3-to-8 decoder design is also simulated and implemented onto the FPGA board.
3. Testing and verifying the decoder designs by observing the LED outputs on the FPGA board in response to switch inputs. Results
This document demonstrates how to debug firmware on a PIC microcontroller using the PICKit2 debugger in MPLAB IDE. It creates a simple blinking LED project in MPLAB using a PIC16F877 microcontroller and the CCS C compiler. The firmware is programmed onto the PIC16F877 using PICKit2. PICKit2 is then configured as a debugger to set breakpoints and inspect variables in the firmware using the debugging windows in MPLAB. This allows stepping through and analyzing the firmware to locate any issues.
IBM iSeries Terminal Based Performance Testing with Rational Performance TesterWinton Winton
This document provides guidance on using Rational Performance Tester version 8.1 to test the scalability of legacy 5250 "green screen" terminal applications. It describes recording a sample scenario that involves logging into an IBM i system, running a command to create a library, and logging out. It then discusses how to handle variable substitution and data correlation when replacing EBCDIC strings in the recorded scenario, including using custom Java code to encode variables from an ASCII datapool into EBCDIC for substitution. The document concludes with an example of how to size an RPT infrastructure based on test results.
The document discusses a presentation on VLSI design given by students after an industrial training. It provides an introduction to VLSI, describes software used in VLSI design like DSCH, Xilinx, Altera and Microwind. It explains VLSI design hierarchy, basic VHDL code structure and Verilog code structure. It also discusses programmable logic device and the downloading process on a PLD using Xilinx. The conclusion states that VLSI design has significant scope as a career.
Application specific Programming of the Texas Instruments ...butest
The document provides an overview of programming the Texas Instruments TMS320C6711 digital signal processor using Simulink. It describes the hardware features of the TMS320C6711 DSK board and how to configure it for use with Simulink. It then gives an example of building an audio reverberation model in Simulink and deploying it to run on the DSK board.
The document describes a method for simulating the processor subsystem (PS) of a Zynq-7000 All Programmable SoC (AP SoC) design within the ISE Design Suite simulator (ISim). It allows for cycle-accurate simulation of peripheral IP connected to the PS through AXI interfaces, while the PS is simulated in hardware on a ZC702 board. An example design connects an AXI timer to the PS as a slave peripheral. The PS is programmed and debugged using SDK, while the simulation verifies the interactions between the PS and peripheral through AXI transactions visible in ISim.
Webinar: Começando seus trabalhos com Machine Learning utilizando ferramentas...Embarcados
Nesse webinar será apresentado o passo a passo de como criar projetos com Machine Learning utilizando ferramentas de terceiros como Sensi ML e Edge Impulse.
Tópicos que serão apresentados:
Kits de desenvolvimento para Machine Learning:
EV18H79A: SAMD21 ML Evaluation Kit with TDK 6-axis MEMS
EV45Y33A: SAMD21 ML Evaluation Kit with BOSCH IMU
SAMC21 xPlained Pro evaluation kit (ATSAMC21-XPRO) plus its QT8 xPlained Pro Extension Kit (AC164161)
Ferramentas de desenvolvimento:
MPLAB X
Data Visualizer
Ambiente de terceiros: Sensi ML e Edge Impulse
Coleta de dados
Como desenvolver um projeto usando Machine Learning sem conhecimentos específicos sobre o assunto e com conhecimentos sobre Machine Learning.
This document provides information about a lab manual for a Microcontrollers course. It includes:
1) An index listing 12 experiments covering assembly programming of 8051 microcontrollers and interfacing programs, along with MSP430 programming.
2) Syllabus details for the course outlining topics like data transfer, arithmetic, logic instructions, counters and interfacing modules.
3) Instructions for students on lab protocols and expectations.
4) Table of contents organizing the experiments and programs by topic and page numbers.
5) An introduction section describing 8051 architecture features and Keil μVision tools for programming.
Advanced View Pic Microcontroller Projects List _ PIC Microcontroller.pdfIsmailkhan77481
Most of the electronics geeks are asking the whole list of pic projects PDF here we will share list every month as our projects are being updated on daily basis. PDF is a good source to work offline. We will offer direct PDF file download link with info of its release date , number of projects.
This document provides answers to frequently asked questions about WECON's PI series of industrial touch panel PCs. It covers topics such as available operating systems, included support, the PI Studio software for project development, communication ports, functions like data recording and alarms, differences from the LEVI series, and calibrating touch screens.
This document provides an overview of the Topic-Chat project, which aims to develop a chat application for students to discuss different topics and subjects. It includes sections on system analysis, software requirements, selected technologies, system design, and outputs. The key technologies used are Google Cloud Messaging for push notifications, PHP for the server, MySQL for the database, and Android for the client. Diagrams are provided showing the entity relationship, use cases, and system architecture. The outputs demonstrated include admin and student interfaces for registration, login, viewing topics and messages.
Programming the ARM CORTEX M3 based STM32F100RBT6 Value Line Discovery BoardGaurav Verma
This programming manual is providing the complete details of programming the STM32 Value-line discovery (a low-cost) evaluation board for Value-line of STM32 microcontrollers from STMicroelectronics.
This document provides instructions for creating and simulating a counter design using the Xilinx ISE design suite. It describes how to start ISE, create a new project, add a VHDL source file to define the counter module, generate a testbench waveform to simulate the design, and view the simulation results. Key steps include using language templates to add behavioral code to the counter, initializing timing settings for the testbench, and generating expected output values to create a self-checking testbench.
This document provides a user's guide for implementing digital logic designs on Altera's UP 1 Educational Board using their MAX+plus II CAD software. It introduces a 4-bit binary counter design example to demonstrate the design process. The steps covered include entering the design schematically, performing functional simulation, synthesizing the design for the FPGA, and downloading the design onto the UP 1 board. The guide is organized into chapters that cover general information about the UP 1 board and MAX+plus II tools, the binary counter example, and combining schematic and hardware description language approaches.
This PDF delves into practical solutions for switchgear and protection in electrical engineering, geared towards students at Sarvajanik College of Engineering and Technology (SCET GTU). It likely covers essential topics like switchgear types, protection schemes, and practical applications relevant to the SCET GTU curriculum.
By providing practical solutions, this resource aims to bridge the gap between theoretical knowledge and real-world engineering practices.
Electric Vehicle, it's types and Battery Management System_Summer Internship ...Parth Gajjar
This document explores the world of electric vehicles (EVs), highlighting the different types available and a key component - the Battery Management System (BMS).
It covers Battery Electric Vehicles (BEVs), Plug-in Hybrids (PHEVs), Hybrid Electric Vehicles (HEVs), and Fuel Cell Electric Vehicles (FCEVs). The BMS is then explained as the critical system that ensures battery safety, performance, and longevity in EVs. By understanding these core elements, readers gain a solid foundation on electric vehicle technology and its potential for a cleaner transportation future.
We are one of the best embedded systems training institute for advance courses. We are the pioneer of the embedded system training in Pune & Pcmc with the expertise of over 16 years. we are working in the field training & development of embedded systems & currently we are also working on live projects as per the requirements of clients. though we provide many different courses & training in embedded all aim at giving good practical knowledge to students as well help them in their career.
We are one of the best embedded systems training institute for advance courses. We are the pioneer of the embedded system training in Pune & Pcmc with the expertise of over 16 years. we are working in the field training & development of embedded systems & currently we are also working on live projects as per the requirements of clients. though we provide many different courses & training in embedded all aim at giving good practical knowledge to students as well help them in their career.
15LLP108_Demo4_LedBlinking.pdf1. Introduction In D.docxfelicidaddinwoodie
15LLP108_Demo4_LedBlinking.pdf
1. Introduction
In Demo3, we have learned how to read sensor values of light, temperature and humidity of a node
and output these values to the console. In this demonstration, we will use the code from Demo3 and
learn how to turn on/off the LEDs and make them blinking regularly on the sensor node XM1000,
meanwhile to count how many times the LED has blinked and output the count to the console.
2. Timer
In order to make the blue LED on the XM1000 sensor node to blink in every half second (i.e. On 0.5S
and Off 0.5S), we also need a timer. Follow the instructions in Demo3 for configure and reset a timer.
We aslo need to create an infinite while() loop so that it runs our functions repeatedly, such as
counting the times the LED has blinked, output the counter’s value and actually turn on or off the
LEDs to make it blinking.
Please follow timer and while() loop structure in Demo3.
3. LED Blinking
To get access to the LED functionalities in Contiki, we need to include the LED header file in the
source code:
#include "leds.h" // file is in directory /home/user/contiki/core/dev
After the process begin, we have to initialise the LEDs on the sensor node by calling the following
function:
leds_init(); // Initialise the LEDs
And finally we can turn on, off, or blink the LEDs by the following functions:
void leds_on(unsigned char leds);
void leds_off(unsigned char leds);
void leds_toggle(unsigned char leds);
void leds_invert(unsigned char leds);
For example, if you want to blink the Blue LED, yon need to call the toggle function as:
void leds_toggle(LEDS_BLUE); // Toggle the blue LED
4. Exercise
Modify the program from Demo3 with periodic timer to make the BLUE led blinking in every half
second, also to count the blinking times and output the counted number to the console.
Can your change the code so that the BLUE LED is lighted for 1 second and off for 0.5 second
periodically?
15LLP108 – Internet of Things and Applications
Lab Session 2: Demo 4 – LED Blinking
Prepared by Xiyu Shi
5. Source code
Here is the source code for reference
#include "contiki.h"
#include "leds.h"
#include <stdio.h> /* for printf() */
static struct etimer timer;
/*____________________________________________________*/
PROCESS(led_blinking_process, "LED Blinking Process");
PROCESS(LED_process, "LED process");
AUTOSTART_PROCESSES(&LED_process);
/*____________________________________________________*/
PROCESS_THREAD(LED_process, ev, data)
{
static int count = 0;
PROCESS_BEGIN();
etimer_set(&timer, CLOCK_CONF_SECOND/2); // 0.5S timer
leds_init(); // intialise the LEDs
while(1) {
PROCESS_WAIT_EVENT_UNTIL(ev==PROCESS_EVENT_TIMER); // wait for timer event
count++; // count the blinking times
process_start(&led_blinking_process, NULL); // to blink the BLUE Led
printf("Count: %d\n", count); // output the counte ...
Info plc net_dcs800_controlbuilder_basic_exercisesMahmoud Hassan
This document provides instructions for programming ABB DC drives using ControlBuilder DCS800 software. It covers installing the software, creating a basic project to read and write digital inputs and outputs, and uploading/downloading the program to the drive's memory card. The document contains step-by-step explanations and screenshots to guide users through programming their first application to control a digital input and output on an ABB DC drive. Advanced examples are also provided for reading and writing analog signals.
This document describes an experiment to implement a VHDL decoder design onto an FPGA board. The experiment involves:
1. Designing a 2-to-4 decoder using VHDL code and simulating the design functionally and for timing. The VHDL code is then synthesized and the design is implemented onto an FPGA board.
2. Designing a 3-to-8 decoder using two 2-to-4 decoders as components in VHDL code. The 3-to-8 decoder design is also simulated and implemented onto the FPGA board.
3. Testing and verifying the decoder designs by observing the LED outputs on the FPGA board in response to switch inputs. Results
This document demonstrates how to debug firmware on a PIC microcontroller using the PICKit2 debugger in MPLAB IDE. It creates a simple blinking LED project in MPLAB using a PIC16F877 microcontroller and the CCS C compiler. The firmware is programmed onto the PIC16F877 using PICKit2. PICKit2 is then configured as a debugger to set breakpoints and inspect variables in the firmware using the debugging windows in MPLAB. This allows stepping through and analyzing the firmware to locate any issues.
IBM iSeries Terminal Based Performance Testing with Rational Performance TesterWinton Winton
This document provides guidance on using Rational Performance Tester version 8.1 to test the scalability of legacy 5250 "green screen" terminal applications. It describes recording a sample scenario that involves logging into an IBM i system, running a command to create a library, and logging out. It then discusses how to handle variable substitution and data correlation when replacing EBCDIC strings in the recorded scenario, including using custom Java code to encode variables from an ASCII datapool into EBCDIC for substitution. The document concludes with an example of how to size an RPT infrastructure based on test results.
The document discusses a presentation on VLSI design given by students after an industrial training. It provides an introduction to VLSI, describes software used in VLSI design like DSCH, Xilinx, Altera and Microwind. It explains VLSI design hierarchy, basic VHDL code structure and Verilog code structure. It also discusses programmable logic device and the downloading process on a PLD using Xilinx. The conclusion states that VLSI design has significant scope as a career.
Application specific Programming of the Texas Instruments ...butest
The document provides an overview of programming the Texas Instruments TMS320C6711 digital signal processor using Simulink. It describes the hardware features of the TMS320C6711 DSK board and how to configure it for use with Simulink. It then gives an example of building an audio reverberation model in Simulink and deploying it to run on the DSK board.
The document describes a method for simulating the processor subsystem (PS) of a Zynq-7000 All Programmable SoC (AP SoC) design within the ISE Design Suite simulator (ISim). It allows for cycle-accurate simulation of peripheral IP connected to the PS through AXI interfaces, while the PS is simulated in hardware on a ZC702 board. An example design connects an AXI timer to the PS as a slave peripheral. The PS is programmed and debugged using SDK, while the simulation verifies the interactions between the PS and peripheral through AXI transactions visible in ISim.
Webinar: Começando seus trabalhos com Machine Learning utilizando ferramentas...Embarcados
Nesse webinar será apresentado o passo a passo de como criar projetos com Machine Learning utilizando ferramentas de terceiros como Sensi ML e Edge Impulse.
Tópicos que serão apresentados:
Kits de desenvolvimento para Machine Learning:
EV18H79A: SAMD21 ML Evaluation Kit with TDK 6-axis MEMS
EV45Y33A: SAMD21 ML Evaluation Kit with BOSCH IMU
SAMC21 xPlained Pro evaluation kit (ATSAMC21-XPRO) plus its QT8 xPlained Pro Extension Kit (AC164161)
Ferramentas de desenvolvimento:
MPLAB X
Data Visualizer
Ambiente de terceiros: Sensi ML e Edge Impulse
Coleta de dados
Como desenvolver um projeto usando Machine Learning sem conhecimentos específicos sobre o assunto e com conhecimentos sobre Machine Learning.
This document provides information about a lab manual for a Microcontrollers course. It includes:
1) An index listing 12 experiments covering assembly programming of 8051 microcontrollers and interfacing programs, along with MSP430 programming.
2) Syllabus details for the course outlining topics like data transfer, arithmetic, logic instructions, counters and interfacing modules.
3) Instructions for students on lab protocols and expectations.
4) Table of contents organizing the experiments and programs by topic and page numbers.
5) An introduction section describing 8051 architecture features and Keil μVision tools for programming.
Advanced View Pic Microcontroller Projects List _ PIC Microcontroller.pdfIsmailkhan77481
Most of the electronics geeks are asking the whole list of pic projects PDF here we will share list every month as our projects are being updated on daily basis. PDF is a good source to work offline. We will offer direct PDF file download link with info of its release date , number of projects.
This document provides answers to frequently asked questions about WECON's PI series of industrial touch panel PCs. It covers topics such as available operating systems, included support, the PI Studio software for project development, communication ports, functions like data recording and alarms, differences from the LEVI series, and calibrating touch screens.
This document provides an overview of the Topic-Chat project, which aims to develop a chat application for students to discuss different topics and subjects. It includes sections on system analysis, software requirements, selected technologies, system design, and outputs. The key technologies used are Google Cloud Messaging for push notifications, PHP for the server, MySQL for the database, and Android for the client. Diagrams are provided showing the entity relationship, use cases, and system architecture. The outputs demonstrated include admin and student interfaces for registration, login, viewing topics and messages.
Programming the ARM CORTEX M3 based STM32F100RBT6 Value Line Discovery BoardGaurav Verma
This programming manual is providing the complete details of programming the STM32 Value-line discovery (a low-cost) evaluation board for Value-line of STM32 microcontrollers from STMicroelectronics.
This document provides instructions for creating and simulating a counter design using the Xilinx ISE design suite. It describes how to start ISE, create a new project, add a VHDL source file to define the counter module, generate a testbench waveform to simulate the design, and view the simulation results. Key steps include using language templates to add behavioral code to the counter, initializing timing settings for the testbench, and generating expected output values to create a self-checking testbench.
This document provides a user's guide for implementing digital logic designs on Altera's UP 1 Educational Board using their MAX+plus II CAD software. It introduces a 4-bit binary counter design example to demonstrate the design process. The steps covered include entering the design schematically, performing functional simulation, synthesizing the design for the FPGA, and downloading the design onto the UP 1 board. The guide is organized into chapters that cover general information about the UP 1 board and MAX+plus II tools, the binary counter example, and combining schematic and hardware description language approaches.
This PDF delves into practical solutions for switchgear and protection in electrical engineering, geared towards students at Sarvajanik College of Engineering and Technology (SCET GTU). It likely covers essential topics like switchgear types, protection schemes, and practical applications relevant to the SCET GTU curriculum.
By providing practical solutions, this resource aims to bridge the gap between theoretical knowledge and real-world engineering practices.
Electric Vehicle, it's types and Battery Management System_Summer Internship ...Parth Gajjar
This document explores the world of electric vehicles (EVs), highlighting the different types available and a key component - the Battery Management System (BMS).
It covers Battery Electric Vehicles (BEVs), Plug-in Hybrids (PHEVs), Hybrid Electric Vehicles (HEVs), and Fuel Cell Electric Vehicles (FCEVs). The BMS is then explained as the critical system that ensures battery safety, performance, and longevity in EVs. By understanding these core elements, readers gain a solid foundation on electric vehicle technology and its potential for a cleaner transportation future.
Electric Vehicle, it's types and Battery Management System_Summer Internship ...Parth Gajjar
This document explores the world of electric vehicles (EVs), highlighting the different types available and a key component - the Battery Management System (BMS).
It covers Battery Electric Vehicles (BEVs), Plug-in Hybrids (PHEVs), Hybrid Electric Vehicles (HEVs), and Fuel Cell Electric Vehicles (FCEVs). The BMS is then explained as the critical system that ensures battery safety, performance, and longevity in EVs. By understanding these core elements, readers gain a solid foundation on electric vehicle technology and its potential for a cleaner transportation future.
EY Techathon 4.0 Solution by Parth Gajjar & Team.pdfParth Gajjar
This document proudly unveils our group's innovative solution to the EY Techathon 4.0's healthcare industry challenge. We harnessed the power of Generative AI (Gen AI) to develop a groundbreaking system for Personalized Diagnosis and Treatment.
------------------------------------------------------------------------
Whether you need a presentation for a business meeting, a sales pitch, or an educational lecture, I can create a custom design that meets your specific needs and goals.
Contact me today to discuss your next presentation project!
Parth Gajjar
[Whatsapp : https://wa.me/+918238231270]
[https://iconventurecompany.com/]
[www.linkedin.com/in/iparthgajjar]
Management Information System (MIS) Project - Lotus Thread Company Limited & ...Parth Gajjar
This document tackles two critical business challenges through the lens of case studies:
Case Study 1: Optimizing Distribution Networks - Lotus Thread Company Limited (LTCL)
This section delves into the well-known case study of LTCL, a thread manufacturer grappling with optimizing its distribution network. The case likely presents a scenario where LTCL needs to choose from various distribution options.
Case Study 2: IT System Adoption at Bharat Petroleum Corporation Limited (BPCL)
The second case study focuses on BPCL, a major Indian oil corporation, and its adoption of a new IT system.
------------------------------------------------------------------------
Whether you need a presentation for a business meeting, a sales pitch, or an educational lecture, I can create a custom design that meets your specific needs and goals.
Contact me today to discuss your next presentation project!
Parth Gajjar
[Whatsapp : https://wa.me/+918238231270]
[https://iconventurecompany.com/]
[www.linkedin.com/in/iparthgajjar]
MBA Case Study Presentation Organization Theory & Decision - Parth GajjarParth Gajjar
This document delves into the realm of organizational decision-making through a specific lens: the Nifty Fifty. This group of prominent Indian companies during the 1990s stock market boom serves as a springboard for examining how businesses navigate critical choices.
The research focuses on two key Nifty Fifty members:
Hero MotoCorp: A legendary Indian two-wheeler manufacturer, Hero MotoCorp's decision-making will be scrutinized to understand its strategies for staying ahead in a competitive market.
Reliance Industries Limited (RIL): A multifaceted conglomerate, RIL's decision-making processes will be dissected to glean insights into its diversification and growth tactics.
To enrich the analysis, the research will incorporate case studies of several other Indian companies:
Nokia: Once a mobile phone giant, Nokia's experience offers valuable lessons in adapting to technological disruptions and changing market dynamics.
Flipkart & Myntra: These e-commerce powerhouses have revolutionized Indian retail. Their case studies will explore decision-making in the burgeoning online marketplace.
JSW Steel (Jindal Saw Limited): A major steel producer, JSW's case study will examine decision-making within the Indian manufacturing sector.
Rajwant Engineering Limited (REPL): This company's specific industry and its decision-making will be explored to provide a more comprehensive understanding of organizational strategies across different sectors.
------------------------------------------------------------------------
Whether you need a presentation for a business meeting, a sales pitch, or an educational lecture, I can create a custom design that meets your specific needs and goals.
Contact me today to discuss your next presentation project!
Parth Gajjar
[Whatsapp : https://wa.me/+918238231270]
[https://iconventurecompany.com/]
[www.linkedin.com/in/iparthgajjar]
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...shadow0702a
This document serves as a comprehensive step-by-step guide on how to effectively use PyCharm for remote debugging of the Windows Subsystem for Linux (WSL) on a local Windows machine. It meticulously outlines several critical steps in the process, starting with the crucial task of enabling permissions, followed by the installation and configuration of WSL.
The guide then proceeds to explain how to set up the SSH service within the WSL environment, an integral part of the process. Alongside this, it also provides detailed instructions on how to modify the inbound rules of the Windows firewall to facilitate the process, ensuring that there are no connectivity issues that could potentially hinder the debugging process.
The document further emphasizes on the importance of checking the connection between the Windows and WSL environments, providing instructions on how to ensure that the connection is optimal and ready for remote debugging.
It also offers an in-depth guide on how to configure the WSL interpreter and files within the PyCharm environment. This is essential for ensuring that the debugging process is set up correctly and that the program can be run effectively within the WSL terminal.
Additionally, the document provides guidance on how to set up breakpoints for debugging, a fundamental aspect of the debugging process which allows the developer to stop the execution of their code at certain points and inspect their program at those stages.
Finally, the document concludes by providing a link to a reference blog. This blog offers additional information and guidance on configuring the remote Python interpreter in PyCharm, providing the reader with a well-rounded understanding of the process.
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsVictor Morales
K8sGPT is a tool that analyzes and diagnoses Kubernetes clusters. This presentation was used to share the requirements and dependencies to deploy K8sGPT in a local environment.
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...IJECEIAES
Medical image analysis has witnessed significant advancements with deep learning techniques. In the domain of brain tumor segmentation, the ability to
precisely delineate tumor boundaries from magnetic resonance imaging (MRI)
scans holds profound implications for diagnosis. This study presents an ensemble convolutional neural network (CNN) with transfer learning, integrating
the state-of-the-art Deeplabv3+ architecture with the ResNet18 backbone. The
model is rigorously trained and evaluated, exhibiting remarkable performance
metrics, including an impressive global accuracy of 99.286%, a high-class accuracy of 82.191%, a mean intersection over union (IoU) of 79.900%, a weighted
IoU of 98.620%, and a Boundary F1 (BF) score of 83.303%. Notably, a detailed comparative analysis with existing methods showcases the superiority of
our proposed model. These findings underscore the model’s competence in precise brain tumor localization, underscoring its potential to revolutionize medical
image analysis and enhance healthcare outcomes. This research paves the way
for future exploration and optimization of advanced CNN models in medical
imaging, emphasizing addressing false positives and resource efficiency.
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTjpsjournal1
The rivalry between prominent international actors for dominance over Central Asia's hydrocarbon
reserves and the ancient silk trade route, along with China's diplomatic endeavours in the area, has been
referred to as the "New Great Game." This research centres on the power struggle, considering
geopolitical, geostrategic, and geoeconomic variables. Topics including trade, political hegemony, oil
politics, and conventional and nontraditional security are all explored and explained by the researcher.
Using Mackinder's Heartland, Spykman Rimland, and Hegemonic Stability theories, examines China's role
in Central Asia. This study adheres to the empirical epistemological method and has taken care of
objectivity. This study analyze primary and secondary research documents critically to elaborate role of
china’s geo economic outreach in central Asian countries and its future prospect. China is thriving in trade,
pipeline politics, and winning states, according to this study, thanks to important instruments like the
Shanghai Cooperation Organisation and the Belt and Road Economic Initiative. According to this study,
China is seeing significant success in commerce, pipeline politics, and gaining influence on other
governments. This success may be attributed to the effective utilisation of key tools such as the Shanghai
Cooperation Organisation and the Belt and Road Economic Initiative.
Software Engineering and Project Management - Introduction, Modeling Concepts...Prakhyath Rai
Introduction, Modeling Concepts and Class Modeling: What is Object orientation? What is OO development? OO Themes; Evidence for usefulness of OO development; OO modeling history. Modeling
as Design technique: Modeling, abstraction, The Three models. Class Modeling: Object and Class Concept, Link and associations concepts, Generalization and Inheritance, A sample class model, Navigation of class models, and UML diagrams
Building the Analysis Models: Requirement Analysis, Analysis Model Approaches, Data modeling Concepts, Object Oriented Analysis, Scenario-Based Modeling, Flow-Oriented Modeling, class Based Modeling, Creating a Behavioral Model.
Embedded machine learning-based road conditions and driving behavior monitoringIJECEIAES
Car accident rates have increased in recent years, resulting in losses in human lives, properties, and other financial costs. An embedded machine learning-based system is developed to address this critical issue. The system can monitor road conditions, detect driving patterns, and identify aggressive driving behaviors. The system is based on neural networks trained on a comprehensive dataset of driving events, driving styles, and road conditions. The system effectively detects potential risks and helps mitigate the frequency and impact of accidents. The primary goal is to ensure the safety of drivers and vehicles. Collecting data involved gathering information on three key road events: normal street and normal drive, speed bumps, circular yellow speed bumps, and three aggressive driving actions: sudden start, sudden stop, and sudden entry. The gathered data is processed and analyzed using a machine learning system designed for limited power and memory devices. The developed system resulted in 91.9% accuracy, 93.6% precision, and 92% recall. The achieved inference time on an Arduino Nano 33 BLE Sense with a 32-bit CPU running at 64 MHz is 34 ms and requires 2.6 kB peak RAM and 139.9 kB program flash memory, making it suitable for resource-constrained embedded systems.
Introduction- e - waste – definition - sources of e-waste– hazardous substances in e-waste - effects of e-waste on environment and human health- need for e-waste management– e-waste handling rules - waste minimization techniques for managing e-waste – recycling of e-waste - disposal treatment methods of e- waste – mechanism of extraction of precious metal from leaching solution-global Scenario of E-waste – E-waste in India- case studies.
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...IJECEIAES
Climate change's impact on the planet forced the United Nations and governments to promote green energies and electric transportation. The deployments of photovoltaic (PV) and electric vehicle (EV) systems gained stronger momentum due to their numerous advantages over fossil fuel types. The advantages go beyond sustainability to reach financial support and stability. The work in this paper introduces the hybrid system between PV and EV to support industrial and commercial plants. This paper covers the theoretical framework of the proposed hybrid system including the required equation to complete the cost analysis when PV and EV are present. In addition, the proposed design diagram which sets the priorities and requirements of the system is presented. The proposed approach allows setup to advance their power stability, especially during power outages. The presented information supports researchers and plant owners to complete the necessary analysis while promoting the deployment of clean energy. The result of a case study that represents a dairy milk farmer supports the theoretical works and highlights its advanced benefits to existing plants. The short return on investment of the proposed approach supports the paper's novelty approach for the sustainable electrical system. In addition, the proposed system allows for an isolated power setup without the need for a transmission line which enhances the safety of the electrical network
2. INDEX PAGE
MPMC 180420109009
SR No. DESCRIPTION DATE
1. Study of Block Diagram and Pin diagram of 8051 microcontroller 08 Feb. 2021
2. Introduction to KEIL μVISION4 IDE, assembler, compiler, linker,
simulator, debugger and assembler directives
08 Feb. 2021
3.
Block Data Transfer:
1. Internal RAM to Internal RAM data Transfer
2. External RAM to Internal RAM data Transfer
3. Code Memory to Internal RAM data transfer
4. Reverse Block of Data in internal RAM
5. Data Transfer with overlapping addresses
15 Feb. 2021
4.
1. Finding Washing Machine and TV Set code from a set of data
2. Find the number of vowels from a string available in code
memory.
3. Separate ODD/Even Numbers
4.Separate POSITIVE/NEGATIVE Numbers
08 Mar. 2021
5.
Code Conversion & Multibyte deminal addition
1. Hex to ASCII conversion using subroutine
2. ASCII to Hex comversion
3. Hex to BCD digit Separation
4. BCD to Hex conversion
5. Multibyte decimal number addition
22 Mar. 2021
6.
Port Programming
1. Indicate the status of S/W pressed on LED
2. If S1 is pressed then display 55H and if S2 is pressed Display
0AAH.
29 Mar. 2021
7.
Timer Programming
1. Generate a Square wave of 1 kHz frequency on P1.0 pin using
timer-0 in mode-1.
2. Generate a Square wave of 1 kHz frequency on P1.0 pin using
timer-0 in mode-2.
3. Update and display real time second on port-0 using timer-0 in
mode-1
5 April. 2021
8.
Seven Segment Display
1. Draw an Interfacing scheme to interface four common
cathode seven-segment LEDs with 8051 and using this interfacing
scheme write an embedded 'C' program to dipslay passing year.
2. Write an embedded 'C' program that updates and displays
real-time second and minute on 4-digit common cathode seven
segment display
26 April 2021
9.
LCD Display Draw an Interfacing scheme to interface 20x2 LCD
display with 8051.
1. Write an embedded 'c' program that displays "-- Welcome To--
"in line-1 and "--SCET, SURAT--" in line-2 of LCD display.
2. Write an embedded ‘c’ program that updates and displays
Real-Time Clock data on LCD.
26 April 2021
10. Serial Communication 26 April 2021
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16. INTRODUCTION TO
KEIL VISION IDE AND
OTHERS
NAME : Gajjar Parth Sunilkumar
Enrollment : 180420109009
Submitted To :
1. Dr. Nilesh Shah
2. Prof. Dimple Bhanabhagwanwala
Date Of Submission : 27th
February, 2021
17. MPMC 180420109009
INTRODUCTION TO KEIL VISION IDE AND OTHERS
AIM :
Introduction to KEIL μVISION4 IDE, assembler, compiler, linker, simulator,
debuggerand assembler directives. Study of software development cycle using KEIL
IDE.
INTRODUCTION TO KEIL μVISION4 IDE :
− The Keil C51 development tools offer numerous features and advantages that
help you to develop embedded applications quickly and successfully. Find out
more about the supported devices and the possible tool combinations available
for the different 8051 variants.
− The following block diagram shows the components involved in the build process.
18. MPMC 180420109009
INTRODUCTION TO KEIL VISION IDE AND OTHERS
µVISION INTEGRATED DEVELOPMENT ENVIRONMENT (IDE) :
− The µVision4 IDE is a window-based software development tool that combines
project management and a rich-featured editor with interactive error
correction, option setup, make facility, and on-line help.
− Use µVision4 to create source files and organize them into a project that
defines your target application.
C COMPILER : The Keil Cx51 Compiler is a full ANSI implementation of the C
programming language and supports all standard features of the C language. In
addition, numerous extensions have been included to directly support the 8051
and extended 8051 architecture.
MACRO ASSEMBLER : The Keil Ax51 Macro Assembler supports the
complete instruction set of the 8051 and all 8051 derivatives.
LIBRARY MANAGER : The LIBx51 Library Manager allows you to create the
object library from object files created bythe compiler and assembler. Libraries
are specially formatted, ordered program collections of object modules that may
be used by the linker at a later time. When the linker processes a library, only
those object modules necessary to create the program are used.
LINKER/LOCATER : The Lx51 Linker/Locater creates the final executable
8051 program and combines the object files created by the compiler or
assembler, resolves external and public references, and assigns absolute
addresses. In addition, it selects and includes the appropriate run-time library
modules.
19. MPMC 180420109009
INTRODUCTION TO KEIL VISION IDE AND OTHERS
µVISION4 DEBUGGER :
The µVision4 Debugger is ideally suited for fast and reliable program debugging.
The debugger includes a high-speed simulator capable of simulating an entire
8051 system including on-chip peripherals and external hardware.
The µVision4 Debugger provides several ways to test programs on target
hardware:
− Use the Keil ULINK USB-JTAG adapter for downloading and testing your
program.
− Install a target monitor on your target system and download your program
using the built-in monitor interface of the µVision Debugger.
− Use the Advanced GDI interface to attach and use the µVision4 Debugger
front end with your target system.
RTOS KERNEL :
The RTOS Kernel, describes the advantages of using a real-time kernel like the Keil
RTX51 Tiny in embedded systems.
20. MPMC 180420109009
INTRODUCTION TO KEIL VISION IDE AND OTHERS
STEPS FOR SOFTWARE DEVELOPMENT USING KEIL
µVERSION4 IDE
Step-1 : Open keil µversion4 IDE :
Open keil µversion4 IDE, the window screen look like as shown below.
21. MPMC 180420109009
INTRODUCTION TO KEIL VISION IDE AND OTHERS
Step:-2 : create new project, save project and select device :
Select an empty folder and enter the project name, for example Project. The
fileextension is *.UVPROJ for MDK version 4, or .UVPROJX for later versions.
22. MPMC 180420109009
INTRODUCTION TO KEIL VISION IDE AND OTHERS
Select device for a project [NXP (founded by Philips) in select Device Dialog box]
Then select P89V51RD2 microcontroller from device database for NXP
Semiconductor.
23. MPMC 180420109009
INTRODUCTION TO KEIL VISION IDE AND OTHERS
Step-3 : Configure project, set frequency, enable hex file
generation, specify memory blocks :
Select options for target by right click on Target and set frequency.
Select output options for target and tick on Create option for generating Hex file
during Buildproject.
24. MPMC 180420109009
INTRODUCTION TO KEIL VISION IDE AND OTHERS
Step-4 : Develop Source file by opening editor and save it with
.A51 or .C
Using the menu or toolbar, Create a source file with the menu File - New. This
opens anempty file in the editor window.
Write any Program using editor and save the file (menu File - Save As) to
make useof the syntax coloring feature.
25. MPMC 180420109009
INTRODUCTION TO KEIL VISION IDE AND OTHERS
Step-5 : Add source file to source group.
You can add files in several ways to a project. The most common way is to click on a
Source group in the window Project and use the context menu Add New Item to
Group
or Add Existing Files to Group.
By clicking ADD button the file will be added in group in the project.
26. MPMC 180420109009
INTRODUCTION TO KEIL VISION IDE AND OTHERS
Step-6: Build the target by clicking on Project menu and then
Build Target option.
The Build Output window displays errors, warnings, and build messages during
the build process. Double-click a message to open the corresponding source file for
correction and again build target until there is zero error and no warning.
27. MPMC 180420109009
INTRODUCTION TO KEIL VISION IDE AND OTHERS
Step-7 : Start debugger for verification of program logic
Debugging of program starts with clicking on the start debug session step
by step. itcan be stop bye same button.
After click on the start debug button, debugger window look like as shown below.
28. MPMC 180420109009
INTRODUCTION TO KEIL VISION IDE AND OTHERS
ASSEMBLER DIRECTIVES
EQU directive
− The EQU directive is used to replace a number by a symbol.
− Syntax:Name EQU Constant
− For example:
MAXIMUM EQU 99 After using this directive, every appearance of the label
“MAXIMUM” inthe program will be interpreted by the assembler as the
number 99 (MAXIMUM = 99). Symbols may be defined this way only once
in the program. The EQU directive is mostly used at the beginning of the
program therefore.
SET directive
− The SET directive is also used to replace a number by a symbol. The
significant difference compared to the EQU directive is that the SET
directive can be used an unlimited number oftimes:
− SPEED SET 45SPEED SET 46SPEED SET 57
BIT directive
− The BIT directive is used to replace a bit address by a symbol. The bit
address must be in therange of 0 to 255 (00 H to FF H).
− Syntax: Name BIT 8051 bit
− For example:
TRANSMIT BIT PSW.7; Transmit bit (the seventh bit in PSW register); is
assigned the name “TRANSMIT”OUTPUT BIT 6 ;Bit at address 06 is assigned
the name “OUTPUT”RELAY BIT81 ;Bit at address 81 (Port 0)is assigned the
name ;”RELAY”
CODE directive
− The CODE directive is used to assign a symbol to a program memory
address. Since the maximum capacity of program memory is 64K, the
address must be in the range of 0 to65535(0000 H to FFFF H).
− Syntax: Name CODE code address
− For example:
RESET CODE 0 ;Memory location 00h called “RESET”TABLE CODE
1024;Memorylocation 1024h called “TABLE”
29. MPMC 180420109009
INTRODUCTION TO KEIL VISION IDE AND OTHERS
DATA directive
− The DATA directive is used to assign a symbol to an address within internal
RAM and SFR. The address must be in the range of 0 to 255 (00 H to FF H).
It is possible to change or assign anew name to any register.
− Syntax: Name DATA data address
− For example:
TEMP12 DATA 32 ;Register at address 32 is named ;as “TEMP12”STATUS_R
DATA D0h ;PSW register is assigned the name ;”STATUS_R”
IDATA directive
− The IDATA directive is used to change or assign a new name to an
indirectly addressedregister. It is an address of entire internal RAM.
− Syntax: Name IDATA idata address
− For example:
TEMP22 IDATA 32 ;Register whose address is in register ;at address
32 is named as “TEMP22”TEMP33 IDATA T_ADR ;Register whose
address is in ;register T_ADR is named as “TEMP33”
XDATA directive
− The XDATA directive is used to assign a name to registers within external
(additional) RAMmemory. The addresses of these registers cannot be
larger than 65535 (0000 h to FFFF H).
− Syntax: Name XDATA xdata address
− For example:
TABLE_1 XDATA 2048 ;Register stored in external; memory at address
2048 is named; as“TABLE_1”
ORG directive: Origin
− The ORG directive is used to specify a location in program memory
where the programfollowing directive is to be placed.
− Syntax: ORG address
− Address can be given in either in hex or decimal.
− For example:
BEGINNING ORG 100 ... ...ORG 1000hTABLE .......... This program starts
at location 100. The table containing data is to be stored at location 1024 (1000h).
30. MPMC 180420109009
INTRODUCTION TO KEIL VISION IDE AND OTHERS
USING directive
− The USING directive is used to define which register bank (registers R0-R7)
is to be used in theprogram.
− Syntax: USING Bank no.
− USING 0 ;Bank 0 is used (registers R0-R7 at RAM-addresses 0-7)USING 1
;Bank 1 is used (registers R0-R7 at RAM-addresses 8-15)USING 2 ,Bank 2
is used (registers R0-R7 at RAM-addresses 16-23)USING 3 ;Bank 3 is used
(registers R0-R7 at RAM-addresses 24-31)
END directive: End of program
− The END directive is used at the end of every program. The assembler will
stop compilingoncethe program encounters this directive.
− Syntax: END
− For example:
END ;End of program
DB directive
− The DB directive is used for writing specified value into program memory. If
several values are specified, then they are separated by a comma. If ASCII
array is specified, it should be enclosedwithin single quotation marks.
− For example: CSEG DB 22,33,’Alarm’,44 If this directive is preceded by a
label, then the labelwill point to the first element of the array. It is the number
22 in this example.
31. kactieal -3
Block diagsa daa dsansen
6 Jodena inkemal samo
i xeama am eam
iCode od
Kevexse block da
anser Lh
visioN
32. Initialze Sousco pointe Cao H) Ro
initial ze denstioatfon poinHe CuO H) RL
oRalize Counte C10) D
Get Souace.Data
COPY Sou veo dato to denghnatio o
O CTenmen Souace &dengtination pointea by
deCoement Counter by
rer
ts NO
COunte
YES
End
33. RHe An Bo51 pnaam to aanse o sel en 8bik
OunobeK gtoxeo inlenal_RAM 20 H to intemal
RAM
CSEG AT OC00H
MOV RO, F30H ninialfze 0urco poiote to SouneD dorta
ininteanal RAM ah 30 H
MOV R 0H iaithalize denstoahin painte iomal
RAM at 0 H
MOV R, 0 iniha lize CouoUL 10.
MOV A, Ko Get doto oum ioema RAM DOÍOed
b y
Sou&c poine
MOV @R A_ Store dota nm intem.al RAM o
poinHed denshinoton poioHe
INC Ro
INC R
DINZ Ra, Chec Cauole 0elgeump h
focreroeaot Souepointe
desbinohon paioHek
HERE STMP HERE
END
Result
le
D:OX 30 29 66 88 6 34 63 55 48
olp - 2 G 8 16 34 63 s5 48
D: ox40 14
visioN
34. tave t
inttialize
ioitHouze
Sousce. pointe i000 H) DPTR
deshioation pointere CHO H R
nialze counHer=10 CioDO OM
qet Souace ata
CoP Souoce data O dlensth'n aho
increment Sousce denshinahon poiote by
decrement couoter b 1
NO
COunte
= O2
YES
End
35. 2. COuite assembly4 levelmquaqe pDaaam t 1aosek LO bi
dota aNalable exkmal RAM mm ooo)H
Stouhing
iotmal RAM. m(40) H
CSEG AT Oado H
MOV DPTR,E100OH iaitialize 90ur painiet hspuree
dota in exemal RAM_1000H
MOV K,E 40H inithtaize deshnohon Pointe n Soum
data io iotema RAM c uOH
MOV Ra, 10 1oihalze counter 10
MoVX A,DPTR Get data.Jro extexnalL RAM
paotedDuSougCo pointer
MONCOR, A Stooe data in tenal RAn1
Doioteo by desinotion Pointek
INC DPTR
R
oeaement_ Souree pOinteu
NC inCveament deshhoanon nte
DINZ Re, d checK Counte =o else
ump
wai
HERE STMP HERE
EN D
|esalt
Memay
OX
OXIoooLaddress1
8 6 2 31 6 o5
X O
X00lO00 O 23
Memc 2 D 0x4o addess
D0740 1O 23 31 4 58 6 12 81 O5
Memcr 05
visioN
36. Date
PageNo.
3. CONite Assembu level lanquaqepDgaam do oan.ser
Staadiog m
en- 9 bik data alailab le.
C10002H
0 co.de 2emoy
iotema RAMoDm CAo H
CSEG AT O000 H
MOV DPTR,# 1oooHinhalize Souar paioteg
MOV Ri HoH inialize destioahion poioteg
MoN R3, 600 initialize CowoHer 10
Li CLR A cea A bepre etarhoa oew
MovC. A,@A+DPIR Get dato om Saurce poio-esc n
CCCuoulat
MOV (O Ri A Get doda mm accuoularhr to deshiocdhan
1NC DPTR
INC R1
10co emen SouC Doioler_
1oCeoeot deshoohon poi0ter
DTNZ R3,L1 ehek Couoea 0 else ump hb_
LL
HERE 6JMP HERE
ND
Kesut
Meooy 1 7 C: Oxlbo0 Loddvess
Cox1000 03 22 33 4t 5566 17 88 99a
olp
Memosy-2 D 0x4o address]
D:ox4o 03 22 33 44 55 6614 8 99
A Quality Product by
unges
Your Lucky Brand Teacher'sSignature
37. Date
PageNo.
CWuite aggembly leveL anguage poDganm Bo5L poncessox
leveL
acnske 3-hi data Qvhilablo- inte2rpal RA atatinqoDm
0 H11 39H n S ame loCatino but in i0Veaseaeyerse code
AT 0000H
MOV R0, E 30H fnitialize 90utce poio1e
MOV RL#39H inihio ize desto
oahoopoioer
MOV R3 inihai z COuote =5
L MOV A,RO latching data m.m Souere p0iner dn alcumulator
KCH A,R4 inerehongiog doto cSauaca uith desho ahon
locohon ayailablo data
MOv ( RO , H oching desito hion locethon3 doa laila ble
in acuoulato Souc locahioo
INC RO ce0 ent SoubO locoion
DEC R1
DJNZ R3,Li check COunHea
decne ment dehioahionOcotho0
= 0 e se ump
do abLe L
HERE STMP HERE Oait
END
KesuH2
D:OK30 O4 22 33 u s5 66 99
olp
:0K 30 79 6G 5S G 33 22
AQultyProductby
Gnges
Your Lucky Brand
Teacher's Signature
38. Date
PageNo.
Weile a9senb anquaqe pmoan 3051 200Ce9Saa t
so ner 8-bit Tam data auailablo in io-fema RAM staahoq-
Om 30 H to i0-emal RAMStrahoq Dm35 H_Ovealapp.ing9-
exishog Data
CSEGAL OoO0H
MOV RO 89Hinitialize 30uepniotear aih 0cohon o data sek
MOV RL, 3EH Sinihalizo. desthootion pnioker ithlucatio.n zanse
MOV R3, 0 inihlalu2o ounte
Li MOV A RO got data Dm Souacapainterdn alcumalatmy
Mov (o RL,A 20tch dota nm_ocCuroulatosh deshnahon
DEC KRO decoenment Souc poine
DEC R de ce roentdeshoohon 0oiatex
DTNZ R3, 21 eheck Couoler = elseump
to Lable Li.
HERE STM HERE waik
END
Kesult
DOx30 05 11 22 33
D0X35 55 66
o o3A
D O 3 F Oo
D:O 30 O5 22 33
D:Ox35 65 22 33
DOx3A 55 GC 74 88
AQUalily Productby
GUnger DOK3F 0o
Teacher's Signature
Your LuckY E5rand
39. Q
ITH a
A3 H
de. •
CSEG AT 0C)c)O K
• MO)
a
o ".I.." l,
e f<il 'llQL[z.e_. WM Cot.to~'lr =- o
#- o C) • rnrh·alrze. w coun+-e?t :: o
0
cl- oo+ct, t1Dm Sou'lr"U
Li • chec.K. 'tf e.nol d.o+a..
lf:fl r
lvisk,NI
40. i Ce-1 do-lo. {7-o.,, :n-1,~ ---.
fbin-k...dv bcJ ~ulnP ~•o-k~
- .
'h
<Da.fo. z: =
"'- FFH 2
"'- ~
Ves louipuJ; 7 -~
--4,e_su.J/;- r~
tvO
-
¼/M C'ou()~ 'a' ......
,
::: ++ :L
L
'
~ Coun..e~ '-
,.
::: -+-+ i i
rJo 1
V--- ---
j
1
:L ]
41. I 1
0
-
C:rNt A.. # OA3 11 , L2.
.. c.h ecJ< tp'lf" WM.. c.oc:l e.
.,
,)c... R-~ • : () C.."ae.M er, b WM ~vn+ey
'
_
C,:J~? L3 " c..hec.K &"!( (~t do¼
,
L2. :
; ch€..LJ<. 'hn<" TV eoa,a_
L3 :
INC.. ~~
.
, ?n c.'"If e n;,er? l::- E3o u-n.t.- po lo ,k ¥
; d?sp')Otl WM Cou()l:- on A,-.t -o
MOJ 4<., RL<
WAlT ~
-------tt--------------------------------'
-------tt--------------------------------'
-----;::===::-tr-----------------------------_.;-'
lviiio•I
42. I
f<ea .. L 0
• 0
f/o •
e.
I I
.,.
rn:~ x. 3o : Ag DO ~b 9C Do A3 OC) 00 "O CfC. eo 83 ~ A3
I"); OX4t>
. C)Q A3 93 oo (!)O
. oc 9C oo P.3 B3 12.a 00 Oo JW n
): 0 X.EO : A3 co ~ a ~6 (33 60 PS oo 06 0 (J /3'-3 00 ~3 00
• 0/o ~
I I
~ p"'~'= - (' 1- .. '
13 1--.;. 0
pc; : 0 '> 0~ a ✓- . "'
~
P,ns ! (fi ')(' (l' '6 ~ " 0 a ✓ d
' •
,,.;:p ?c:rr;:: - 1 '::- .. o--S - , (:)
P-1 0
0 e) X: ('J {; ... . . ✓✓ ~
P,<)4. 0
~ 1<: b 6 I ✓✓
. . . .. " .
•
tvislor,J
44. in:+:alize Sou~ po;o~~ -to
coole. ""f't'OCfG':/ == ".DPT'R
l
' ) L' , ..
,n,TJQ 12€; Vo weL cou()./e 'a" : 0
']et do-b.. guf'( {!_()de. ro~"°oti'j
~10-ecl qj s~u~ poin-le'iY
tJo
(
45. :
.
ee'. L'.3 •
/9 • C1NE A. ff .., c'oe.c...K ~
., e,,
..
.
~'.TMP 6-<.H> •
'k> +o ne,cl-:- do-fa
I y
' J
11
I
II
13
.,
CJN£. A "':f t1,", 'llt
.,
Dheel<- ~
e o'
,
' -t
I
,_,
'
~:11"'1 p 6¥-'?
.. to Ob<.t" c::ilo-h::t
1 ao
I u
I
I•
!;
i:f t:c' _ LS • Ch~<.
19 • C:IN E A ., ~~ r O,
C
, -
P-.TM P c::v,P
,
afl -to (1p')(.f- Jo+-a
' ,.J
....
us ·. CJtJF A_ #- E."-4>_ 1 r: 0
chee1, i:.oz( f -LI'
" -
-~Kr ~
Mal A.. 9<S
A"D'D A.~ • ~n c.:6 eN?eot vowe.l Ctlun t
~
<f)A A • kclM)~L oA :I..LG ':
' .._;
MOJ ~5, A
I~ " t tJr TI?TR
0
to A - ---✓- 0 f)¼-:
0
, gou?a• ru,,.,n.lP'lt
I
- 61~? ACRlrJ
11?~M()AT~ :
MO/ PO • tf<5 • d ,a.("'o.u Co tAf')C:- ~...:b - 0 ,
, {')(")
I
'1
WA1':
~TMO l.)AIT
E l'1 :Q_
lvlsloif)
I"""'"
51. &taijt
:n,-Ha llze.. SouPJCJ!- poin-/t'?r - t ~ Ro ( conl<-0)
1
~i'+iollu tve.- nvro. pao.fe-;,- - fJ. ~ R. (b,Mt<-,)
,°n; 'a lt.z.e -Ve. nurn . Oin-le i,- - 3 ~ Ro (ban><-' )
//n?+fo /;u.., Coun-k'ff: 10 /
J,
no
!5-ttRre- -Ne. ~d:oa
?n lo~+ioo ~clQ_J
~ "N~ po,o+e'b'" - 2
S1't>1re. --ve, -Head.i'n'd
fn )oea--H·an ~v?d.a..of..
~ ~ 0,0~'5" -3
[ ,•nc?Serneot: 9oucfC.fl- po?o-le-r
J
L dee creme.ob c.a un -/ey
t
Co
52. NEGATIVE :
RRr A ; )-(o-ro.fe._ bi'.-<;
{' ,
A fhrroua h. , ' +n ..adC1hr
MtJJ (o) Q - A ~ ,'?I do+a +o -Je.. ~u de A~_, p un .,_ •
ffl l ~ -~ 1"1-( 1 ,1 l'l.: ,£"
- - 1
~r Q
,
~ (" (!'Xt'f'(),0()~ -ve.. de.s+?oa-4,'>nn t"V fy,,+e'l(
91
- '
_q<P :
r'l..9. Ran • de.a,e.ec.,; J'llJ__Q ~Sie'2J' bani-< - J
.,
V
1rJr f<l1)
. (,)
-i " n~~el"()e()~ SOU'ir/'b r>l'l .,n-k!f)('
I
• r:r,rJz. f<3 , FG AIN
WfT
Pi,M'() 'W{)1"
~N~
'KP~I ~
,Cl
e ...
~ ) (") : - " -,Lt -5 -~8
- l1 } ,, t)
r:>:+ 25 33 F2 5b f7R jJC)
1): t)')( qD 0 f~ ~, /9
(if) If) !
I I /
T): C);(~O
0
0-=f Q5 33 se 41 1q
t)
'T'i ~ (') X -
~O
~
F5 r2 f'8 fJD
.,
-
- -14 -5 -4 g
lvisloNl
53. 1JacAi
Date:
Page No.:
Of
Q "-
o-
( AS - J. )
CJoe.
ti
f
CSECt A1 C) e)O H
i EX 2. AS e.. l 0
0
#"OAH Li.
L • /._2_
A #O~H
L -:f3QH
cs~c Ai. 000 H
MA
a,
MO) gp #SCH •
•
MOl A "J 30 H
NL A #" or H
AC.-ALL HE~ 2. Ase..,t f
"oe
t'-1 ()) 4oH A •
'
Mov A H
L----~~----
AN L A , ~ Oto H
! . - - - - - - 1 - - - - - - -
SWA~ ~ A
'-----
Teacher's Signature_ _ _ _ _ _ _ _--!
55. Date : I I
Page No.:
Aa.c.u HE?<2AP,f ~ c.al Su.b"'><"l"lu-h°n,.,,
MCl L..t1 H - A ! ,:,J.-.....,., A!=!.C.1 h~o h .o ,r -t •o~.-
/
CJ 0
.lA'T 0
S"JM? WArT
0
.::ND
r-- .. 1-<e.a.w.'c ,.
'"
d D :.
l ,
'I) ~ CJ X2,o 0
9F
•
0 ID :
I I
m: C)')(:.lto " i{6 -'?-b .---:,, Ase..u va'lc,.e
<
L '1s ' Lt
ASa..t.1 Vq'kt
01-, ll F IJ
~
I
A
.,,.,.,,ryl~
~ '
Y
our Lucky Btend Teacher's Signature
56. Date: I
Page No.:
'l-1frn ! WJ.ti'-1e.
(j_ U ,J I 0
<"ll-1m r.e~ o/nila bl e.. YJ 1f'l4e?rnn RA-IVL l"l,- ?.I' 1-1
~f 0~ o- /.i(') H •
~r-----1---- - - -- - - -- - - - - -- --------1
CSEQ AT 0000 H.
MD1 A. 30 H
0
" get A'lr11 J(l1 ,12.
/
V
r .'TN E. A.,-=:flH .. Li. • ('r, fY1 n,-, '°" ,/u._ ro D ,O.. oo).. (2,., 01 '
""
Q(),,..J
u V l-
L1- 0
'j C. L2. .. a.. }.-aQ r~ qpl-
" "I C!.aJrJ,<-4
u <J .l <I
5VB6 A.., *01 H • . ~~ O"l ,,
, ~I I I
L2. ~ C..LR.. C..
0
Ru h-h(acl:- '' 30 ''
MOf PO .. A
IJ
8:tM? WAYT
A UUBJlty Product
~-
Your Lucky Brand Teacher's Signature-__________
57. [
I
LS+aci'tj
r
~et- ASCI. v o Lue.
1
Sub--hroc~ o'=t H
9
~ Su.b-cfa c~ 'cc:> H l
t
t 5 -foaC... f-( f;_)( Volt., e
dtsp?ay Rec. vo1u.e.- 0-0 Po'61- -o
1
~
7
58. •
-.
Cl
0
X 40 . !
C
•
I
1) 0
01 0 Lt
0
0 •
:D
. (!) y_:Lt
'
~
• Wki'-k
fY).
•
9-b{;
1.t2 H
Co~~ •
•
MOl 6
AB
J L-10 H
Date:
Page No.:
Qfu 05
Me~
uiJcdeot
Rf~ ol: '-10 H CBen 2
(Be_'D :!.
ODeS
30i
'
1
·1-LhJ II
Teacher's Signature__________
59. 8to?S t
r
dt v~ de... a Ccc,roulo-fu¥ w:th 10 /
9to7ft, .s;em,n de Y ?fe..511 f- ,>n
lf.Q H-. 1oeo -¼)-on
60. Date: I I
Page No.:
fYf)) A~ ~ • Cle!:- 9-l(l' ...... J.r, --'t>'A' d)_
, O"'iiev:',..,, •S dvr~.~t1C :,...-+n
~ V
...,
a.er ·- ,' -.l-..- .
MOV B.i='10
f)j AB
o , d3 1 ,
, ,"' s,an
Ml"'l'l '-t2. H, 6
0
., 8en:)'be. "ones " r-.AO.t~,,~ A~.. l .
I V
M oJ L< I I-{ .. A •
" 5--'01r€.,
e~ 'TE tJS ,,
()r ~t-+fo () a.:~n:
, I J
11. IA·"'' •
0
~
5:SMP wAT
I=N1)
0 Q1-'.Q.1 l.- •
,,
f /p:.
I
.,
'D ~ 07<,'.?.f"'l 0
f=F
Q
o lo :..
I I /
D~ o ttio
0
02 05 Olt
I>
~
,,
11
,,
:1
Ao.iAy,:;r
(!;'
Teacher's Signature
~ Yourf..ud<y&ond
61. -,,
Date: I I
Page No.:
'f). ~ ~im • (J)X I,-le., (i(l 11 t)('.) o.v1 h111 tone111n,.. 0. n·xr-1 O~n t'Y' ,f'h,.., I-
• d (.} J
, 0-
n,,,...:lr.J-..1o
.
·- ca- - h, 1- 9; ?e. P,f"T) nvrr,hPi'r' ,,,....
r J
?n+hrnat RA-Ni ol.,.. ~f) H_ Cecro 3) "" 3J K (13 CD a) -
/
?JQ )-- lf?if1) i l ;'n--1-1 1?_.f- (?a,,'.,i,, /p,,., I- H£.X 0,(1-' q--h--x-i:i<l
/,,
val11P
p
{(tJ.... ; -., I QANl, al:- !., () 1-1 •
KEX RJ)
CcXDF e
- A II
;-
-
I
C'9EG A1 CCOOH
MOJ A., 3e H
e
Sf12.-: '
1
HON'' Bt-<D d,"a?~
I
V 'CJ
M01 B~ W'We)
,
.
'">
MJL A6 ~ {'{)uJ.+fn 1u
A
' a
MO) 'R j_ 9 > ~ Jie.su.lt /() 4€,l'Y) 0. rz5eg/s,k2r .
V
MOJ A~ 'o 1-l
~
qe..b ti -kos IJ
Be.CD deqJt
' D '-'
- Mfrl 6 .,. :tt: I·(')
·
::-. A~
#
('() LU1"Jolu
MJL -'
V
ATJDC A"l R1 " o.dci(-Hoo dJ. N'lIll.{'ol.u .91tsJ.lt vei°th
~ ~'l/ t/)•~ .t,LSc.ff
V V 1
A1>nc, A~ 32H
/J
' a.cc,,kto0 ~11 "ones 11
8C..'!) digir- c.01-t+-t Sum o'. p~v;.,.,.,.,
V
" V
'-tt> H" A
,,
MD J
' 61m-e. H I::?< VoU-4 e,.. c1l;- 40 H.
r11AT ~
6~M9 r<lA1
E)'i)
A
(:,~
Teacher's Signature
Yoorl.JJcky8tan<I
...
63. ,
l
Date: I I
Page No.:
- ft{P Cll l+.- •
"
f / D •
..
I I .,.
'T)~ ri -x: ~ (') ~
02.. C3 09
#'
.I"' J() 16
•
I f ✓
ff) : 0 -xlt 0 • ~r
0
,-
5~5 Pnrn • ~JJJ{ (ff., 098ernbL, lano1,rro p n?rtJa 'Xnrv"I. to o .... 'I..
• Q.(1,
n • l
d (J ✓ I 0
-, l}
:l-r.1 ln ,<n"' rn,11..L.."h,,..J..p rit?f'}<Y1n L adJ,-h'o1'
D a <.J
g956<l=7:J9 +- q 05 5 r, =t c, S ;:
CC)DE •
• e
rPii=c A, (')000 -1
MOJ R: .. it= e:>~ · •• "-h' ,. coun-4-e'lr -=- -4
- .. 1n, Q I z._e_
~
= Mtl'il Ro .. :¼½:- SaH - fn:-4,"Qlize... fVI io+etJ" l-,..,.,,. ('l(.H'tL~""' - ,r
' 50ulS<e.
. ~
MOJ R1. ~ -:f: 40 H ; i'"74-i'o1:-.... "-Ou_,, a 1-.- nc.,fY)i.....,...,. - ':!
I
-
~E,R R:3D : 5e,:;,,,_I- no:>a ?,,.La,"
~a.nK 1
u
MD'l RO f) :f50 H •. fn(-h"q V,o d ~-1-i'n" -h'o n Ml lf'l+e~ ~ O(').::t,.,.,,,..,..
7
I ~
C...LR ~SC) • d.e-5e.lec't- <oea(~r,y
~"'~ - 1
.. u
L1.: t'I(")] A.. (o) Rf" ; 11..o+rh. 2.. dio f+'3 of}... '1uN">be~ - l.
'-'
"
....,
F1)'0C., A .. (a:) <:. • c_cl_-U.... - .2. d.(~ ?+~ oi.. ()u.rnh•,.. - f)
~
(;! I.J
"""
DA A • ,.l.,., ?,-..,..,.. '. ,.,_f?,~o4- Cl'l...
"" O()<l u-ioy
-,I ...
I
AQUIJ/ity,~
~- Teacher's Signature
Yourl.,JckyBmnd
64. ~
/h/Hql"ze.. ..Sou~ po;n-leb"" ~ oumbe-r :L = Ro (booK-o)
ir, 1+-lQ L•2e,,, sou~ poio4t'~ e>11 f>vm btZ) - .2, ::: R1- lbal) K- 0 )
,, 00 II
,,,,,f-H'al/z_e.. Co 1
.m-,..er f?3 = Lt CbonK - o)
- ·i-
I J_L l
In I nq •z_e. des,ttna+i"o<) po/ o-k"r'
Q
~ do.-+o... ~('( (O..e'lroct.. ~~'
)oio4ecl 0d Sol.lerc.a... poin-te.'lr
Q.cd,~O< t~;+(.. ~ J ci ON'umv.lo-foy
w,-tt... 2,"cl nv<Y>be~ ,o o+n-oo.L QfM-
'5--ft, 'lJe.- answe~ 1() des-hoo-hon pui""~" foe. l
1
ioctJl"~enb- des-b't1crlicm ()Q''lt,y
Jc
[:nc.oe"'?eot" _Sou&a- Po,,.,+eir i ~ gp - 2.
J✓
I itlC0"l."rOe11b- covn-k'll" b¥ 1.. ~
i
/(),
A}(J
:,~ II () 1 II
1
, f/
Jps.fina1'1011 po,11t-,,;y d,.~+t~f"c:l~'on po,'~'r"
)
') 4:
r
65. •
Date : I
Page No. :
Roo • 6e1ec.k is~~ book' - 1
~
Ro A •
3-tv-ire.... an
Ro ; "Cbl"Menl;- d<?s+ioo..f.,·
dese.l e bank'-
5ETB RS See.d:
• •
5G
55 90
D ~ o x so ~ i 3 65 IQ._ §-0 o .1..
A
Teacher's Signature__________
66. Date
dachicaL -6 Page No. :
6.1 Aim Wxite assemhly lanquag.e pongam fo incneme
a COuoHe Sutrh aod s poesseol
deCoeMeot a Couoe i Soitch 32 3 poessCol
CukpukEthe Coun tex Value a POE1
CODE
CSEG AT O000H
MOV R3,HOoH
Mov P2,# OFF H Coaquze
ioitiade Couptea
povt2Os p
REP
J3 P2.2, LL ump SL s 0ot _pvessedd
NC R3
PLR3 display 0n 0nt
Mov
LLJB P2.1,L2 np S2 is ot paessed
DEC R3
Mov P1, R3 dspo 00po
L2 STMP REP
END
AQualiltyProductby
Ginger
Your Lucky Brand Teacher's Signature
67. Stort
inithaG2e COune =
Cookguoe P2 = 1 pr S2
P2.2 r SL 0s p Pios
YES incoearoent
Coun ter
PTesse d
NO
YES Decse ment
82 1s
COun ter
Presse
NO
isplay the Count on Pot-
68. Date
PageNo.
Kesut
p Pont2
P2 OXFB VVVVV V V
bifs
RosioxFB
agt 3 yules i/p
bi
Poat V _ V
PL OA03
PiosOK03
bits O
Poat2
P2 0xFO V
RosOxFO ,
bits O
Pan
PL0K02 V
Pns Ko2
AQuelily Productby
Ginges Teacher's Signature.
Your Lucky Brand
69. Date
Page No. :
6.2 Alm COxte an assemblylangtiag.e 0DQAam
&
display95 H_i Switc h S1 s pesseo
display
displayOAA H
EShowlo be clisploel On Paxt-1
SOite h S2 S 00esseol
CODE
CSEG AT 0000 H
MOV P2,FOFFH Conhauxe paut90s inpu
REP
JB P2.1 LL ump S1 snot Poesse
Moy P 55H displa
55
55H in olp Pot-1
Li JB P2.2 Aump i 2 hs not pressed
MOV PL, OAAH lo disploy oAA H a_auhout
Poat-
L9 sTMP REP
END
A Quality Product by
Gnger
Your Lucky Brand Teacher's Signature
70. Stoat
Co0gube. P2.1 os SI Onod
toA P2.2 hvr S2 os ilP Piog
yES
disploy 55H
S1 is
at Poot1
Pres3 ed
NO
displayAAH
ex Pout-1/
S2 is YES
Poessed
71. Date
Page No.
Kesutt
2tp
Poat-2 ,bits bits. 0
P2: oxFD VVVVVV V
RosoKFD V/ / S .
elp
Poxt- 11 bts
PL 0K35
,. .
Pios 55
Poat- 9 bits
P2 Ox FB
PosoxFB V
Poo 1L bit S
PLOx
AA V. v,
Hos O AOAA VV, Vv
AQUalityProductby
Gngers Teacher's Signature
Your Lucky Brand
72. Date
PageNo.
oac-hicaL -
1Aim Wmte assemblypoDgaanm that genexaies gae pulge
0 KHZ aequeocuLh50 L Duty o4cle oo
Pi.o pio o 3051uSing hmer o mado.1
Hssume osellatox se . 0592 MHz,
eCoDE
SQW EQU PL.0
CSEG AT O000 H
CLR SW S0w = O
MOV TMOD,#OI 3 Cookjguxe himeo-o io mode -L
MON TLO,33 lood inihial_cauc
MOV THO EEH Shghes bts o nitial cost
SETB TRO Stoat timer
tOAITTBC TFO,NEXT cheak o imer oveou
TMP WALIT
NEXT MOV TLO,t33HSReloadioial Count
MOV THo,#E OFEH
CPL SQW (onplero ent p1.o bik
STMP cOAIT
END
'hesut
(uasor-1 25.45192 Sec
Cussoo 2 25. 4S 293 Secel
lioe peiee 1 oee
Cinge 1KH2 uene Teacher'sSignature
73. (Stost
Cleav Poot-1 bit o
ConBgu ime - 0 in modle L
oihal Coun o TLO THO /
Stas hme O
No
TFO 1
YES
Kelo ao oithaL C0unb+0 TOdTHo
tog9 le bit Plo
75. Date
Page No.
T.2 A Wefe_gssembly a09aam fhat qenera-tee gake pulse6 0
KHz equeo.cu oth50 Duty Cyale oo PL0pio
B051 uSing limer 0 mado- 2
Asume 0ellator e l05 12 MKz
CODE
SQW EQU Pi.0
CSEG AT O000 H
CLR
MOV MOD 02 3 Coogqupe dimea o io mode-2
Mov TLO# LAH l0ad 8-bit 10HaL couot
MOV THO, LAH
MOV R3,#O0 User couoter
SE T3TRO Stast oe&
COAIT TBC TFO, NEXT check or mea oveou
STMP WAIT
NEXT 2 INC R3 í9Cvemeob C0uoter
Uses
CINE R3,#02 WAIT CheuK os hwp fones Oveou
MOy K3, E O0H Heset Ounteg
CPL SQD
SIMpALT
10ggle the pulse
END
Quality Productby
Ginger
Your Lucky EBrand Teacher's Signature
76. (Staat
Clea Poat bit-o
Coo 9ube timer O io mode -2
nih'hze ovelow co unter = o
Looo hha L Count h TIO d THol
tos himer O
/
NO
TFO =iy
yES
incoement oveow Cuntex
COunlea = 2
yES
Reset Couokr to o
go99 99 le he Pot bib PL.o
77. Date
PageNo.
Kesult 2
LuasoxL 13.13363 Sec
Cunsor 2 13.13463 Sec
Clime pemoc LCuoLe
O. O| Sec
LmSe c
1KHz eguen.Cu
AQualityProductby
gen
Your LuckyBrand Teacher's Signature.
79. Date
Page No.
13 Aim Wole asSembly2o09aam tha updaies and displat
tme Secono Oo Pot0 8051 Usino
Himed O20 m0de L
Assuma 0SCillatx
e .012 MHZ
CoDE
TOLSB EQD OFDH
TOMSB EQO BH
CSFG AT OOO0H_
R3, oH Counes=00
MOV R o0H
MOV
Sec O0
MOV P0, Ry
MOV TMOD E0LH 3 Coobue
3dispo3 0n Post-o
imeo 0ode -
MOV TLD, FTOLSB load tial COuo
MOV THO, TOMS3
SETB TRO Stax iroer
OAIT TBC TFO , NEXTcheok ro Oveo
ST MP C0AIT
NET MOV TLO,#TO19B Reloao Lbtial Cos
MOv THo ToSB
INC R3 ocaemeot bsey couoten
CTNE R3, H20,wAIT chec r 1ee
MOV R3 #00H 2 Aese COuoer to oo
Mov A, Ku
AQualyProductby
Ginger
Your Lucky Brand
Teacher'sSignature
80. onepe Stoot
User COunte k3 0
9etond. ountear Ru = O
ioihalize
initial/2ee
CooBgue imer o in mode-l
ood inihal couo TLO THO
ChecK fur fimoe oveolow
taatimer -O
NO
YES
TFO== 1
TFO O
7eload himer oun kr
n cotm ent counwr Rs
NO
R3 20
YES
make counter o d odd 1 to gnd
NO
>
dsploy Second
second = bo
00 Post- o
YES
rmolke Second coun ter Ru = 0
81. Date
Page No. :
ADD A, #o1 H upda te Sec idecimol
DA A decimaladjus
CTNE A # 60H, SKIP cheuk or 60 Sec
MOV A, OoH Reset sec Ount
SKIP MOV Ru, A_
MOy Po, R4_ displou Sec
BTMP 0 AT
END
Kestl
Poat 0 4 bits -
Po Ox59
Kos0KOo
Post-O bis
PO OKIOD
aller 5 Sec's
Caorn
Set nd lock_
9taafe m Seconol
AQuality Productb
inger
Your Lucky Brand Teacher's Signature
82. SEVEN SEGMENT
DISPLAY
NAME : Gajjar Parth Sunilkumar
Enrollment : 180420109009
Submitted To :
1. Dr. Nilesh Shah
2. Prof. Dimple Bhanabhagwanwala
Date Of Submission : 30th
April, 2021
83. MPMC 180420109009
PRACTICAL – 8.1
AIM : Draw an Interfacing scheme to interface four common cathode seven-segment
LEDs with 8051 and using this interfacing scheme write an embedded 'C' program to
display passing year.
CODE :
#include<reg51.h>
#define t0lsb 0x00
#define t0msb 0xEE
bit bdata displayflg = 0;
sbit SEL0 = P2^5;
sbit SEL1 = P2^6;
sbit SEL2 = P2^7;
sbit LE = P3^7;
unsigned char dispdata[4] = {2,0,2,1};
unsigned char code seven_seg[10] = {0x3f,0x06,0x5b,0x4f,0x66,
0x6d,0x7d,0x07,0x7f,0x6f};
void t0isr (void);
void display (void);
unsigned char disppos=0;
void main(void)
{
P0 = 0;
SEL0 = 0;
SEL1 = 0;
SEL2 = 0;
LE=1;
TMOD = 0x01;
TL0 = t0lsb;
TH0 = t0msb;
ET0 = 1;
TR0 = 1;
EA = 1;
while(1)
{
if (displayflg==1)
{
displayflg = 0;
display();
}
88. INTERFACING 20*2
LCD DISPLAY
NAME : Gajjar Parth Sunilkumar
Enrollment : 180420109009
Submitted To :
1. Dr. Nilesh Shah
2. Prof. Dimple Bhanabhagwanwala
Date Of Submission : 30th
April, 2021
89. MPMC 180420109009
PRACTICAL – 9.1
AIM : Draw an Interfacing scheme to interface 20x2 LCD display with 8051. Write an
embedded 'c' program that displays "--Welcome To--" in line-1 and "--SCET, SURAT--
" in line-2 of LCD display.
CODE :
#include<reg51.h>
sbit RS = P2^7;
sbit RWB = P2^6;
sbit EN = P2^5;
sbit BUSY = P0^7;
unsigned char msg1[14] = {"--Welcome To--"};
unsigned char msg2[15] = {"--SCET, SURAT--"};
void lcd_cmd (unsigned char);
void lcd_data (unsigned char);
void ready(void);
void lcd_initialize(void);
unsigned char i, j, value;
void main (void)
{
P2 = 0;
EN = 0;
P0 = 0;
lcd_initialize();
lcd_cmd(0x80); // set DDRAM address for line-1
for (i=0; i<=13; i++)
{
lcd_data(msg1[i]);
}
lcd_cmd(0xc0); // set DDRAM address for line-2
for(i=0; i<=14; i++)
{
lcd_data(msg2[i]);
}
while(1);
}
90. MPMC 180420109009
void lcd_cmd(unsigned char value)
{
ready();
RS = 0; // select command register
RWB = 0; // write command to lcd
P0 = value;
EN = 1; // latch command
EN = 0;
return;
}
void lcd_data(unsigned char value)
{
ready();
RS = 1; // select command register
RWB = 0; // write command to lcd
P0 = value;
EN = 1; // latch command
EN = 0;
return;
}
void ready (void)
{
BUSY = 1; // Configure P0.7 as i/p point
RS = 0; // select command register
RWB = 1; // read command from lcd
EN = 1; // latch command
EN = 0;
while(BUSY ==1)
{
EN = 0;
EN = 1;
}
EN = 0;
}
void lcd_initialize(void)
{
lcd_cmd(0x3c); // 8bit/char, 2-line, 5*10
lcd_cmd(0x06); // right entry mode
lcd_cmd(0x0E); // display on, cursor on, non
blinking cursor
lcd_cmd(0x01); // clear lcd, home cursor
return;
}
91. MPMC 180420109009
OUTPUT :
--Welcome To--
--SCET, SURAT--
PRACTICAL – 9.2
AIM : Write an embedded ‘c’ program that updates and displays Real-Time Clock
data on LCD.
CODE :
#include<reg51.h>
#define lsb 0xb0
#define msb 0x3c
sbit RS = P2^7;
sbit RWB = P2^6;
sbit EN = P2^5;
sbit BUSY = P0^7;
unsigned char msg1[16] = {"--DigitalClock--"};
unsigned char disp_data[8] = 0;
void lcd_cmd (unsigned char);
void lcd_data (unsigned char);
void ready(void);
void lcd_initialize(void);
void display_clock(void);
void rtc(void);
void t0isr(void);
bit bdata secfig = 0;
unsigned char i, j, cnt = 0, sec = 0, min = 0, hr = 0;
void main (void)
{
EN = 0;
TMOD = 0x01; // configure timer-0 in timer mode-1
TL0 = lsb; // load count for 50 ms overflow time
TH0 = msb;
92. MPMC 180420109009
ET0 = 1; // enable timer-0 overflow inturrept
lcd_initialize();
lcd_cmd(0x80); // set DDRAM address for line-1
for(i=0; i<16, i++)
{
lcd_data(msg1[i]);
}
lcd_cmd(0xc0); // set DDRAM address for line-2
for(i=0; i<16; i++)
{
if(i == 2 | i == 5)
lcd_data(':');
else
lcd_data(disp_data[i]+'0');
}
TR0 = 1; // start timer-0
EA = 1; // enable 8051 inturrept system
while(1)
{
if(secflg == 1)
{
secflg = 0;
rtc();
}
} // end of while
} // end of main
void t0isr(void) interrupt 1
{
TL0 = lsb; // reload timer count
TH0 = msb;
cnt++;
if(cnt == 20) // check for 1 sec
{
cnt = 0;
secfig = 1;
}
return;
}
void diplay_clock(void)
{
lcd_cmd (0xc0);
for(i=0; i<8; i++)
{
if( i == 2 | i == 5)
94. MPMC 180420109009
return;
}
void ready (void)
{
BUSY = 1; // Configure P0.7 as i/p point
RS = 0; // select command register
RWB = 1; // read command from lcd
EN = 1; // latch command
EN = 0;
while(BUSY ==1)
{
EN = 0;
EN = 1;
}
EN = 0;
}
void lcd_initialize(void)
{
lcd_cmd(0x3c); // 8bit/char, 2-line, 5*10
lcd_cmd(0x06); // right entry mode
lcd_cmd(0x0E); // display on, cursor on, non blinking
cursor
lcd_cmd(0x01); // clear lcd, home cursor
return;
}
95. SERIAL
COMMUNICATION
NAME : Gajjar Parth Sunilkumar
Enrollment : 180420109009
Submitted To :
1. Dr. Nilesh Shah
2. Prof. Dimple Bhanabhagwanwala
Date Of Submission : 30th
April, 2021
96. MPMC 180420109009
PRACTICAL – 10.1
AIM : Write an embedded C program code to Transmit ‘A’ Serially continuously
CODE :
#include<reg51.h>
// fclk = 11.0592 MHz and 12 clocks per cycle
#define baud_9600 253
/* fclk = 11.0592 MHz and 6 clocks per cycle
#define baud_9600 250
fclk = 18.432 MHz and 12 clocks per cycle
#define baud_9600 251
fclk = 18.432 MHz and 62 clocks per cycle
#define baud_9600 250
*/
void main(void)
{
unsigned char i
SCON = 0x40; // serial mode 1 - 8bit variable baudrate
TMOD = 0x20; // timer 1 in mode 2
TH1 = baud_9600;
TL1 = baud_9600;
TR1 = 1;
for(i=0; i<10; i++)
{
SBUF = 'A';
while(TI == 0); // wait till transmission is completed
TI = 0;
}
}
97. MPMC 180420109009
PRACTICAL – 10.2
AIM : Write an embedded C program code to Receive Serially continuously.
CODE :
#include<reg51.h>
// fclk = 11.0592 MHz and 12 clocks per cycle
#define baud_9600 253
/* fclk = 11.0592 MHz and 6 clocks per cycle
#define baud_9600 250
fclk = 18.432 MHz and 12 clocks per cycle
#define baud_9600 251
fclk = 18.432 MHz and 62 clocks per cycle
#define baud_9600 250
*/
void main(void)
{
SCON = 0x40; // serial mode 1 - 8bit variable baudrate
TMOD = 0x20; // timer 1 in mode 2
TH1 = baud_9600;
TL1 = baud_9600;
TR1 = 1;
REN = 1; // enable recieve
while(1)
{
while(RI == 0); // wait till transmission is completed
RI = 0;
P1 = SBUF;
}
}
98. MPMC 180420109009
PRACITCAL – 10.3
AIM : Write an embedded C program code to Transmit and Receive Serially
continuously.
CODE :
#include<reg51.h>
// fclk = 11.0592 MHz and 12 clocks per cycle
#define baud_9600 253
/* fclk = 11.0592 MHz and 6 clocks per cycle
#define baud_9600 250
fclk = 18.432 MHz and 12 clocks per cycle
#define baud_9600 251
fclk = 18.432 MHz and 62 clocks per cycle
#define baud_9600 250
*/
unsigned char i = 0;
unsigned char msg[100];
unsigned char count = 0;
void main(void)
{
SCON = 0x40; // serial mode 1 - 8bit variable baudrate
TMOD = 0x20; // timer 1 in mode 2
TH1 = baud_9600;
TL1 = baud_9600;
TR1 = 1;
REN = 1; // enable recieve
ES = 1;
EA = 1;
while(1);
}
void serial_isr(void) interrupt 4
{
if(T1 == 1)
{
T1 = 0;
SBUF = msg[1]-0x20;
i++;
if(i>count)
TR1 = 0;
}