Implementation of Dip Test In Microcontroller-Based Operations Control System
Exploring Hardware Components for Microcontroller-Based Operations Control System
by Pawan Kumar*, Dr. C. Ram Singla,
- Published in Journal of Advances in Science and Technology, E-ISSN: 2230-9659
Volume 3, Issue No. 6, Aug 2012, Pages 0 - 0 (0)
Published by: Ignited Minds Journals
ABSTRACT
Microcontrollersusually contain from several to dozens of general purpose input/output pins(GPIO). GPIO pins are software configurable to either an input or an outputstate. When GPIO pins are configured to an input state, they are often used toread sensors or external signals. Configured to the output state, GPIO pins candrive external devices such as LEDs or motors. Manyembedded systems need to read sensors that produce analog signals. This is thepurpose of the analog-to-digital converter (ADC).Since processors are built to interpret and process digital data, i.e. 1s and0s, they are not able to do anything with the analog signals that may be sentto it by a device. So the analog to digital converter is used to convert theincoming data into a form that the processor can recognize. A less commonfeature on some microcontrollers is a digital-to-analog converter (DAC) thatallows the processor to output analog signals or voltage levels. Inaddition to the converters, many embedded microprocessors include a variety oftimers as well. One of the most common types of timers is the Programmable Interval Timer (PIT). APIT may either count down from some value to zero, or up to the capacity of thecount register, overflowing to zero. Once it reaches zero, it sends aninterrupt to the processor indicating that it has finished counting. This isuseful for devices such as thermostats, which periodically test the temperaturearound them to see if they need to turn the air conditioner on, the heater on,etc. Time Processing Unit (TPU) is a sophisticatedtimer. In addition to counting down, the TPU can detect input events, generateoutput events, and perform other useful operations. Adedicated Pulse Width Modulation (PWM) block makes itpossible for the CPU to control power converters, resistive loads, motors,etc., without using lots of CPU resources in tight timer loops. Universal AsynchronousReceiver/Transmitter (UART) block makes it possible to receive and transmitdata over a serial line with very little load on the CPU. Dedicated on-chiphardware also often includes capabilities to communicate with other devices(chips) in digital formats such as I2C and Serial Peripheral Interface (SPI).
KEYWORD
microcontroller-based operations control system, Dip Test, GPIO pins, analog-to-digital converter, digital-to-analog converter, Programmable Interval Timer, Time Processing Unit, Pulse Width Modulation, Universal Asynchronous Receiver/Transmitter, I2C, Serial Peripheral Interface
1. INTRODUCTION
A microcontroller is a small computer on a single integrated circuit containing a processor core, memory, and programmable input/output peripherals. Program memory in the form of NOR flash or OTP ROM is also often included on chip, as well as a typically small amount of RAM. Microcontrollers are designed for embedded applications, in contrast to the microprocessors used in personal computers or other general purpose applications. Microcontrollers are used in automatically controlled products and devices, such as automobile engine control systems, implantable medical devices, remote controls, office machines, appliances, power tools, and toys. By reducing the size and cost compared to a design that uses a separate microprocessor, memory, and input/output devices, microcontrollers make it economical to digitally control even more devices and processes. Mixed signal microcontrollers are common, integrating analog components needed to control non-digital electronic systems. Some microcontrollers may use Four-bit words and operate at clock rate frequencies as low as 4 kHz, for low power consumption (milliwatts or microwatts). They will generally have the ability to retain functionality while waiting for an event such as a button press or other interrupt; power consumption while sleeping (CPU clock and most peripherals off) may be just nanowatts, making many of them well suited for long lasting battery applications. Other microcontrollers may serve performance-critical roles, where they may need to act more like a digital signal processor (DSP).
2
3. HARDWARE DESCRIPTION
It consists of two major parts and provides a function to convert the parallel data bus to RS232 serial port and vice versa. Also, it provides an in-system programming function. The functions of the three two parts are described as follows: • Philips P89v51RD2/P89c51RD2 is an 8051 microcontroller. The microcontroller connection to the RS232 is through the serial data bus and control signals - address, write, read, reset, and chip select signals. • Philips RS-232 drivers/receivers are the transceivers. The first one allows the microcontroller to be in-system programmed through a PC’s serial port such as COM1. The RS-232 mainlyconsists of two sections: drivers (transmitters) and receivers. The drivers convert the CMOS-logic output levels to RS-232 signals, whereas the receivers convert theRS-232 signals to CMOS-logic output levels.
4. SOFTWARE DESCRIPTION
The programming of the demo test board can be done by writing firmware code requires the following software.
• Raisonance is one of the embedded system vendors that provide the development tools for the 8051 microcontroller. The software compiles the firmware code and generates an ’Intel Hex’ file. Flash Magic is a free Windows application software that allows easy programming of Philips Flash Microcontrollers. The software loads the ’Intel Hex’ file to the microcontroller by using its in-system programming mode communicating through serial port.
CONNECTIONS:
- Connect Port2 (P2) to LED Section.
- Connect Port0 (P0) to DIP switch Section.
#include
1Pawan Kumar 2Dr. C. Ram Singla
IE = 0x92; //1001 0010 SCON = 0x50; //0101 0000
REN = 1;
TL0 = (uchar)TIMER_RELOAD; TH0 = (uchar)TIMER_RELOAD >> 8; TH1 = TL1 = 0xFA;
TR0 = 1; TR1 = 1;
} void main(void) { io_open(); while(1) {
P0 = P2; }}
6. CONCLUSION
This integration drastically reduces the number of chips and the amount of wiring and circuit board space that would be needed to produce equivalent systems using separate chips. Furthermore, on low pin count devices in particular, each pin may interface to several internal peripherals, with the pin function selected by software. This allows a part to be used in a wider variety of applications than if pins had dedicated functions. Micro-controllers have proved to be highly popular in embedded systems since their introduction in the 1970s. Some microcontrollers use a Harvard architecture: separate memory buses for instructions and data, allowing accesses to take place concurrently. Where a Harvard architecture is used, instruction words for the processor may be a different bit size than the length of internal memory and registers; for example: 12-bit instructions used with 8-bit data registers. The decision of which peripheral to integrate is often difficult. The microcontroller vendors often trade operating frequencies and system design flexibility Manufacturers have to balance the need to minimize the chip size against additional functionality. Microcontroller architectures vary widely. Some designs include general-purpose microprocessor cores, with one or more ROM, RAM, or I/O functions integrated onto the package. Other designs are purpose built for control applications. A micro-controller instruction set usually has many instructions intended for bit-wise operations to make control programs more compact. For example, a general purpose processor might require several instructions to test a bit in a register and branch if the bit is set, where a micro-controller could have a single instruction to provide that commonly-required function.
REFERENCES
1. "PICmicro Family Tree", PIC16F Seminar Presentation 2. "MOS DATA 1976", General Instrument 1976 Databook 3. "1977 Data Catalog", Micro Electronics from General Instrument Corporation 4. Microchip Technology . "Microchip Technology Delivers Six Billionth PIC Microcontroller". . 5. AN869: External Memory Interfacing Techniques for the PIC18F8XXX". 6. Microchip Product Selector 7. "PIC Paging and PCLATH" 8. PIC10F200/202/204/206 Data Sheet. Microchip Technology. 9. "PIC24H Family Overview". 10. 32-bit PIC® MCUs". 11. "MPLAB REAL ICE In-Circuit Emulator Product Overview".