Skip to main content

Posts

Showing posts from 2017

Temperature measurement using PIC18F4580 microcontroller

Temperature measurement using PIC18F4580 microcontroller Temperature measurement  Hi every one this is me Owais khan from microcontrollerpicavr.blogspot.com. During Post you will learn the way how to design an Embedded system to measure temperature using PIC18F4580,we know that in an electronic instrumentation system, it consist of number of components which are doing the measurements and giving their output as the results of the measurements. Temperature, light intensity, flow and speed are the examples of physical parameters that can be converted in to an electrical signals using Transducers. Here, electrical signal means the resulted information generated from transducer in the form of resistance, current, voltage or capacitance.                                                       There are many temperature sensor available in market for example TC74,LM35 and many more. In this Post we will consider LM35 Temperature Sensor because LM35

Simple Electronic Lock Using PIC18

Lack of proper home security is just is dangerous driving your car among your kids without a seat belt.  The world is cruel and offers a lot of risk including home invasion. In fact, recent statistics indicate 500 break-ins in every passing second, there are certain things you can do to secure your home, such as installing a digital lock system. Today, I am presenting  Digital Electronic Door Lock developed with PIC Microcontroller and simulated in Proteus. When I was writing its software, the first thing that came to my mind is the password which is the only key to open the lock. The owner of the house must know the correct password otherwise lock will ask for code again. What if someone keeps on trying to attempt the wrong code? Here we need an alarming situation, in that case, the lock will start a buzzer. ☺     It’s fairly clear from the above figure that I have used a PIC Microcontroller as the brain of the system.4x4 keypad, which is used to take inpu

keypad Interfacing with PIC18 microcontroller

Keypad Interfacing with PIC18 microcontroller KEYPAD INTERFACING Keypad and LCDs are the most widely used input/output devices and a  basic understanding of them is essential. In this Post, we first discuss keypad  fundamentals, along with key press detection and key identification mechanisms. Then we show how a keypad is interfaced to a PIC18. Interfacing the keypad to the PIC18 At lowest level, keypads are arranged in a matrix of rows and columns, PIC controller uses two 8 bit ports to entertain 8 x 8 key matrix to connect it.   Connection establish between row and column whenever a key is pressed, in any other case connection considered to be open between row and column.  Generally, In personal computers keyboards, there is also a  microcontroller that can handle hardware and software interfacing of the keyboard.   In a simple way ,Read only memory of microcontroller utilized to store the code to scan the keys constantly and detect which rows and co

Serial Communication Interrupts using pic18f

PIC Serial Communication using Interrupt In my Last Post we studied the serial communication of the PIC18. All sample programs in that Post used the polling method.  In this Post we explore interrupt based  serial communication, which allows the PIC18 to do many things, in addition  to sending and receiving data from the serial communication port. RCIF and TXIF flags and interrupts TXIF (transfer interrupt) is raised  when the last bit of the framed data, the stop bit, is transferred, indicating that the  TXREG register is ready to transfer the next byte. RCIF (received interrupt) is  raised when the entire frame of data, including the stop bit, is received.  In other  words, when the RCREG register has a byte, RCIF is raised to indicate that the  received byte needs to be picked up before it is lost (overrun) by new incoming  serial data.  As far as serial communication is concerned, all the concepts which we have discussed in Basic o