INSTITUTE OF AERONAUTICAL ENGINEERING Dundigal, Hyderabad ELECTRONICS AND COMMUNICATION ENGINEERING QUESTION BANK

Similar documents
MLR INSTITUTE OF TECHNOLOGY DUNDIGAL , HYDERABAD

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Microprocessors and Interfacng. Question bank

DEPARTMENT OF ECE QUESTION BANK SUBJECT: MICROPROCESSOR AND MICROCONTROLLER UNIT-1 PART-A (2 MARKS)

KINGS DEPARTMENT OF INFORMATION TECHNOLOGY QUESTION BANK. Subject Name: Microprocessors and Microcontrollers UNIT-I 8085 MICROPROCESSOR

EC6504 MICROPROCESSOR AND MICROCONTROLLER QUESTION BANK UNIT I - THE 8086 MICROPROCESSOR PART A

PART - B (Answer all five units, 5 X 10 = 50 Marks)

Microcontroller and Embedded Systems:

Department of Electronics and Instrumentation Engineering Question Bank

EC6504 MICROPROCESSOR AND MICROCONTROLLER


QUESTION BANK CS2252 MICROPROCESSOR AND MICROCONTROLLERS

SYLLABUS UNIT - I 8086/8088 ARCHITECTURE AND INSTRUCTION SET

1. (a) Draw the internal architecture of 8085? Explain each block. (b) What are the special functions of GPRs in 8086? And explain them?

EC 6504 MICROPROCESSOR AND MICROCONTROLLER

3. (a) Explain the steps involved in the Interfacing of an I/O device (b) Explain various methods of interfacing of I/O devices.


FIFTH SEMESTER B.TECH DEGREE EXAMINATION MODEL TEST QUESTION PAPER, NOVEMBER CS 305: Microprocessor and Microcontrollers PART A

4. (a) With a neat sketch explain 8237 DMA controller and its operation? (b) With the help of basic cell explain SRAM and DRAM?

2. (a) Draw and explain the pin out diagram of (b) Explain the various operations performed by Bus Interfacing unit in 8086.

8051 Microcontroller

8051 Microcontroller

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING EC6504 MICROPROCESSOR AND MICRO CONTROLLER

VALLIAMMAI ENGINEERING COLLEGE

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture

Question Bank Microprocessor and Microcontroller

BHARATHIDASAN ENGINEERING COLLEGE. III Year / V Semester / EEE MICROPROCESSORS AND MICROCONTROLLERS (R-2013)

Department of Computer Science and Engineering

Memory organization Programming model - Program status word - register banks - Addressing modes - instruction set Programming examples.

MLR INSTITUTE OF TECHNOLOGY DUNDIGAL , HYDERABAD QUESTION BANK

MICROPROCESSORS & MICRO CONTROLLER COLLEGE OF ENGINEERING DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK

9/25/ Software & Hardware Architecture

DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING YEAR : III SEM : VI

EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I


Unit-I. 1. INTRODUCTION TO MICROCONTROLLERS. Micro controller, types, selection of a microcontroller and applications

8051 Overview and Instruction Set

Intel 8086 MICROPROCESSOR. By Y V S Murthy

VALLIAMMAI ENGINEERING COLLEGE. SRM Nagar, Kattankulathur DEPARTMENT OF COMPUTER SCIENCE ENGINEERING

INSTITUTE OF ENGINEERING AND MANAGEMENT, KOLKATA Microprocessor

S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING

CS 320. Computer Architecture Core Architecture

Module Contents of the Module Hours COs

Unit wise Question Bank UNIT-II

The Microcontroller. Lecture Set 3. Major Microcontroller Families. Example Microcontroller Families Cont. Example Microcontroller Families

Intel 8086 MICROPROCESSOR ARCHITECTURE

VARDHAMAN COLLEGE OF ENGINEERING (AUTONOMOUS) Shamshabad, Hyderabad

Microprocessor and Microcontroller question bank. 1 Distinguish between microprocessor and microcontroller.

MICROPROCESSOR PROGRAMMING AND SYSTEM DESIGN

