The document discusses configuring the on-chip analog to digital converter (ADC) on the PIC16F877 microcontroller. It first provides an overview of the PIC microcontroller family and key features of the PIC16F877. It then describes the ADC registers and conversion process, including configuring the ADC module, selecting the input channel, starting the conversion, and reading the result. It includes a diagram of the ADC conversion timing and flowchart of the conversion process. An example code for reading the ADC and printing the result is also provided.
Microchip's PIC Micro Controller - Presentation Covers- Embedded system,Application, Harvard and Von Newman Architecture, PIC Microcontroller Instruction Set, PIC assembly language programming, PIC Basic circuit design and its programming etc.
This book guides the beginner to start up with Embedded C programming using MP LAB . This Book covers all interfacing examples with pic micro controller and guides beginners to develop projects on PIC micro controller
Microchip's PIC Micro Controller - Presentation Covers- Embedded system,Application, Harvard and Von Newman Architecture, PIC Microcontroller Instruction Set, PIC assembly language programming, PIC Basic circuit design and its programming etc.
This book guides the beginner to start up with Embedded C programming using MP LAB . This Book covers all interfacing examples with pic micro controller and guides beginners to develop projects on PIC micro controller
Embedded C programming based on 8051 microcontrollerGaurav Verma
This lecture note covers the embedded 'c' programming constructs based on 8051 microcontroller. Although the same concepts can be used for other advanced microcontrollers with some modifications.
A starter guide how to use Microchip MPLAB IDE for PIC microcontrollers and related tools like MPLAB C18, C30 and C32 compilers, and how to MPLAB features to get connected and integrated with programmer/debugger devices and development kits from Microchip.
for more discussion and articles about different microcontroller platforms and tutorials please visit: http://elrayescampaign.blogspot.ca/
This presentation gives the details about the data types available in Embedded C. It also discusses the pros and cons of writing codes in C for 8051. Different example codes are considered.
Complete description of AT89xxx (8051 based) microcontrollers with timers, serial communication and assembly language programming. Interfacing of some real time devices like led, sensor, and seven segment display is also covered.
INTRODUCTION
We know that a microprocessor is the CPU of a computer. A microprocessor can perform some operation on a data and give the output. But to perform the operation we need an input to enter the data and an output to display the results of the operation. So we are using a keyboard and monitor as Input and output along with the processor. Microprocessors engineering involves a lot of other concepts and we also interface memory elements like ROM, EPROM to access the memory.
Types of Interfacing
There are two types of interfacing in context of the 8085 processor.
Memory Interfacing.
I/O Interfacing.
Memory Interfacing:
While executing an instruction, there is a necessity for the microprocessor to access memory frequently for reading various instruction codes and data stored in the memory. The interfacing circuit aids in accessing the memory.
Memory requires some signals to read from and write to registers. Similarly the microprocessor transmits some signals for reading or writing a data.
But what is the purpose of interfacing circuit here?
The interfacing process involves matching the memory requirements with the microprocessor signals. The interfacing circuit therefore should be designed in such a way that it matches the memory signal requirements with the signals of the microprocessor. For example for carrying out a READ process, the microprocessor should initiate a read signal which the memory requires to read a data. In simple words, the primary function of a memory interfacing circuit is to aid the microprocessor in reading and writing a data to the given register of a memory chip.
The interfacing process involves matching the memory requirements with the microprocessor signals. The interfacing circuit therefore should be designed in such a way that it matches the memory signal requirements with the signals of the microprocessor. For example for carrying out a READ process, the microprocessor should initiate a read signal which the memory requires to read a data. In simple words, the primary function of a memory interfacing circuit is to aid the microprocessor in reading and writing a data to the given register of a memory chip.
I/O Interfacing:
We know that keyboard and Displays are used as communication channel with outside world. So it is necessary that we interface keyboard and displays with the microprocessor. This is called I/O interfacing. In this type of interfacing we use latches and buffers for interfacing the keyboards and displays with the microprocessor.
But the main disadvantage with this interfacing is that the microprocessor can perform only one function. It functions as an input device if it is connected to buffer and as an output device if it is connected to latch. Thus the capability is very limited in this type of interfacing.
This presentation gives an overview of the PIC micro-controllers. Additionally, it describes the advantages, disadvantages and applications of these micro-controllers. It also explains real-world projects that are possible using the PIC micro-controllers.
Verilog Code for 16bit RISC Processor, with ALU, Program Counter, Instruction Memory, Data Memory and Control Unit full codes
Visit www.Hellocodings.com
Embedded C programming based on 8051 microcontrollerGaurav Verma
This lecture note covers the embedded 'c' programming constructs based on 8051 microcontroller. Although the same concepts can be used for other advanced microcontrollers with some modifications.
A starter guide how to use Microchip MPLAB IDE for PIC microcontrollers and related tools like MPLAB C18, C30 and C32 compilers, and how to MPLAB features to get connected and integrated with programmer/debugger devices and development kits from Microchip.
for more discussion and articles about different microcontroller platforms and tutorials please visit: http://elrayescampaign.blogspot.ca/
This presentation gives the details about the data types available in Embedded C. It also discusses the pros and cons of writing codes in C for 8051. Different example codes are considered.
Complete description of AT89xxx (8051 based) microcontrollers with timers, serial communication and assembly language programming. Interfacing of some real time devices like led, sensor, and seven segment display is also covered.
INTRODUCTION
We know that a microprocessor is the CPU of a computer. A microprocessor can perform some operation on a data and give the output. But to perform the operation we need an input to enter the data and an output to display the results of the operation. So we are using a keyboard and monitor as Input and output along with the processor. Microprocessors engineering involves a lot of other concepts and we also interface memory elements like ROM, EPROM to access the memory.
Types of Interfacing
There are two types of interfacing in context of the 8085 processor.
Memory Interfacing.
I/O Interfacing.
Memory Interfacing:
While executing an instruction, there is a necessity for the microprocessor to access memory frequently for reading various instruction codes and data stored in the memory. The interfacing circuit aids in accessing the memory.
Memory requires some signals to read from and write to registers. Similarly the microprocessor transmits some signals for reading or writing a data.
But what is the purpose of interfacing circuit here?
The interfacing process involves matching the memory requirements with the microprocessor signals. The interfacing circuit therefore should be designed in such a way that it matches the memory signal requirements with the signals of the microprocessor. For example for carrying out a READ process, the microprocessor should initiate a read signal which the memory requires to read a data. In simple words, the primary function of a memory interfacing circuit is to aid the microprocessor in reading and writing a data to the given register of a memory chip.
The interfacing process involves matching the memory requirements with the microprocessor signals. The interfacing circuit therefore should be designed in such a way that it matches the memory signal requirements with the signals of the microprocessor. For example for carrying out a READ process, the microprocessor should initiate a read signal which the memory requires to read a data. In simple words, the primary function of a memory interfacing circuit is to aid the microprocessor in reading and writing a data to the given register of a memory chip.
I/O Interfacing:
We know that keyboard and Displays are used as communication channel with outside world. So it is necessary that we interface keyboard and displays with the microprocessor. This is called I/O interfacing. In this type of interfacing we use latches and buffers for interfacing the keyboards and displays with the microprocessor.
But the main disadvantage with this interfacing is that the microprocessor can perform only one function. It functions as an input device if it is connected to buffer and as an output device if it is connected to latch. Thus the capability is very limited in this type of interfacing.
This presentation gives an overview of the PIC micro-controllers. Additionally, it describes the advantages, disadvantages and applications of these micro-controllers. It also explains real-world projects that are possible using the PIC micro-controllers.
Verilog Code for 16bit RISC Processor, with ALU, Program Counter, Instruction Memory, Data Memory and Control Unit full codes
Visit www.Hellocodings.com
A 4-bit CPU is implemented using TTL components and was based on micro-programmed control. The system implements 12 basic arithmetic, logic and control instructions with a 4 bit data bus and an 8 bit address bus. This project was done during 2nd year at IIT Guwahati
The Roman Empire A Historical Colossus.pdfkaushalkr1407
The Roman Empire, a vast and enduring power, stands as one of history's most remarkable civilizations, leaving an indelible imprint on the world. It emerged from the Roman Republic, transitioning into an imperial powerhouse under the leadership of Augustus Caesar in 27 BCE. This transformation marked the beginning of an era defined by unprecedented territorial expansion, architectural marvels, and profound cultural influence.
The empire's roots lie in the city of Rome, founded, according to legend, by Romulus in 753 BCE. Over centuries, Rome evolved from a small settlement to a formidable republic, characterized by a complex political system with elected officials and checks on power. However, internal strife, class conflicts, and military ambitions paved the way for the end of the Republic. Julius Caesar’s dictatorship and subsequent assassination in 44 BCE created a power vacuum, leading to a civil war. Octavian, later Augustus, emerged victorious, heralding the Roman Empire’s birth.
Under Augustus, the empire experienced the Pax Romana, a 200-year period of relative peace and stability. Augustus reformed the military, established efficient administrative systems, and initiated grand construction projects. The empire's borders expanded, encompassing territories from Britain to Egypt and from Spain to the Euphrates. Roman legions, renowned for their discipline and engineering prowess, secured and maintained these vast territories, building roads, fortifications, and cities that facilitated control and integration.
The Roman Empire’s society was hierarchical, with a rigid class system. At the top were the patricians, wealthy elites who held significant political power. Below them were the plebeians, free citizens with limited political influence, and the vast numbers of slaves who formed the backbone of the economy. The family unit was central, governed by the paterfamilias, the male head who held absolute authority.
Culturally, the Romans were eclectic, absorbing and adapting elements from the civilizations they encountered, particularly the Greeks. Roman art, literature, and philosophy reflected this synthesis, creating a rich cultural tapestry. Latin, the Roman language, became the lingua franca of the Western world, influencing numerous modern languages.
Roman architecture and engineering achievements were monumental. They perfected the arch, vault, and dome, constructing enduring structures like the Colosseum, Pantheon, and aqueducts. These engineering marvels not only showcased Roman ingenuity but also served practical purposes, from public entertainment to water supply.
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
The Indian economy is classified into different sectors to simplify the analysis and understanding of economic activities. For Class 10, it's essential to grasp the sectors of the Indian economy, understand their characteristics, and recognize their importance. This guide will provide detailed notes on the Sectors of the Indian Economy Class 10, using specific long-tail keywords to enhance comprehension.
For more information, visit-www.vavaclasses.com
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
Model Attribute Check Company Auto PropertyCeline George
In Odoo, the multi-company feature allows you to manage multiple companies within a single Odoo database instance. Each company can have its own configurations while still sharing common resources such as products, customers, and suppliers.
2. PIC MICROCONTROLLER
PIC (Peripheral Interface Controller ) is family of microcontrollers made by
“Microchip Technology”.
PIC microcontrollers are very fast and executing a program is easier compared to
other controllers. It follows “Harvard architecture” for internal data transfer. Its
architecture comprises of CPU, RAM, ROM, timers, counters and protocols like
SPI, UART, CAN which are used for interfacing with other peripherals. .
PIC are small microcontroller that can be programmed to carry out a vast range of
tasks. The programming and the simulation process of this microcontroller can be
done using MP-LAB software.
Even though there are many types of PIC microcontrollers , the most widely used
and basic microcontroller is PIC16F877.
3. PIC 16F877 :FEATURES
8 bit microcontroller
8k x 14 words of flash program memory.
368 x 8 bytes of data memory(RAM).
256 x 8 bytes of EEPROM data memory.
20MHz operating speed (200 ns instruction
cycle).
Wide operating voltage range(2.0-5.6)volts.
High Sink/Source current, about 25mA.
Package options(40 or 44 pins).
High performance RISC CPU.
35 simple word Instructions.
Support for 14 interrupts.
Supports different types of addressing modes.
Power up timer(PWRT).
3 timers (Multiple modes 8 bit,16 bit support).
10 bit multi-channel Analog to digital convertor (10 bit
resolution)..
Universal synchronous asynchronous receiver transmitter
(USART).
Supports for I2C.
Supports SPI.
Brown out reset(BOR).
Watch dog timer.
7. Program Memory:
• This is a 8K*14 memory space.
• It contains the programs that are written
by the user.
• The program memory data is accessed
by the 13 bit program counter register
that holds the address of the program
memory.
• The address 0000H is used as reset
memory space and 0004H is used as
interrupt memory space.
The PIC 16F877 consists of 3 memories:
Program memory , Data memory and Data EEPROM.
8. • Data Memory: The data memory
consists of the 368 bytes of RAM
and 256 bytes of EEPROM.
• The Data Memory consists of
multiple banks.
• Each bank consists of general
purpose registers and special
function registers.
• The special function registers
consists of control registers to
control different operations of the
chip resources like Timers, Analog
to Digital Converters, Serial ports,
I/O ports, etc.
9. • Data EEPROM (Electrically Erasable Programmable Read-Only
Memory) - Data EEPROM they are non-volatile memories, which store the
information even after the power is turn off. These memories called Flash Or
EEPROM.
• The general purpose registers -consists of registers that are used to store
temporary data and processing results of the data. These general purpose registers
are each 8-bit registers.
• Working Register -It consists of a memory space that stores the operands for
each instruction. It also stores the results of each execution.
• File Selection Register- It acts as a pointer to any other general-purpose
register. It consists of a register file address, and it is used in indirect addressing.
• Program-counter register- It is a 13-bit register. The 5 upper bits are used as
PCLATH (Program Counter Latch) to independently function as any other
register, and the lower 8-bits are used as the program counter bits. The program
counter acts as a pointer to the instructions stored in the program memory.
10. • Status Register: The bits of the status register denote the status of the ALU (arithmetic logic unit) after every
execution of the instruction. It is also used to select any one of the 4 banks of the RAM.
IRP - Register Bank Select bit, used for indirect addressing method.
When the IRP Equal to 0, the program will work with banks 0, 1.
When the IRP Equal to 1, the program will work with banks 2, 3.
RP1:RP0: - Register Bank Select bits, used for direct addressing method
selection of the RP0 and RP1 bits helps in selecting one of the 4 banks.
C: Carry/borrow bit
1 = A carry-out from the Most Significant bit of the result occurred
0 = No carry-out from the Most Significant bit of the result occurred
DC: Digit carry/borrow bit (for borrow, the polarity is reversed)
1 = A carry-out from the 4th low order bit of the result occurred
0 = No carry-out from the 4th low order bit of the result
Z: Zero bit
1 = The result of an arithmetic or logic operation is zero
0 = The result of an arithmetic or logic operation is not zero
PD: Power-down bit
1 = After power-up or by the CLRWDT instruction
0 = By execution of the SLEEP instruction
TO: Time-out bit
1 = After power-up, CLRWDT instruction or SLEEP instruction
0 = A WDT time-out occurred
11. • Power on Reset- The task of POR is ensuring that the processor starts at
known address when power is first on, the reset function will set the PC to
starting address.
• Power up timer- A special timer that delay the start of program execution
after the PIC has been reset on power.
• Brown out Reset(BOR)- when the power supply drops below certain
voltage(4v in case of PIC),it causes PIC to reset.
• Watch Dog Timer(WDT)- A simple timer circuit that performs specific
operation after a certain period of time if something goes wrong
• In Circuit Debugger(ICD)- with the ICD we can watch our program run in
the chip/module and find any bugs or programming mistakes as they happen
12.
13. Register Description
ADCON0 - ADC Control Register 0 Control the operation of A/D module
ADCON1 -ADC Control Register 1 Used to configure the GPIO pins for ADC.
Determines the configuration of the PORT A
and PORT E
ADRESH -ADC Result High Register Holds the higher byte of ADC result
ADRESL -ADC Result low Register Holds the lower byte of ADC result
ADC Registers
The A/D module has four 8 bit registers:
14. ADCON0
ADCON0
bit7 6 5 4 3 2 1 bit0
ADCS1 ADCS0 CHS2 CHS1 CHS0 GO/DONE — ADON
• ADCS1 and ADCS2 are used to select A/D Conversion Clock . It should be selected in accordance with device clock.
• CHS2, CHS1 and CHS0 are used to select one of the Analog input channel out of eight channels.
• CHS2-CHS0: Analog Channel Select bits
000 = Channel 0 (AN0/RA0)
001 = Channel 1 (AN1/RA1)
010 = Channel 2 (AN2/RA2)
011 = Channel 3 (AN3/RA3)
100 = Channel 4 (AN4/RA5)
101 = Channel 5 (AN5/RE0)
110 = Channel 6 (AN6/RE1)
111 = Channel 7 (AN7/RE2)
• GO/DONE is the A/D Conversion Status bit. Setting this bit initializes A/D Conversion and will be automatically
cleared when the conversion is complete.
• ADON is used to switch on/off the ADC Module. When it is 1, the ADC Module turns ON and when it is 0, the ADC
Module will be OFF.
15. ADCON1
ADCON1
7 6 5 4 3 2 1 0
ADFM — — — PCFG3 PCFG2 PCFG1 PCFG0
• ADFM - ADC Result Format select bit. Two 8 bit
register (ADRESH and ADRESL) are provided to store the
10-bit result of A/D Conversion. When ADFM is 1, the
result will be right justified, i.e. Most Significant Bits of
ADRESH will be read as 0. When ADFM is 0, the result
will be left justified, i.e. Least Significant Bits of ADRESL
will be read as zero.
• PCFG3 – PCFG0 are the A/D “Port Configuration
Control bits”. Each pin among AN0 – AN7 is configured
as analog , digital or reference voltage inputs according to
the status of these configuration bits as given below.
16. 1. Configure the A/D module:
• Configure analog pins/voltage reference and digital I/O (ADCON1)
• Select A/D input channel (ADCON0)
• Select A/D conversion clock (ADCON0)
• Turn on A/D module (ADON bit of ADCON0)
2. Configure A/D interrupt (if desired):
• Clear ADIF bit
• Set ADIE ,PEIE ,GIE bit
3. Wait the required acquisition time.
4. Start conversion:
• Set GO/DONE bit (ADCON0)
5. Wait for A/D conversion to complete, by either:
• Polling for the GO/DONE bit to be cleared(with interrupts enabled); OR
• Waiting for the A/D interrupt
6. Read A/D result register pair (ADRESH:ADRESL), clear bit ADIF if required.
7. For the next conversion, go to step 1 or step 2, as required.
Steps for A/D conversion