Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
ON
ACKNOWLEDGEMENT
There is always a sense of gratitude, which is expressed to others for the helpful and needy service towards all this, which have been helpful to me in getting this task of project successfully accomplished. First of all I would express my sincere gratitude to Electronics and communication Department SLIET who helped me in some or other ways. I would like to express my sincere gratitude to Er. Ajaypal Singh, who rendered me busy possible help and patiently listening my problems. Furthermore, I would like to express my gratitude and thanks to my course counselor Dr.Anupama Marwaha who helped me in some or other way.
PREFACE
The ever-increasing use of micro controller system in device other than general purpose computing systems such as industrial control & common house hold devices created vacuum in terms of miniaturization required. The microprocessor - based system simply occupied too much space to be seriously considered for any further applications. The solution lay in a concept called micro controller where in the microcomputer with just enough computing power desired was present on a single chip. The project micro controller based temp. Indicator & printing system also uses a micro controller that makes it versatile device. The project repot is divided in to several sections to understand it clearly. Introduction part gives the idea about the project in brief. The block diagram & the circuit diagram represents the necessary operation required completing this project. The circuit is divide in to five section to understand it clearly that is A to D converter, micro controller chip, sensing part , power supply, display section. The PCB section includes the position of components that helps a lot during the assembling of the project. After that the working of project is explained in detail. The program necessary to provide the commands to the printer is explained in the software section. An estimation of the total cost is given in the cost analysis. The data sheets are explained in the architecture & functioning of the various ICs used. Finally reference section includes the various books & websites that helps in during the project.
INDEX
i) ACKNOWLEDGEMENT ii) PREFACE
3. VLSI DESIGNING
G) H) I) J) K) INTRODUCTION TO VLSI. SOFTWARES USED.. VLSI DESIGNED CIRUITS ON MENTOR GRAPHICS INTRODUCTION OF VHDL VHDL PROGRAMS IN MENTOR GRAPHICS MODELSIM
4. PCB DESIGNING
L) INTRODUCTION TO PRINTED CIRCUIT BOARD. M) PCB DESIGNING RULES N) PCB ETCHING PROCEDURE O) EXERCISE 1 P) EXERCISE 2
THAPAR UNIVERSITY
Thapar University, formerly Thapar Institute of Engineering and Technology, was founded in 1956 by Karam Chand Thapar. The university is situated in Patiala, Punjab. A Centre of Relevance and Excellence (CORE) has been set up at Thapar University by TIFAC Mission REACH of Department of Science & Technology, Government of India in its first phase of setting up eight CORES at various Institutes and Universities spread all over the country. Science and Technology Entrepreneurs Park (STEP) has been established jointly by Thapar University and DST, Govt. of India. Thapar University has grown in size and activities during the last five decades of its existence. Thapar University was granted full autonomy and the status of a Deemed University in 1985 UGC
Engineering and Technology, the Thapar Technology campus also has Thapar Polytechnic, Thapar Centre for Industrial Research and Development. It has been renovated with every modern facilities.It provides on-campus residence for all its students with better hostels than other government colleges.Chandigarh Campus is opening shortly.
DEPARTMENTS:
Biotechnology & Environment Sciences (BTESD) Chemical Engineering (CHED) Civil Engineering (CED) Computer Science & Engineering (CSED) Electrical & Instrumentation Engineering (EIED) Electronics & Communication Engineering (ECED) Mechanical Engineering Department (MED) Distance Education (DDE)
RANKINGS:
Thapar University was ranked #26 in the Outlook India Top Engineering Colleges of 2012[2] and #19 in the Dataquest India's Top Engineering Colleges 2011.[3] in the limited participation CSR-GHRDC Engineering Colleges Survey 2011 it was ranked #8.[4] In rankings limited to private schools it was ranked #5 in the Mint Top 50 Private Engineering Colleges of 2009[5] and #3 in the Electronics for You Top 50 Private Engineering Colleges of 2011
MICROCONTROLLER 8051
The Intel MCS-51 (commonly referred to as 8051) is a Harvard architecture, single chip microcontroller (C) series which was developed by Intel in 1980 for use in embedded systems.[1][2] Intel's original versions were popular in the 1980s and early 1990s. While Intel no longer manufactures the MCS-51, binary compatible derivatives remain popular today. In addition to these physical devices, several companies also offer MCS-51 derivatives as IP cores for use in FPGAs or ASICs designs. Intel's original MCS-51 family was developed using NMOS technology, but later versions, identified by a letter C in their name (e.g., 80C51) used CMOS technology and consumed less power than their NMOS predecessors. This made them more suitable for batterypowered devices.
8-bit ALU, Accumulator and 8-bit Registers; hence it is an 8-bit microcontroller 8-bit data bus It can access 8 bits of data in one operation 16-bit address bus It can access 216 memory locations 64 KB (65536 locations) each of RAM and ROM On-chip RAM 128 bytes (data memory) On-chip ROM 4 kByte (program memory) Four byte bi-directional input/output port UART (serial port) Two 16-bit Counter/timers Two-level interrupt priority Power saving mode (on some derivatives)
8051 FAMILY:
Intel fabricated the original 8051 which is known as MCS-51. The other two members of the 8051 family are: i. 8052 This microcontroller has 256 bytes of RAM and 3 timers. In addition to the standard features of 8051, this microcontroller has an added 128 bytes of RAM and timer. It has 8K bytes of on chip program ROM. The programs written for projects using 8051 microcontroller can be used to run on the projects using 8052 microcontroller as 8051 is a subset of 8052. ii. 8031 This microcontroller has all the features of 8051 except for it to be ROM-less. An external ROM that can be as large as 64 K bytes should be programmed and added to this chip for execution. The disadvantage of adding external ROM is that 2 ports (out of the 4 ports) are used. Hence, only 2 ports are left for I/O operations which can also be added externally if required for execution.
PIN 9: PIN 9 is the reset pin which is used to reset the microcontrollers internal registers and ports upon starting up. (Pin should be held high for 2 machine cycles.) PINS 18 & 19: The 8051 has a built-in oscillator amplifier hence we need to only connect a crystal at these pins to provide clock pulses to the circuit. PIN 40 and 20: Pins 40 and 20 are VCC and ground respectively. The 8051 chip needs +5V 500mA to function properly, although there are lower powered versions like the Atmel 2051 which is a scaled down version of the 8051 which runs on +3V. PINS 29, 30 & 31: As described in the features of the 8051, this chip contains a built-in flash memory. In order to program this we need to supply a voltage of +12V at pin 31. If external memory is connected
then PIN 31, also called EA/VPP, should be connected to ground to indicate the presence of external memory. PIN 30 is called ALE (address latch enable), which is used when multiple memory chips are connected to the controller and only one of them needs to be selected.We will deal with this in depth in the later chapters. PIN 29 is called PSEN. This is "program store enable". In order to use the external memory it is required to provide the low voltage (0) on both PSEN and EA pins.
PORTS:
There are 4 8-bit ports: P0, P1, P2 and P3.
data bus that can be used to access external memory in conjunction with PORT P2. P0 acts as AD0-AD7, as can be seen from fig 1.1 PORT P10: asynchronous communication input or Serial synchronous communication output.
INTERNAL ARCHITECTURE:
OSCILATOR CIRCUITS:
are synchronized by the help of an oscillator clock. The oscillator clock generates the clock pulses by which all internal operations are synchronized. A resonant network connected through pins XTAL1 and XTAL2 forms up an oscillator. For this purpose a quartz crystal and capacitors are employed. The crystal run at specified maximum and minimum frequencies typically at 1 MHz to 16 MHz. When you read the spec a minimum frequencies would imply that some
A B CPU registers:
8051 architecture has 34 general purpose or working registers. The logical and math operations are being hold by A and B registers. The other 32 registers hold the mathematical core operation. A register holds addition, subtraction, multiplication and division and Boolean bits manipulations. B register works together with A as storing data during multiplication and division.
Flags:
Flags is the 1-bit registers that stores results of certain program instructions. The flag make states that decisions can be made upon them. Flags are grouped inside program status word (PSW) and the power control (PCON) registers. 8051 architecture has four math flags function as a responder to the math operations results and three general purpose flags for setting or clearing 1 or 0 as the programmer desired. General purpose flags are named F0, GF0 and GF1 used to record some event. Math flags include 1. Carry (C) 2. Auxiliary Carry (AC) 3. Overflow (OV) 4. Parity (P)
Internal Memory
ROM and RAM have memory for program code bytes for variable data that can be altered when you run the program. You can provide external memory to internal memory by using suitable circuits.
Internal RAM:
Internal RAM has memory 128-byte. See 8051 hardware for further internal RAM design. Internal RAM is organized into three distinct areas: 1. 32 bytes working registers from address 00h to 1Fh 2. 16 bytes bit addressable occupies RAM byte address 20h to 2Fh, altogether 128 addressable bits 3. General purpose RAM from 30h to 7Fh
Stack Pointer:
There is an area inside internal RAM called stack that deals with certain op-codes for storing and retrieving data quickly. 8-bit Stack Pointer or SP is used by 8051 architecture for holding internal RAM address called top of stack. The stack operation stored last byte of data in the top of stack. When data send to stack, it will be incremented before data is stored. However SP will be decremented if data is retrieved from the stack. Operation of the stack is shown in 8051 hardware.
Internal ROM:
Data memory and program code memory both are in different physical memory but both have the same addresses. An internal ROM occupied addresses from 0000h to 0FFFh. PC addresses program codes from 0000h to 0FFFh. Program addresses higher than 0FFFh that exceed the internal ROM capacity will cause 8051 architecture to fetch codes bytes from external program memory.
A51 ASSEMBLER:
The A51 Assembler is a macro assembler for the 8051 family of microcontrollers. It supports all 8051 derivatives. It translates symbolic assembly language mnemonics into relocatable object code where the utmost speed, small code size, and hardware control are critical. The macro facility speeds development and conserves maintenance time since common sequences need only be developed once. The A51 assembler supports symbolic access to all features of the 8051 architecture. The A51 assembler translates assembler source files into a relocatable object modules. The DEBUG directive adds full symbolic information to the object module and supports debugging with the Vision Debugger or an in-circuit emulator. In addition to object files, the A51 assembler generates list files which may optionally include symbol table and cross reference information.
When using the Keil tools, the project development cycle is similar to any other software development project. 1. Create a project, select the target device from the Device Data base, and configure the tool settings 2. Create your source files in C/C++ or Assembly 3. Build your application with the Project Manager 4. Debug and correct errors in source files, verify and optimize your application 5. Download your code to Flash ROM or SRAM and test the linked application.
ANS:
PROGRAM:
ANS:
PROGRAM:
ANS:
PROGRAM:
ANS:
PROGRAM:
ANS:
PROGRAM:
Very-large-scale integration (VLSI) is the process of creating integrated circuits by combining thousands of transistors into a single chip. VLSI began in the 1970s when complexsemiconductor and communication technologies were being developed. The microprocessor is a VLSI device. Gone are the days when huge computers made of vacuum tubes sat humming in entire dedicated rooms and could do about 360 multiplications of 10 digit numbers in a second. Though they were heralded as the fastest computing machines of that time, they surely dont stand a chance when compared to the modern day machines. Modern day computers are getting smaller, faster, and cheaper and more power efficient every progressing second. But what drove this change? The whole domain of computing ushered into a new dawn of electronic miniaturization with the advent of semiconductor transistor by Bardeen (1947-48) and then the Bipolar Transistor by Shockley (1949) in the Bell Laboratory.
DESIGN
Complex design challenges characterized by shrinking geometry, functionality within both the hardware and software domains, and strict requirements for performance and power efficiency driven by the designated application, are changing how systems are being designed. In the consumer markets, users experience is a key for product success. It is determined by the performance of the combined hardware and software application. To achieve an optimal architecture and allow design scalability, design engineers must maintain visibility over the power and performance requirements ahead of production when the greatest impact on design implementation is still possible. Architecture design is the task carried by the system architects and SoC designers who need to architect, integrate and optimize complex systems meeting power and performance requirements. During the platform definition process, macro-architecture and micro-architecture decisions need to be made such as HW/SW tradeoffs, processors selection, interconnect and memory hierarchies, fabric infrastructures, and caching strategies. When designing complex interconnect fabrics (such as storage and networking), architecture exploration is usually done ahead of the functional design phase by using statistical non-functional models and traffic generators that simulate various data distributions and loads. Alternately, in SoC and embedded applications, performance can be explored along with functional validation and software execution. It is critical to be able to balance power and performance in conjunction with hardware and software functionality, and then trade hardware vs. software implementations in a methodical and predictable way.
FEATURES:
Set of configurable TLM 2.0-based architecture blocks Intuitive graphical platform assembly tool Tracing of data packets, model states and design attributes
Advanced analysis and visualization Hardware / software tradeoff analysis Early assessment of timing and power
TRANSIENT RESPONSE:
Notice how transistors Q1 and Q3 resemble the series-connected complementary pair from the inverter circuit. Both are controlled by the same input signal (input A), the upper transistor turning off and the lower transistor turning on when the input is "high" (1), and vice versa. Notice also how transistors Q2 andQ4 are similarly controlled by the same input signal (input B), and how they will also exhibit the same on/off behavior for the same input logic levels. The upper transistors of both pairs (Q1 and Q2) have their source and drain terminals paralleled, while the lower transistors (Q3 and Q4) are seriesconnected. What this means is that the output will go "high" (1) if either top transistor saturates, and will go "low" (0) only if both lower transistors saturate. The following sequence of illustrations shows the behavior of this NAND gate for all four possibilities of input logic levels (00, 01, 10, and 11)
A CMOS NOR gate circuit uses four MOSFETs just like the NAND gate, except that its transistors are differently arranged. Instead of two paralleled sourcing(upper) transistors connected to Vdd and two series-connected sinking (lower) transistors connected to ground, the NOR gate uses two series-connected sourcing transistors and two parallel-connected sinking transistors like this:
As with the NAND gate, transistors Q1 and Q3 work as a complementary pair, as do transistors Q2 and Q4. Each pair is controlled by a single input signal. Ifeither input A or input B are "high" (1), at least one of the lower transistors (Q3 or Q4) will be saturated, thus making the output "low" (0). Only in the event of both inputs being "low" (0) will both lower transistors be in cutoff mode and both upper transistors be saturated, the conditions necessary for the output to go "high" (1). This behavior, of course, defines the NOR logic function.
The input voltage of the inverter circuit is also the gate-to-source voltage of the nMOS transistor (Vi' = VGs), while the output voltage of the circuit is equal to the drain-to-source voltage (V", = VDS). The source and the substrate terminals of the nMOS transistor, also called the driver transistor, are connected to ground potential; hence, the source-to substrate voltage is VSB = 0. In this generalized representation, the load device is represented as a two-terminal circuit element with terminal current IL and terminal voltage VL(IL). Oneterminal of the load device is connected to the drain of the nchannel MOSFET, while the other terminal is connected to VDD, the power supply voltage. We will see shortly that the chaRacteristics of
the inverter circuit actually depend very strongly upon the type and the characteristics of the load device.
OF
RESISTIVE
gate that implements an exclusive or; that is, a true output (1) results if one, and only one, of the inputs to the gate is true (1). If both inputs are false (0) or both are true (1), a false output (0) results. Its behavior is summarized in the truth table shown on the right. A way to remember XOR is "one or the other but not both". It represents the inequality function, i.e., the output is HIGH (1) if the inputs are not alike otherwise the output is LOW (0). TRANSIENT RESPONSE:
This is a program that checks each piece of the layout against the process design rules. This is a slow process: canonicalize layout into a set of leading and trailing non-overlapping mask edges. Some boolean mask operations may be needed. determine electrical connectivity and label each edge with the node it belongs to. test each edge end point against neighboring edges to check for spacing (leading edges) and width (trailing edges) violations. Layout vs. Schematic (LVS): First a netlist is extracted from the layout. Use the electrical info generated by the DRC and then recognize transistors are juxtapositions of channel with diffusion. Then see if extracted netlist is isomorphic to the schematic netlist. This is done by a coloring algorithm: initialize all nodes to the same color
compute a new color for each node as some hashing function involving the colors of connected (ie, thru a fet) nodes. nodes that have a unique color are isomorphic to similarly colored node in other network worry about parallel fets, ambiguous nodes. CMOS LAYOUT:
CMOS SCHEMATIC:
LAYOUT VS SCHEMATICS:
Fortunately, it is possible to quickly assimilate a core subset of the language that is both easy and simple to understand without learning the more complex features. This subset is usually sufficient to model most applications. The complete language, however, has sufficient power to capture the descriptions of the most complex chips to a complete electronic system.
VHDL is used to describe a model for a digital hardware device. This model specifies the external view of the device and one or more internal views. The internal view of the device specifies the functionality or structure, while the external view specifies the interface of the device through which it communicates with the
other models in its environment. Figure I.I shows the hardware device and the corresponding software model. The device to device model mapping is strictly a one to many. That is, a hardware device may have many device models. For example, a device modeled at a high leyel of abstraction may not have a clock as one of its inputs, since the clock may not have been used in the description. Also the data transfer at the interface may be treated in terms of say, integer values, instead of logical values. In VHDL, each device model is treated as a distinct representation of a unique device, called an entity in this text. Figure 1.2 shows the VHDL view of a hardware device that has multiple device models, with each device model representing one entity. Even though entity I through N represent N different entities from the VHDL point of view, in reality they represent the same hardware device.
Unified mixed language simulation engine for the fastest regression suite throughput Native support of Verilog, SystemVerilog for design, VHDL, and SystemC for effective verification of the most sophisticated design environments Fast time-to-debug causality tracing and multi-language debug environment Advanced code coverage and analysis tools for fast time to coverage closure BENEFITS AND FEATURES: High-performance, high-capacity engine for the fastest regression suite throughput Native support of Verilog, VHDL, and SystemC for effective verification of the most sophisticated design environments Fast time-to-debug causality tracing and multi-language debug environment Advanced code coverage and analysis tools for fast time to coverage closure
EXAMPLE 1: WRITE VHDL CODE FOR HALF SUBTRACTOR IN BEHAVIOUR STYLE & PERFORM BEHAVIOUR SIMULATION AND SYNTHESIS
RTL SCHEMATIC:
SIMULATION WAVEFORMS:
EXAMPLE2: WRITE VHDL CODE FOR 4:1 MUX & 8:1 MUX USING CASE STATEMENT & PERFORM BEHAVIOUR SIMULATION AND SYNTHESIS VHDL CODE FOR 4:1 MUX:
EXAMPLE3: : WRITE VHDL CODE FOR FULL ADDER USING TWO HALF ADDERS IN STRUCTURAL STYLE
RTL SCHEMATIC:
EXAMPLE4: WRITE VHDL CODE FOR D FLIP FLOP (+VE EDGE TRIGERRED):
RTL SCHEMATIC:
EXAMPLE5: WRITE VHDL CODE FOR 4 BIT SERIAL IN SERIAL OUT SHIFT REGISTER
RTL SCHEMATIC:
SIMULATION WAVEFORM:
A printed circuit board, or PCB, is used to mechanically support and electrically connect electronic components using conductive pathways, tracks or signal traces etched from copper sheets laminated onto a nonconductive substrate. It is also referred to as printed wiring board(PWB) or etched wiring board. Printed circuit boards are used in virtually all but the simplest commercially produced electronic devices. A PCB populated with electronic components is called a printed circuit assembly (PCA), printed circuit board assembly or PCB Assembly(PCBA). In informal use the term "PCB" is used both for bare and assembled boards, the context clarifying the meaning. Alternatives to PCBs include wire wrap and point-to-point construction. PCBs must initially be designed and laid out, but become cheaper, faster to make, and potentially more reliable for high-volume production since production and soldering of PCBs can be automated. Much of the electronics industry's PCB design, assembly, and quality control needs are set by standards published by the IPC organization.
PCB ETCHING:
PCB etching in 5 steps presented on instructables.com. A simple 5step process to etch your own printed circuit boards at home. Youll need the following ingredients:
laser printer/photocopier & transparencies copper board scrubbing pads iron rubber gloves Ferric Chloride or Ammonium Persulphate drill and drill bits
1. PCB Design and print: Design your PCB. I use anything from Adobe Illustrator to Cadsoft Eagle. Once you think everything is perfect, print it on a piece of paper and test it by placing your components over it. You have to flip horizontal your final design so that the transfer from the transparency to the copper board restores the intended design Then print it on a transparency. It has to be a laser printer or a photocopier because we want toner on the transparency. If you can, ask the guy at the print shop to make it as dark as possible (more toner). Ive noticed that Ive had the best results at the worst print shops in town. 2. Transfer the toner: Now you want to transfer the toner (mostly made of molten plastic) onto the copper board. Set the iron to silk (youll have to experiement with the temperatureit took me quite a while to consistently get good results).
Clean and rinse the board with the scrubbing pads and soap. Dry it up. Place the transparency on the copper board, place a piece of paper on top if it all and start ironing! Depending on the size of your circuit, it takes about 2-3 minutes for the copper board to get hot enough so the toner sticks to it. When you think youre good, immerse the copper board (with the transparency stuck to it) in cold water. Then you should be able to peel off the transparency while the toner remains on the copper board. If the toner did not transfer completely, you didnt iron long enough and/or didnt set the temperature high enough. If the toner transfered but is smudged on the copper board, the temperature was too high and/or you ironed for too long. You can use a Sharpie or any other permanent marker to fix parts of the circuit that did not transfer properly. 3. PCB Etch: Youre almost done. Put the gloves on, pour some etchant in a plastic or glass container and immerse the board. At room temperature, it can take up to half an hour. Mixing the solution as its etching can speed up the process. Another good way to dramatically decrease the etching time is to warm up the solution. Now I strongly discourage you to get creative with the microwave or your precious pots and pans. You can however dip the container in warm water poured from the tap. When it looks good, clean the board in running water. 4. Clean the PCB Board: Use the scrubbing pads to remove the toner from the board. You can reuse the etching solution, so just pour it back in the original container. Do not pour it down the drain! It will corrode your copper pipes Over time, the etching process will take longer and longer. When the solution becomes unusable, contact the waste management organisation in your community to know where to dispose of the chemical.
5. PCB Drill: For those of you who do not use surface mount components, youll need to drill holes in your circuit board. I use a Dremel (you can find generic versions for less than 40$). Youll need tiny drill bits (#66#60). Most places youll go to will rip you off with those tiny precise bits (10-15$ each). However, some places like Lee Valley sells them for ~$0.50 each.