Microcontroller Intel [Instruction Set]

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller

EC Microprocessor and Microcontroller

SRI VENKATESWARA COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF ECE EC6504 MICROPROCESSOR AND MICROCONTROLLER (REGULATION 2013)

EE6502- MICROPROCESSOR AND MICROCONTROLLER

BASIC INTERFACING CONCEPTS

icroprocessor istory of Microprocessor ntel 8086:

SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR. ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1

1. What is Microprocessor? Give the power supply & clock frequency of 8085?

8086 INTERNAL ARCHITECTURE

MODULE-1. Short Answer Questions

Mr. Sapan Naik 1. Babu Madhav Institute of Information Technology, UTU

Microprocessors 1. The 8051 Instruction Set. Microprocessors 1 1. Msc. Ivan A. Escobar Broitman

It is a program controlled semiconductor device (IC}, which fetches, decode and executes instructions.

Question Bank Unit-1

Introduction To MCS-51

ADVANCE MICROPROCESSOR & INTERFACING

CC411: Introduction To Microprocessors

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Chapter 09. Programming in Assembly

CPEG300 Embedded System Design. Lecture 6 Interrupt System

Vidyalankar T.E. Sem. V [ETRX] Microprocessors and Microcontrollers I Prelim Question Paper Solution

EC1362 Microprocessors & Microcontrollers

Code No: Set No. 1

Chapter 6 Interrupts. (I. Scott Mackenzie) By: Masud-ul-Hasan

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices,

Code segment Stack segment

8051 microcontrollers

8051 Microcontrollers

Programming of 8085 microprocessor and 8051 micro controller Study material

Module I. Microcontroller can be classified on the basis of their bits processed like 8bit MC, 16bit MC.

Program controlled semiconductor device (IC) which fetches (from memory), decodes and executes instructions.

Babu Madhav Institute of Information Technology, UTU

MCS-51 Serial Port A T 8 9 C 5 2 1

Introduction to Microprocessor

Northern India Engineering College, Delhi (GGSIP University) PAPER I

8051 Microcontroller

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY COMMUNICATION ENGINEERING REG 2008 TWO MARKS QUESTION AND ANSWERS

MODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Microcontroller and Applications Subject Code:

Embedded Controller Programming

Moodle WILLINGDON COLLEGE SANGLI (B. SC.-II) Digital Electronics

UNIT-1. It is a 16-bit Microprocessor (μp).it s ALU, internal registers works with 16bit binary word.

UNIT II OVERVIEW MICROPROCESSORS AND MICROCONTROLLERS MATERIAL. Introduction to 8086 microprocessors. Architecture of 8086 processors

UNIT-I. 1.Draw and explain the Architecture of a 8085 Microprocessor?

Assembly Language programming (2)

UNIT 2 THE 8051 INSTRUCTION SET AND PROGRAMMING

MICROPROCESSORS AND MICROCONTROLLERS MATERIAL. Features of 8051:

Department of EIE / Pondicherry Engineering College. Timer/Counters. Department of EIE / Pondicherry Engineering College 1

Figure Programming model

8051 Timers and Serial Port

C51 Family. Architectural Overview of the C51 Family. Summary

Transcription:

Course Name Course Code Class Branch INSTITUTE OF AERONAUTICAL ENGINEERING Dundigal, Hyderabad - 500 04 ELECTRONICS AND COMMUNICATION ENGINEERING QUESTION BANK : Microprocessors and Microcontrollers : A040 : III B. Tech II Semester Year : 05 0 Course Faculty : Electronics and Communication Engineering : Dr.M.Ramesh Babu, Ms.S. Ranjitha, Mr. N Papa Rao OBJECTIVES To meet the challenge of ensuring excellence in engineering education, the issue of quality needs to be addressed, debated and taken forward in a systematic manner. Accreditation is the principal means of quality assurance in higher education. The major emphasis of accreditation process is to measure the outcomes of the program that is being accredited. In line with this, Faculty of Institute of Aeronautical Engineering, Hyderabad has taken a lead in incorporating philosophy of outcome based education in the process of problem solving and career development. So, all students of the institute should understand the depth and approach of course to be taught through this question bank, which will enhance learner s learning process.. Group - A (Short Answer Questions) UNIT - I Knowledge Define Microprocessor and give the power supply & clock frequency of 05. List out few applications of microprocessor-based system. Knowledge State the difference between 05 & 0 microprocessor. Knowledge

4 Discuss about pipelining. 5 List out the allowed register pairs of 05. Knowledge List out the interrupts of 05. Knowledge List out features of 0 microprocessor. Knowledge Name the functional units of 0 microprocessor Knowledge 9 Explain the functions of an accumulator. Explain why 0 internal architecture is divided into 0 BIU & EU. Discuss the functions of BIU. Discuss the functions of EU. Name the registers of 0. Knowledge 4 Describe the flag register of 0. 5 Discuss how physical address is generated in 0. List out advantages of memory segmentation. Knowledge Evaluate the physical address, if base address is Evaluation 500H & offset address is 450H. Explain the physical memory organization of 0. 9 List the operating modes of 0. Knowledge 0 List the minimum mode signals. Knowledge List the maximum mode signals. Knowledge Explain ALE,BHE/S, DEN, DT/R. Explain READY, MN/ HOLD, and HOLDA. 4 Indicate the interrupts of 0. 5 Write about the sources of interrupts. Analysis Explain hardware interrupts. Marks Questions UNIT - II Define addressing mode. Write the names of 0 addressing Knowledge Discuss about the immediate addressing mode of 0 with examples Define & explain the use of relative plus addressing mode. Knowledge 4 Explain the instructions formats in 0. 5 Define an instruction, opcode & operands. Knowledge

Discuss the following instructions of 0. a) ADC b) AAS c) IMUL d) CBW Explain the meaning of following instructions. a) MOV BX,[4H] b) ADC AX,BX Discuss the instructions which will not affect flag registers. 9 Explain ESC, NOP & LOCK instructions of 0. 0 Explain PUSH & POP instructions. Explain XLAT instructions. Describe the - bit registers are present in 0. Distinguish the TEST & logical AND instructions. 4 Explain stack pointer & instruction pointer. 5 Distinguish the ADD & INC instructions. Explain IN & OUT instructions. Write any two address transfer instructions. Application Give two conditional jump instructions with an example. 9 Explain NEG, COMP instructions. 0 Define assembler directive. Give any two examples. Knowledge Explain DAA, AAA instructions. Explain MUL, DIV instructions. Explain rotate instructions. 4 Explain Shift instructions. 5 Define Macro with an example. Knowledge Define Procedure with an example. Knowledge Analyze the storage allocation directives. Analysis Discuss about the alignment directives. UNIT III Explain why I/O interface required for 0. List out the features of the 55(PPI). Knowledge Write how many port lines are present in 55. Application 4 Discuss in how many modes 55 can be operated. 5 Explain BSR mode of operation. Write how many I/O modes of operations present in 55. Write the applications of stepper motor. Discuss the need for ADC. 9 Write the applications of DAC 0 List out the methods available for ADC. Knowledge

Explain key bouncing. Describe how to eliminate key bouncing. Write the control word format for BSR mode. 4 Write the control word format for I/O mode. Write in which mode of I/O operation Bi-directional 5 data Calculate transfer the takes control place port explain. address of 55 if the base Apply address is Explain FFF0H. the function of handshaking signals. Distinguish between static and d yn amic RAM 4 with examples. 9 Explain the purpose of BHE and A0 pins on 4 the 0microprocessor. 0 Define Memory mapped I/O. Knowledge Define I/O mapped I/O. Knowledge Explain the purpose of CE or CS pin on a memory chip. Write the input for chip select. 4 Explain, why the interrupt and trap flags cleared as part of the interrupt response. 4 5 Explain the interrupt response. 4 Define interrupt vector table. Knowledge 4 Define interrupt service routine. Knowledge 4 Distinguish t h e d i f f e r e n c e b e t w e e n M a s k a b l e a n d Non- Maskable interrupts. 4 9 List out the interrupts of 0. Knowledge 4 0 Write the priorities of 0 interrupts. 4 Write how many interrupts can be handled by PIC. 4 List out the uses of int-0 interrupt. Knowledge 4 Explain with an example how overflow flag set. 4 4 Explain what happens when trap flag is set. 4 5 Explain why serial data transfer is preferred over parallel data transfer. 5 Define synchronous data transfer. Knowledge 5 Describe the communication. Define modem. Knowledge 9 Define communication links. Knowledge 40 Define USART. Knowledge 4 Write the use of 5 chip. 4 List out the features of 5(USART). Knowledge 4 List out the serial communication standards available. Knowledge 44 Write the most commonly used signals in RS. 45 Describe and sketch the frame format of mode word of 5

4 Distinguish between synchronous and asynchronous serial data transmission techniques. 4 Define Baud rate. Knowledge 4 Write the methods available for error correction during serial data transmission. 49 Write the specifications of RSC. 50 Explain framing error and over run error in 5. 5 Describe the status register of 5. 5 Write the use of modem control unit in 5. UNIT IV Write the differences between microprocessor and microcontroller. Discuss which ports of 05 are bit addressable. Explain why Port 0 needs pull-up resistors. 4 Write out of bytes of RAM in the 05, how many bytes are bit addressable? List them. 5 Explain how to save the status of P. in RAM location. List out the types of addressing modes in microcontroller. Knowledge Discus about I/O port expansion. Explain how external interrupts are serviced in 05 Microcontroller. 9 Discuss the flag pattern available in 05. 0 Write the value of register A after each of the following instructions. MOV A,#H RR A RR A RR A Craete SWAP List out t h e on-chip r e s o u r c e s a v a i l a b l e in Knowledge the 05 microcontroller. Write the number of register banks in 05 and say how the CPU knows which bank is currently in use. Explain the controls signals to be used, if05 microcontroller demands interfacing of external memory. 4 Write the function of the bits PSW. & PSW.4. 5 Distinguish polling and interrupt mechanism. Find the value of the PSW register after the execution of the instructions. Explain the use of SFR in 05. List all the SFRs involved in 05. Knowledge Write the addressing modes supported by 05. 9 Write one instruction each using the following 0 addressing List out the modes. instructions sets available in 05. Knowledge Synthesis a a). Immediate b). Register c). Register indirect d). Direct

Explain the following instructions in 05 micro controller. Comprehension a. SETB H b. CLR H c. SETB 9H Explain h o w 05 differentiates internal and external memory. Differentiate t h e given 05 instructions: MOVC Analyze and MOVX. 4 Explain the instructions LJMP and SJMP in 05. 5 Write the addressing mode used in the followinginstructions: MOV R, #0H and MOV R, 0H Write the result of the following code & where it is stored. MOV R4, #5H MOV Write A, #FH the content ADD of register A after the execution of the following code. CLR A ORA A, #99H CPL Write A the contents of AC, CY flags if we add 5H and 0H. UNIT V Explain the format of TMOD & TCON. Describe the Timer counter logic diagram. Define serial communication in 05. Knowledge 4 List out the advantages of serial data transfer. Knowledge 5 List the SFRs needed for serial communication in 05. Knowledge Explain the use of PCON register. Describe how serial port is used for data transfer. List out functions of SCON register of 05. Knowledge 9 Write the different serial data transmission modes in 05. 0 List the interrupts of 05. Knowledge Explain what should be loaded in TCON register to start Timer0 & Timer. Explain how many interrupts are there in 05. And name them. Write the highest priority interrupt of 05. 4 Explain which port in 05 microcontroller is bit addressable. 5 Describe the SCON register in 05. Write the format of IE register in 05. Explain under what conditions are the TI and RI bits raised.

Calculate baud rate in mode- operation. Apply. Group - II (Long Answer Questions) UNIT Explain the architecture of 0 with neat diagram. Compare 05 & 0 microprocessors. Analyze Write the size of 0 instruction queue and explain how does queue speed up the processing. 4 Explain general purpose & special purpose registers of 0. 5 Explain the flag register of 0. Discuss memory segmentation & mention its advantages. Describe the 0 microprocessor pin-diagram. Discuss about the functions of the following pins. a)test b) RQ/GT0 & RQ/GT c) QS0 & QS d) S0,S,S 9 Explain minimum mode configuration of 0 a microprocessor. 0 Explain minimum mode control signals of 0. Explain maximum mode configuration of 0 microprocessor. Explain maximum mode control signals of 0. Explain the read & write timing diagrams for maximum 4 mode Explain configuration. the read & write timing diagrams for minimum mode configuration. 5 Describe the function of the following signals. a) NMI b) c) d) RESET Describe the interrupts of 0. UNIT II Discuss the instructions formats of 0.

Explain the various addressing modes of 0 with examples. Explain Arithmetic instruction set of 0 examples. 4 Explain data transfer instructions of 0 with examples. Distinguish macros & procedures. 5 Write short notes on JUMP instructions with examples. Explain the following instructions: i. WAIT ii. HLT iii. ESC iv. NOP Write the uses of Shift & rotate instructions. Differentiate jump & loop instructions. 9 Write short notes on string instructions. 0 Discuss the instructions formats of 0. Write the logical instructions available in 0. UNIT III Describe the architecture of 55 & explain. Explain the I/O modes of operation. Explain the interfacing diagram of 55 with 0. 4 Explain BSR mode of applications. 5 Write BSR control word of 55 to set pc & pc & reset them after a time delay. Base address of 55 is F00H. Crate Explain pin diagram of 55 PPI. Write an ALP to interface stepper motor with 0. Explain the control word format of 55 in I/O & BSR mode. 9 Write a program for -bit ADC to sample analog input & store the digital value in memory. 0 Write an ALP to generate square wave. Describe the block diagram of successive approximation method and explain. Explain the interfacing diagram of ADC with 55. Explain how a stepper motor is interfaced to 0. 4 Explain how a display device interfaced with 0. 5 Discuss how a 4 4 key board matrix is connected to 55. Explain how the physical memory of 0 is organized Explain the interrupt vector table. 4 Write short notes on interrupt service routine. 4 9 Construct an Interface of two 4k EPROMS & and two 4 0 4k Explain RAM about chips the with programmed 0. Select I/O suitable & interrupt memory map. driven e I/O. Explain the interrupt sequence in 0 system. 4

Write short notes on 5 types of interrupts supported by 0. 4 Describe the 5 with neat block diagram. 5 4 Discuss how 5 is used for serial communication of data. 5 5 Explain the advantages of using the USART chips in microprocessor based systems. 5 Discuss the types of serial communication. Explain the interfacing of 5 with 0 with necessary circuit diagram Discuss the data transmission standards and their specifications the functioning of each line. 9 Write t h e M O D E M c o n t r o l lines and e xplain 0 Explain the pin structure of RSC & also discuss about voltage & current specifications of RS C. Describe the logic diagram to convert TTL to RSC conversion and RSC to TTL conversion. UNIT IV Discuss the register set of 05 and also discuss how memory and I/O addressing is done in 05. Discuss internal architecture of 05 microcontroller in detail. Describe the five addressing modes of 05 microcontroller with example. 4 Sketch and illustrate how to access external memory devices in an 05 based system. 5 Discuss the internal memory organization of the 05 microcontroller. Design an 05 based system with K bytes of program ROM and K bytes of data ROM. Discuss about the memory organization and special function registers in 05 microcontroller. 9 Describe the operation of I/O ports in 05 with neat sketch. 0 Demonstrate the functioning of A & B registers of 05. List the format of PSW register of 05 and explain each bit. UNIT V Apply Apply Knowledge Discuss in detail the various modes of operation of timers in 05. Express about external hardware interrupt in 05. Discuss about serial communication in 05 microcontroller.

4 Label the format of IE & IP formats & explain. Knowledge 5 Explain the function and operating modes with the associated registers of Timer/Counter in 05 microcontroller. Write the sequence of events that takes place when the interrupt occurs in 05. Examine the various SFRs you need while handling the Analyze timers/counters. Give the register formats. Explain the various modes of serial port in 05. 9 Discuss the format & bit definitions of SCON register. 0 Describe the TCON and TMOD registers of 05.

. Group - III (Problem solving &Analytical Questions): UNIT I Calculate the effective address & physical address of the following instructions. (a) IMUL AX, [BP + BX D] (b) SBB AL, ES:[ SI + 5D] (c) PUSH AX (d) AND AH, [SI + 4D] (e) CMPSB (f) CMPB DX, [SI] Assume CS = 5000H, DS = 000H, SS = A000H, ES = B000H, SI = 000H, DI = 000H, BP = 00H, SP = 000H, AX = 0000H, BX = 500H, CX = 000H. Calculate the physical address is represented by i) 40:5EH ii) A:00H Evaluate the physical address of the top of the stack? If the stack segment register contains 000h and the stack pointer register contains 44H. 4 Identify the memory address of the next instruction executed by the microprocessor, when operated in the real mode, for the following CS:IP combinations: a) CS = 000H and IP = 000H b) CS= 000h and IP=0000h UNIT II Apply Apply Evaluate Write a program to read ASCII code after a strobe signal is sent from a Keyboard. Develop a program to add a profit factor to each element in a cost array and puts the result in a prices array. Write an ALP for add a 5-byte number in one array to a 5 byte in another array. Put the sum in another array. Put the state of the carry flag in byte of the array that contains the sum. The first value in each array is the least significant byte of that number. 4 Write a delay loop which produces a delay of 500µsec on an 0 with 5-MHz clock. 5 Write an assembly language program to find factorial of a given number. Write an assembly language program to find sum of squares.

Write an assembly language program to find number of COURTESY IARE positive & negative numbers from a given array. Write an assembly language program to convert ASCII to BCD. 9 Write an ALP to find cube of an -bit hexadecimal number. 0 Write an ALP to display IARE MPMC LAB on the screen. Write an ALP to convert a given sixteen bit binary number to its gray equivalent. UNIT III Model a Control Words When the Port Of Intel 55A defined as follows: Port A as an O/P port, mode of the port a is mode-0, port B as an O/P port, mode of the Port B is mode-0. Construct an Interfacing DAC AD5 with an 0 CPU running at MHZ and write an assembly language program to generate a sawtooth waveform of period ms with Vmax 5V. Write an ALP for stepper motor interfacing by using loop instructions. 4 Construct an interface two chips of k PROM & four chips of k RAM with 0, according to the Following map. Analyze Apply Apply 4 ROM & F0000H-FFFFFH, RAM & D0000H- DFFFFH RAM & 4 E0000H-EFFFFH. Show t h e implementation of this memory system. 5 Illustrate the status register of 5 for the given statement. Apply Read status register and wait for DSR and TxRDY to 4 become active. One active, get character from PC keyboard using INT BH (keyboard routine). Write an ALP for to transfer the data serially. Identify the errors in receiving the data from Knowledge asynchronous mode of operation using 5. Write the sequence of instructions required to initialize 5 at address A0H and AH for the configuration below. UNIT IV Write 05 program to convert packed BCD number available in accumulator, into two ASCII numbers and save them in internal RAM locations 4H and 49H. Develop 05 program to move a block of data from external program memory to external data memory.

Use PUSH instruction to put the number H in RAM COURTESY IARE locations 4H to H. also write same program without PUSH instruction. 4 Generate a program in 05 to count number of zero bits available in a byte available in external RAM at 000h. Store zero bit count in internal RAM location 0H. 5 Write 05 program to OR the contents of port and port, put the result in external RAM location 00h. UNIT V Indicate when the TF0 flag is raised for the following program. MOV TMOD, #0H MOV TL0, #H MOV Examine TH0, the #CH TH, SETB TL value TR0 to generate a time delay of 5ms. Timer is programmable in mode. Assume that XTAL = MHz Write a for Timer to generate a square wave of khz. Assume that XTAL =.059MHz. Analyze ion Analyze