tag:blogger.com,1999:blog-832457772395584522024-03-16T06:39:43.919+05:30SATISH KASHYAPVideo lectures by IIT professors in various fields, some may not be available in nptel. Lecture PPTs by professors from prestigious institutes and GATE previous papers and video solutions by satish kashyap in subjects like electronic devices, analog circuits and digital circuits. GATE video lectures by satish kashyap will be added soon.Satish Kashyaphttp://www.blogger.com/profile/11400609355612168424noreply@blogger.comBlogger302125tag:blogger.com,1999:blog-83245777239558452.post-77875671297036951982020-08-27T02:42:00.003+05:302020-08-27T02:42:20.113+05:30DC Motor Control and PWM - Unit 17 - Review Questions & Answers from 8051 Microcontrollers & Embedded Systems by Mazidi<p><b style="background-color: #fcff01;"> SECTION 17.1: RELAYS AND OPTOISOLATORS</b></p><p>1. Give one application where would you use a relay.</p><p>2. Why do we place a driver between the microcontroller and the relay? </p><p>3. What is an NC relay?</p><p>4. Why are relays that use coils called electromechanical relays?</p><p>5. What is the advantage of a solid-state relay over EMR? </p><p>6. What is the advantage of an optoisolator over an EM relay? </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. With a relay we can use a 5 V digital system to control 12 V-120 V devices such as horns and appliances. </p><p>2. Since microcontroller I digital outputs lack sufficient current to energize the relay, we need a driver.</p><p>3. When the coil is not energized, the contact is closed. </p><p>4. When current flows through the coil, a magnetic field is created around the coil, which causes the armature to be attracted to the coil. </p><p>5. It is faster and needs less current to get energized.</p><p>6. It is smaller and can be connected to the microcontroller directly without a driver. </p><p><br /></p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 17.2: STEPPER MOTOR INTERFACING </b></p><p>1. Give the 4-step sequence of a stepper motor if we start with 0110.</p><p>2. A stepper motor with a step angle of 5 degrees has steps per revolution.</p><p>3. Why do we put a driver between the microcontroller and the stepper motor? </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. 0110, 0011, 1001, 1100 for clockwise; and 0110, 1100, 1001, 0011 for counterclockwise </p><p>2. 72</p><p>3. Because the microcontroller pins do not provide sufficient current to drive the stepper motor </p><p><br /></p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 17.3: DC MOTOR INTERFACING AND PWM</b></p><p>1. True or false. The permanent magnet field DC motor has only two leads for +ve and -ve voltages.</p><p>2. True or false. Just like a stepper motor, one can control the exact angle of a DC motor's move. </p><p>3. Why do we put a driver between the microcontroller and the DC motor?</p><p>4. How do we change a DC motor's rotation direction? </p><p>5. What is stall in a DC motor?</p><p>6. True or false. PWM allows the control of a DC motor with the same phase, but different amplitude pulses. </p><p>7. The RPM rating given for the DC motor is for __________ (no-load, loaded). </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. True </p><p>2. False</p><p>3. Since microcontroller I digital outputs lack sufficient current to drive the DC motor, we need a driver. </p><p>4. By reversing the polarity of voltages connected to the leads</p><p>5. The DC motor is stalled if the load is beyond what it can handle</p><p>6. False</p><p>7. No-load</p><p><br /></p><p><br /></p>Satish Kashyaphttp://www.blogger.com/profile/11400609355612168424noreply@blogger.com0tag:blogger.com,1999:blog-83245777239558452.post-40029115152998796182020-08-27T02:36:00.003+05:302020-08-27T02:36:19.530+05:30DS12887 RTC Interfacing and Programming - Unit 16 - Review Questions & Answers from 8051 Microcontrollers & Embedded Systems by Mazidi<p><b style="background-color: #fcff01;">SECTION 16.1: DS12887 RTC INTERFACING</b></p><p>1. True or false. All of the RAM contents of the DS12887 are nonvolatile.</p><p>2. How many bytes of RAM in the DS12887 are set aside for the clock and date? </p><p>3. How many bytes of RAM in the DS12887 are set aside for general-purpose applications?</p><p>4. True or false. The NV-RAM contents of the DS12887 can last up to 10 years without an external power source. </p><p>5. Which pin of the DS12887 is the same as the ALE pin in the 8051?</p><p>6. True or false. When the DS12887 is shipped, its oscillator is turned on. </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. True </p><p>2. 9</p><p>3. 114</p><p>4. True</p><p>5. AS </p><p>6. False </p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 16.2: DS12887 RTC PROGRAMMING IN C </b></p><p>1. True or false. The time and date are not updated during the initialization of RTC.</p><p>2. What address range is used for the time and date? </p><p>3. Give the address of the first RAM location belonging to general-purpose applications.</p><p>4. Give the C statement to set the month to October. </p><p>5. Give the C statement to set the year to 2009. </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. True </p><p>2. 0-9</p><p>3. 0EH (14 in decimal)</p><p>4. XBYTE[8]=0xOA;</p><p>5. XBYTE[09]=0x09; where the 20 part of 2009 is assumed.</p><p><br /></p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 16.3: ALARM, SQW, AND IRQ FEATURES OF THE DS12887 CHIP </b></p><p>1. Which bit of register B belongs to the SQW pin?</p><p>2. True or false. The IRQ out pin of DS12887 is active low. </p><p>3. Which bit of register B belongs to alarm interrupt?</p><p>4. Give the address locations for hh:mm:ss of the alarm. </p><p>5. If the source of activation for IRQ is alarm, then explain how the IRQ pin is activated.</p><p>6. What is the difference between the AF and AIE bits? </p><p>7. What is the difference between the PF and PIE bits? </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. D3 of D0 - D7 </p><p>2. True </p><p>3. D5</p><p>4. Byte addresses of 1, 3, 5</p><p>5. If the AIE bit of Reg B is set to 1, then the IRQ pin is activated. This happens due to the AF bit in register C going high when the alarm time and real time values match.</p><p>6. The AF bit in register C becomes high when the alarm time and real time values match, while the AIE bit of register B simply allows the AF to be directed to the IRQ pin.</p><p>7. The PF bit in register C becomes high when the edge is detected for the periodic interrupt, while the PIE bit of regĀister B simply allows the PF to be directed to the IRQ pin. </p><p><br /></p><p><br /></p>Satish Kashyaphttp://www.blogger.com/profile/11400609355612168424noreply@blogger.com0tag:blogger.com,1999:blog-83245777239558452.post-87998519361935949592020-08-27T02:29:00.004+05:302020-08-27T02:29:22.124+05:30Relay, Optoisolator, and Stepper Motor - Unit 15 - Review Questions & Answers from 8051 Microcontrollers & Embedded Systems by Mazidi<p><b style="background-color: #fcff01;"> SECTION 15.1: PROGRAMMING THE 8255 </b></p><p>1. Find the control byte if all ports are inputs.</p><p>2. Find the control byte for PC = in, PB = out, and PA = out. </p><p>3. True or false. To avoid aliases, we must decode addresses A0 - A15.</p><p>4. Can 86H be the base address for port A of the 8255?</p><p>5. Why do we use the MOVX instruction to access the ports of the 8255? </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. 9BH</p><p>2. 89H </p><p>3. True</p><p>4. It cannot since we must have Al = 0 and AO = 0 for the base address. </p><p>5. The MOVX instruction allows access to external memory and 8255 is mapped as memory-mapped I/0. </p><p><br /></p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 15.2: 8255 INTERFACING </b></p><p>1. Modify the stepper motor program to turn counterclockwise.</p><p>2. True or false. In programming the LCD via an 8255 (without checking the busy flag), port A is always an output port.</p><p>3. True or false. In the LCD connection to the 8255, we must have a long delay before issuing the next data if we are not checking the busy flag. </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. "RR A" is changed to "RL A". </p><p>2. True</p><p>3. True </p>Satish Kashyaphttp://www.blogger.com/profile/11400609355612168424noreply@blogger.com0tag:blogger.com,1999:blog-83245777239558452.post-5888351878227298992020-08-27T02:25:00.001+05:302020-08-27T02:25:06.490+05:308051 Interfacing to External Memory - Unit 14 - Review Questions & Answers from 8051 Microcontrollers & Embedded Systems by Mazidi<p><b style="background-color: #fcff01;">SECTION 14.1: SEMICONDUCTOR MEMORY </b></p><p>1. The speed of semiconductor memory is in the range of</p><p><span> </span>(a) microseconds <span> </span><span> </span>(b) milliseconds</p><p><span> </span>(c) nanoseconds <span> </span><span> </span>(d) picoseconds </p><p>2. Find the organization and chip capacity for each ROM with the indicated number of address and data pins.</p><p><span> </span>(a) 14 address, 8 data <span> </span>(b) 16 address, 8 data <span> </span>(c) 12 address, 8 data </p><p>3. Find the organization and chip capacity for each RAM with the indicated number of address and data pins.</p><p><span> </span>(a) 11 address, 1 data SRAM<span> </span> <span> </span>(b) 13 address, 4 data SRAM </p><p><span> </span>(c) 17 address, 8 data SRAM <span> <span> </span> </span>(d) 8 address, 4 data DRAM</p><p><span> </span>(e) 9 address, 1 data DRAM <span> </span><span> </span>(f) 9 address, 4 data DRAM </p><p>4. Find the capacity and number of pins set aside for address and data for memory chips with the following organizations. </p><p><span> </span>(a) 16Kx4 SRAM <span> </span>(b) 32Kx8 EPROM <span> <span> </span></span>(c) lMxl DRAM</p><p><span> </span>(d) 256Kx4 SRAM <span> </span>(e) 64Kx8 EEPROM <span> </span>(f) 1Mx4 DRAM </p><p>5. Which of the following is (are) volatile memory?</p><p><span> </span>(a) EEPROM <span> </span>(b) SRAM <span> </span>(c) DRAM <span> </span>(d) NV-RAM </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. c</p><p>2. (a) 16Kx8, 128K bits (<span> </span>b) 64Kx8, 512K <span> </span>(c) 4Kx8, 32K </p><p>3. (a) 2Kxl, 2K bits <span> </span>(b) 8Kx4, 32K <span> </span>(c) 128Kx8, lM</p><p><span> </span>(d) 64Kx4, 256K <span> </span>(e) 256Kxl, 256K <span> </span>(f) 256Kx4, lM </p><p>4. (a) 64K bits, 14 address, and 4 data <span> <span> </span></span>(b) 256K, 15 address, and 8 data</p><p><span> </span>(c) lM, 10 address, and 1 data <span> </span><span> </span><span> <span> </span> </span>(d) lM, 18 address, and 4 data</p><p><span> </span>(e) 512K, 16 address, and 8 data <span> </span><span> </span><span> </span>(f) 4M, 10 address, and 4 data </p><p>5. b, c </p><p><br /></p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 14.2: MEMORY ADDRESS DECODING</b></p><p>1. A given memory block uses addresses 4000H - 7FFFH. How many K bytes is this memory block?</p><p>2. The 74138 is a(n) ______ by ______ decoder. </p><p>3. In the 74138 give the status of G2A and G2B for the chip to be enabled.</p><p>4. In the 74138 give the status of Gl for the chip to be enabled. </p><p>5. In Example 14-6, what is the range of addresses assigned to Y5? </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. 16K bytes </p><p>2. 3, 8 </p><p>3. Both must be low.</p><p>4. Gl must be high. </p><p>5. 5000H- 5FFFH </p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 14.3: 8031/51 INTERFACING WITH EXTERNAL ROM</b> </p><p>1. If EA= GND, indicate from what source the program code is fetched.</p><p>2. If EA = Vcc' indicate from what source the program code is fetched. </p><p>3. Which port of the 8051 is used for address/ data multiplexing?</p><p>4. Which port of the 8051 provides D0 - D7? </p><p>5. Which port of the 8051 provides A0 - A7?</p><p>6. Which port of the 8051 provides A8 - A15?</p><p>7. True or false. In accessing externally stored program code, the PSEN signal is always activated. </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. From external ROM (that is off-chip) </p><p>2. From internal ROM (that is on-chip) </p><p>3. P0</p><p>4. P0</p><p>5. P0</p><p>6. P2</p><p>7. True</p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 14.4: 8051 DATA MEMORY SPACE </b></p><p>1. The 8051 has a total of _______ bytes of memory space for both program code and data.</p><p>2. All the data memory space of the 8051 is ___________ (internal, external).</p><p>3. True or false. In the 8051, program code must be read-only memory. </p><p>4. True or false. In the 8051, data memory can be read or write memory.</p><p>5. Explain the role of pins PSEN, RD, and WR in accessing external memory. </p><p>6. True or false. Every 8051 chip comes with lKB of SRAM.</p><p>7. True or false. Upon reset, access to the lKB SRAM of the DS89C4x0 is blocked. </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. 128K </p><p>2. External</p><p>3. True</p><p>4. True </p><p>5. Only PSEN is used to access external ROM containing program code, but when accessing external data memory we must use RD and WR signals. In other words, RD and WR are only for external data memory and are never used for external program ROM.</p><p>6. False </p><p>7. True </p><p><br /></p>Satish Kashyaphttp://www.blogger.com/profile/11400609355612168424noreply@blogger.com0tag:blogger.com,1999:blog-83245777239558452.post-64089153355346567272020-08-26T16:41:00.002+05:302020-08-26T16:41:19.251+05:30ADC, DAC, and Sensor Interfacing - Unit 13 - Review Questions & Answers from 8051 Microcontrollers & Embedded Systems by Mazidi<p><b style="background-color: #fcff01;"> SECTION 13.1: PARALLEL AND SERIAL ADC</b></p><div>1. In the ADC0804, the INTR signal is an ______ (input, output). </div><p>2. In the ADC0804, to begin conversion, send a(n) pulse to pin_______.</p><p>3. Which pin of the ADC0804 indicates end-of-conversion?</p><p>4. Both the ADC0804 and ADCOSOS/0809 are ________ -bit converters.</p><p>5. Indicate the direction (out, in) for each of the following pins of the ADCOSOS/0809. </p><p><span> </span>(a) A, B, C <span> </span>(b) SC <span> </span>(c) EOC</p><p>6. In the ADC0848, the INTR signal is an _______ (input, output).</p><p>7. In the ADC0848, to begin conversion, send a(n) ______ pulse to ________</p><p>8. Which pin of the ADC0848 indicates end-of-conversion? </p><p>9. The ADC0848 is a(an) _______ -bit converter.</p><p>10. True or false. While the ADC0848 has 8 pins for Dout, the MAX1112 has only one Dout pin. </p><p>11. Indicate the number of analog input channels for each of the following ADC chips.</p><p><span> </span>(a) ADC0804 <span> </span>(b) ADC0848 <span> </span>(c) MAX1112 </p><p>12. Explain how to select analog input channel for the MAXl 112. </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. Output </p><p>2. L-to-H, WR</p><p>3. INTR </p><p>4. 8 </p><p>5. (a) all in <span> </span>(b) in <span> </span>(c) out</p><p>6. Output </p><p>7. L-to-H, WR</p><p>8. INTR </p><p>9. 8 </p><p>10. True</p><p>11. (a) 1 <span> </span>(b) 8 <span> </span>(c) 8</p><p>12. We send the control byte to the DIN pin one bit at a time. </p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 13.2: DAC INTERFACING</b></p><div>1. In a DAC, input is ___________ (digital, analog) and output is _______ (digital, analog). </div><p>2. In an ADC, input is ___________ (digital, analog) and output is ________ (digital, analog).</p><p>3. DAC0808 is a(an) _______ -bit D-to-A converter. </p><p>4. (a) The output of DAC0808 is in ___________ (current, voltage).</p><p><span> </span>(b) True or false. The output of DAC0808 is ideal to drive a motor. </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. Digital, analog. </p><p>2. In ADC the input is analog, the output is digital. </p><p>3. 8 </p><p>4. (a) current (b) true </p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 13.3: SENSOR INTERFACING AND SIGNAL CONDITIONING</b></p><p>1. True or false. The transducer must be connected to signal conditioning circuitry before it is sent to the ADC.</p><p>2. The LM35 provides m V for each degree of (Fahrenheit, Celsius) temperature. </p><p>3. The LM34 provides m V for each degree of (Fahrenheit, Celsius) temperature.</p><p>4. Why do we set the </p><p>V,ef of ADC0848 to 2.56 V if the analog input is connected to the LM35? </p><p>5. In Question 4, what is the temperature if the ADC output is 0011 1001? </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. True </p><p>2. 10, Celsius.</p><p>3. 10, Fahrenheit. </p><p>4. Since ADC0848 is an 8-bit ADC, it gives us 256 steps, and 2.56 V /256 = 10 mV. LM35 produces 10 m V for each degree of temperature which matches the ADC's step size. </p><p>5. 00111001 = 57, which indicates it is 57 degrees. </p><p><br /></p><p><br /></p>Satish Kashyaphttp://www.blogger.com/profile/11400609355612168424noreply@blogger.com0tag:blogger.com,1999:blog-83245777239558452.post-17316259998843784952020-08-26T16:27:00.002+05:302020-08-26T16:27:41.600+05:30LCD and Keyboard Interfacing in 8051 - Unit 12 - Review Questions & Answers from 8051 Microcontrollers & Embedded Systems by Mazidi<p> <b style="background-color: #fcff01;">SECTION 12.1: LCD INTERFACING</b></p><p>1. The RS pin is an __________ (input, output) pin for the LCD.</p><p>2. The E pin is an ____________ (input, output) pin for the LCD.</p><p>3. The E pin requires an _____________ (H-to-L, L-to-H) pulse to latch in information at the data pins of the LCD. </p><p>4. For the LCD to recognize information at the data pins as data, RS must be set to ____________ (high, low).</p><p>5. Give the command codes for line 1, first character, and line 2, first character. </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. Input </p><p>2. Input</p><p>3. H-to-L </p><p>4. High</p><p>5. 80H and C0H </p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 12.2: KEYBOARD INTERFACING</b></p><p>1. True or false. To see if any key is pressed, all rows are grounded.</p><p>2. If D3 - DO= 0111 is the data read from the columns, which column does the pressed key belong to? </p><p>3. True or false. Key press detection and key identification require two different processes.</p><p>4. In Figure 12-6, if the rows are D3 - DO= 1110 and the columns are D3 - DO= 1110, which key is pressed?</p><p>5. True or false. To identify the pressed key, one row at a time is grounded. </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers:</span></b></p><p>1. True </p><p>2. Column3</p><p>3. True</p><p>4. 0 </p><p>5. True </p><p><br /></p>Satish Kashyaphttp://www.blogger.com/profile/11400609355612168424noreply@blogger.com0tag:blogger.com,1999:blog-83245777239558452.post-45761952765035239962020-08-26T15:45:00.001+05:302020-08-26T15:48:01.275+05:308051 Interrupts Programming in Assembly and C - Unit 11 - Review Questions & Answers from 8051 Microcontrollers & Embedded Systems by Mazidi<p> <b style="background-color: #fcff01;">SECTION 11. l: 8051 INTERRUPTS</b></p><p>1. Of the interrupt and polling methods, which one avoids tying down the microcontroller?</p><p>2. Besides reset, how many interrupts do we have in the 8051? </p><p>3. In the 8051, what memory area is assigned to the interrupt vector table? Can the programmer change the memory space assigned to the table? </p><p>4. What are the contents of register IE upon reset, and what do these contents mean?</p><p>5. Show the instruction to enable the EX0 and Timer 0 interrupts. </p><p>6. Which pin of the 8051 is assigned to the external hardware interrupt INTl? </p><p>7. What address in the interrupt vector table is assigned to the INTl and Timer 1 interrupts? </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. Interrupts </p><p>2. 5 </p><p>3. Address locations 0000 to 25H. No. They are set when the processor is designed.</p><p>4. All Os means that all interrupts are masked, and as a result no interrupts will be responded to by the 8051. </p><p>5. MOV IE, #10000011B </p><p>6. P3.3, which is pin 13 on the 40-pin DIP package</p><p>7. 0013H for INTl and OOlBH for Timer 1 </p><p><br /></p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 11.2: PROGRAMMING TIMER INTERRUPTS</b></p><p>1. True or false. There is only a single interrupt in the interrupt vector table assigned to both Timer 0 and Timer 1.</p><p>2. What address in the interrupt vector table is assigned to Timer 0? </p><p>3. Which bit of IE belongs to the timer interrupt? Show how both are enabled.</p><p>4. Assume that Timer 1 is programmed in mode 2, THl = F5H, and the IE bit for Timer 1 is enabled. Explain how the interrupt for the timer works.</p><p>5. True or false. The last two instructions of the ISR for Timer 0 are: </p><p>CLR TF0 </p><p>RETI </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. False. There is an interrupt for each of the timers, Timer O and Timer 1. </p><p>2. OOOBH</p><p>3. Bits Dl and 03 and "MOV IE, # 1 o o o 1 o 1 o B" will enable both of the timer interrupts. </p><p>4. After Timer 1 is started with instruction "SETB TRl", the timer will count up from F5H to FFH on its own while the 8051 is executing other tasks. Upon rolling over from FFH to 00, the TFl flag is raised, which will interrupt the8051 in whatever it is doing and force it to jump to memory location 00lBH to execute the ISR belonging to this interrupt. </p><p>5. False. There is no need for "CLR TF0" since the RETI instruction does that for us.</p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 11.3: PROGRAMMING EXTERNAL HARDWARE INTERRUPTS</b></p><p>1. True or false. There is a single interrupt in the interrupt vector table assigned to both external hardware interrupts</p><p>IT0 and ITl. </p><p>2. What address in the interrupt vector table is assigned to INT0 and INTl? How about the pin numbers on port 3?</p><p>3. Which bit of IE belongs to the external hardware interrupts? Show how both are enabled.</p><p>4. Assume that the IE bit for the external hardware interrupt EXl is enabled and is active low. Explain how this interrupt works when it is activated.</p><p>5. True or false. Upon reset, the external hardware interrupt is low-level triggered. </p><p>6. In Question 5, how do we make sure that a single interrupt is not recognized as multiple interrupts?</p><p>7. True or false. The last two instructions of the ISR for INT0 are: </p><p>CLR TCON.1</p><p>RETI </p><p>8. Explain the role that each of the two bits TCON.0 and TCON.2 play in the execution of external interrupt 0. </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. False. There is an interrupt for each of the external hardware interrupts of INT0 and INTl. </p><p>2. 0003H and 0013H. The pins numbered 12 (P3.2) and 13 (P3.3) on the DIP package.</p><p>3. Bits D0 and D2 and "MOV IE, #10000101B" will enable both of the external hardware interrupts. </p><p>4. Upon application of a low pulse (4 machine cycles wide) to pin P3.3, the 8051 is interrupted in whatever it is doing and jumps to ROM location 0013H to execute the ISR. </p><p>5. True</p><p>6. Make sure that the low pulse applied to pin INTl is no wider than 4 machine cycles. Or, make sure that the INTl pin is brought back to high by the time the 8051 executes the RETI instruction in the ISR.</p><p>7. False. There is no need for the "CLR TCON. 0" since the RETI instruction does that for us. </p><p>8. TCON.0 is set to high to make INTO an edge-triggered interrupt. If INT0 is edge-triggered (that is, TCON.0 is set), whenever a high-to-low pulse is applied to the INTO pin it is captured (latched) and kept by the TCON.2 bit by making TCON.2 high. While the ISR for INT0 is being serviced, TCON.2 stays high no matter how many times an H-to-L pulse is applied to pin INT0. Upon the execution of the last instruction of the ISR, which is RETI, the TCON.2 bit is cleared, indicating that the INTO pin can respond to another interrupt. </p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 11.4: PROGRAMMING THE SERIAL COMMUNICATION INTERRUPT</b></p><p>1. True or false. There is a single interrupt in the interrupt vector table assigned to both the TI and RI interrupts. </p><p>2. What address in the interrupt vector table is assigned to the serial interrupt? </p><p>3. Which bit of the IE register belongs to the serial interrupt? Show how it is enabled. </p><p>4. Assume that the IE bit for the serial interrupt is enabled. Explain how this interrupt gets activated and also explain its actions upon activation. </p><p>5. True or false. Upon reset, the serial interrupt is active and ready to go. </p><p>6. True or false. The last two instructions of the ISR for the receive interrupt are: </p><p>CLR RI</p><p>RETI </p><p>7. Answer Question 6 for the send interrupt. </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. True. There is only one interrupt for both the transfer and receive. </p><p>2. 23H</p><p>3. Bit D4 (IE.4) and "MOV IE, # 10010000B" will enable the serial interrupt. </p><p>4. The RI (received interrupt) flag is raised when the entire frame of data, including the stop bit, is received. As a result the received byte is delivered to the SBUF register and the 8051 jumps to memory location 0023H to execute the ISR belonging to this interrupt. In the serial COM interrupt service routine, we must save the SBUF contents before it is lost by the incoming data. </p><p>5. False</p><p>6. True. We must do it since the RETI instruction will not do it for the serial interrupt. </p><p>7. CLR TI</p><p><span> </span>RETI </p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 11.5: INTERRUPT PRIORITY IN THE 8051/52 </b></p><p>1. True or false. Upon reset, all interrupts have the same priority.</p><p>2. What register keeps track of interrupt priority in the 8051? Is it a bit-addressable register?</p><p>3. Which bit of IP belongs to the serial interrupt priority? Show how to assign it the highest priority. </p><p>4. Assume that the IP register contains all Os. Explain what happens if both INT0 and INTl are activated at the same time. </p><p>5. Explain what happens if a higher-priority interrupt is activated while the 8051 is serving a lower-priority interrupt (that is, executing a lower-priority ISR). </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. False. They are assigned priority according to Table 11-3. </p><p>2. IP (interrupt priority) register. Yes, it is bit-addressable.</p><p>3. Bit D4 (IP.4) and the instruction "MOV IP, #000l0000B" will do it.</p><p>4. If both are activated at the same time, INT0 is serviced first since it has a higher priority. After INT0 is serviced, INTl is serviced, assuming that the external interrupts are edge-triggered and H-to-L transitions are latched. In the case of low-level triggered interrupts, if both are activated at the same time, the INTO is serviced first; then after the 8051 has finished servicing the INT0, it scans the INT0 and INTl pins again, and if the INTl pin is still high, it will be serviced. </p><p>5. We have an interrupt inside an interrupt, meaning that the lower-priority interrupt is put on hold and the higher one is serviced. After servicing this higher-priority interrupt, the 8051 resumes servicing the lower-priority ISR. </p><p><br /></p><p><br /></p><p><br /></p>Satish Kashyaphttp://www.blogger.com/profile/11400609355612168424noreply@blogger.com0tag:blogger.com,1999:blog-83245777239558452.post-70772303139973175122020-08-26T08:14:00.004+05:302020-08-26T08:14:29.073+05:308051 Serial Port Programming in Assembly and C - Unit 10 - Review Questions & Answers from 8051 Microcontrollers & Embedded Systems by Mazidi<p><b style="background-color: #fcff01;">SECTION 10.1: BASICS OF SERIAL COMMUNICATION </b></p><p>1. The transfer of data using parallel lines is ________ (faster, slower) but ______(more expensive,less expensive). </p><p>2. True or false. Sending data to a printer is duplex.</p><p>3. True or false. In full duplex we must have two data lines, one for transfer and one for receive. </p><p>4. The start and stop bits are used in the __________(synchronous, asynchronous) method.</p><p>5. Assuming that we are transmitting the ASCII letter "E" (0100 0101 in binary) with no parity bit and one stop bit, show the sequence of bits transferred serially.</p><p>6. In Question 5, find the overhead due to framing.</p><p>7. Calculate the time it takes to transfer 10,000 characters as in Question 5 if we use 9600 bps. What percentage of time is wasted due to overhead?</p><p>8. True or false. RS232 is not TTL-compatible.</p><p>9. What voltage levels are used for binary O in RS232? </p><p>10. True or false. The 8051 has a built-in UART.</p><p>11. On the back of x86 PCs, we normally have COM port connectors.</p><p>12. The PC COM ports are designated by DOS and Windows as _______ and ____________</p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. Faster, more expensive </p><p>2. False; it is simplex. </p><p>3. True </p><p>4. Asynchronous</p><p>5. With 0100 0101 binary the bits are transmitted in the sequence: </p><p><span> </span>(a) 0 (start bit) (b) 1 (c) 0 (d) 1 (e) 0 (f) 0 (g) 0 (h) 1 (i) 0 (j) 1 (stop bit)</p><p>6. 2 bits (one for the start bit and one for the stop bit). Therefore, for each 8-bit character, a total of 10 bits is transferred.</p><p>7. 10000 x 10 = 100000 bits total bits transmitted. 100000/9600 = 10.4 seconds; 2/10 = 20Ā°/o. </p><p>8. True</p><p>9. +3 to +25 V </p><p>10. True</p><p>11. 2</p><p>12. COM 1 and COM 2 </p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 10.2: 8051 CONNECTION TO RS232</b></p><p>1. True or False: The PC COM port connector is the RS232 type.</p><p>2. Which pins of the 8051 are set aside for serial communication, and what are their functions?</p><p>3. What are line drivers such as MAX232 used for?</p><p>4. MAX232 can support _______ lines for TxD and ______ for RxD.</p><p>5. What is the advantage of the MAX233 over the MAX232 chip?</p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. True </p><p>2. Pins 10 and 11. Pin 10 is for TxD and pin 11 for RxD.</p><p>3. They are used for converting from RS232 voltage levels to TTL voltage levels and vice versa. </p><p>4. 2, 2 </p><p>5. It does not need the four capacitors that MAX232 must have.</p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 10.3: 8051 SERIAL PORT PROGRAMMING IN ASSEMBLY</b></p><div>1. Which timer of the 8051 is used to set the baud rate?</div><p>2. If XTAL = 11.0592 MHz, what frequency is used by the timer to set the baud rate? </p><p>3. Which mode of the timer is used to set the baud rate?</p><p>4. With XTAL = 11.0592 MHz, what value should be loaded into THl to have a 9600 baud rate? Give the answer in </p><p>both decimal and hex.</p><p>5. To transfer a byte of data serially, it must be placed in register __</p><p>6. SCON stands for and it is a(n) -bit register. </p><p>7. Which register is used to set the data size and other framing information such as the stop bit?</p><p>8. True or false. SCON is a bit-addressable register. </p><p>9. When is TI raised?</p><p>10 Which register has the SMOD bit, and what is its status when the 8051 is powered up? </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. Timer 1 </p><p>2. 28,800 Hz</p><p>3. Mode2 </p><p>4. -3 or FDH since 28,800 / 3 = 9,600</p><p>5. SBUF </p><p>6. Serial control, 8</p><p>7. SCON </p><p>8. False</p><p>9. During transfer of stop bit</p><p>10. PCON; it is low upon RESET. </p><p><br /></p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 10.4: PROGRAMMING THE SECOND SERIAL PORT </b></p><p>(All questions refer to the DS89C4x0 chip)</p><p>1. Upon reset, which timer is used to set the baud rate for Serial #0 and Serial #1? </p><p>2. Which pins are used for the second serial ports? </p><p>3. With XTAL = 11.0592 MHz, what value should be loaded into THl to have a 28,800 baud rate? Give the answer in</p><p>both decimal and hex. </p><p>4. To transfer a byte of data via the second serial port, it must be placed in register _______</p><p>5. SCONl refers to _____________and it is a(n) _______ -bit register. </p><p>6. Which register is used to set the data size and other framing information such as the stop bit for the second serial port?</p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. Timer 1 </p><p>2. Pins Pl.2 and Pl.3 </p><p>3. -1 of FFH</p><p>4. SBUFl </p><p>5. Serial Control 1, 8</p><p>6. SCONl</p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 10.5: SERIAL PORT PROGRAMMING IN C</b></p><p>1. How are the SFR registers accessed in C?</p><p>2. True or false. C compilers support the second serial port of the DS89C420 chip. </p><p>3. Registers SBUF and SCON are declared in C using the keyword. </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. By using the reg51.h file </p><p>2. False</p><p>3. SFR</p><p><br /></p><p><br /></p><p><br /></p>Satish Kashyaphttp://www.blogger.com/profile/11400609355612168424noreply@blogger.com0tag:blogger.com,1999:blog-83245777239558452.post-10212627344474487742020-08-26T06:56:00.000+05:302020-08-26T06:56:06.987+05:308051 Timer Programming in Assembly and C - Unit 9 - Review Questions & Answers from 8051 Microcontrollers & Embedded Systems by Mazidi<p> <b style="background-color: #fcff01;">SECTION 9.1: PROGRAMMING 8051 TIMERS</b></p><p>1. How many timers do we have in the 8051?</p><p>2. Each timer has _______ registers that are ______ bits wide. </p><p>3. TMOD register is a(n) ______ bit register.</p><p>4. True or false. The TMOD register is a bit-addressable register.</p><p>5. Indicate the selection made in the instruction "MOV TMOD, #20H". </p><p>6. In mode 1, the counter rolls over when it goes from ______ to ______</p><p>7. In mode 2, the counter rolls over when it goes from _______ to ________</p><p>8. In the instruction "MOV THl, #-200", find the hex value for the TH register.</p><p>9. To get a 2-ms delay, what number should be loaded into TH, TL using mode 1? Assume that XTAL = 11.0592 MHz. </p><p>10. To get a 100-Āµs delay, what number should be loaded into the TH register using mode 2? Assume XTAL = 11.0592 MHz. </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. Two </p><p>2. 2, 8 </p><p>3. 8 </p><p>4. False</p><p>5. 0010 0000 indicates Timer 1, mode 2, software start and stop, and using XTAL for frequency. </p><p>6. FFFFH to 0000</p><p>7. FFH to 00</p><p>8. -200 is 38H; therefore, THl = 38H </p><p>9. 2 ms/1.085 ms= 1843 = 0733H where TH= 07H and TL= 33H</p><p>10. 100 ms/1.085 ms= 92 or 5CH; therefore, TH= 5CH </p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 9.2: COUNTER PROGRAMMING</b> </p><p>1. Who provides the clock pulses to 8051 timers if C/T = 0?</p><p>2. Who provides the clock pulses to 8051 timers if C/T = 1? </p><p>3. Does the discussion in Section 9.1 apply to timers if C/T= 1?</p><p>4. What must be done to allow P3.4 to be used as an input for Tl, and why? </p><p>5. What is the equivalent of the following instruction? "SETB TCON. 6" </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. The crystal attached to the 8051 </p><p>2. The clock source for the timers comes from pins TO and Tl. </p><p>3. Yes </p><p>4. We must use the instruction "SETB P3. 4" to configure the Tl pin as input, which allows the clocks to come from an external source. This is because all ports are configured as output upon reset. </p><p>5. SETB TRl </p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 9.3: PROGRAMMING TIMERS 0 AND 1 IN 8051 C</b></p><p>1. Who provides the clock pulses to 8051 timers if C/T = O?</p><p>2. Indicate the selection made in the statement "TMOD = Ox20". </p><p>3. In mode 1, the counter rolls over when it goes from _____ to ___________</p><p>4. In mode 2, the counter rolls over when it goes from ______ to ________ </p><p>5. In the statement "THl = -200", find the hex value for the TH register.</p><p>6. TFO and TFl are part of register ____________ </p><p>7. In Question 6, is the register bit-addressable?</p><p>8. Show how to monitor the TFl flag for high in 8051 C. </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. The crystal attached to the 8051 </p><p>2. Timer 2, mode 2, 8-bit auto reload </p><p>3. FFFFH to O </p><p>4. FFH to O </p><p>5. 38H </p><p>6. TMOD </p><p>7. Yes</p><p>8. while (TF1==0);</p><p><br /></p><p><br /></p>Satish Kashyaphttp://www.blogger.com/profile/11400609355612168424noreply@blogger.com0tag:blogger.com,1999:blog-83245777239558452.post-7884398548616191132020-08-26T06:37:00.006+05:302020-08-26T06:37:52.273+05:308051 Hardware Connection and Intel Hex File - Unit 8 - Review Questions & Answers from 8051 Microcontrollers & Embedded Systems by Mazidi<p><b style="background-color: #fcff01;">SECTION 8.1: PIN DESCRIPTION OF THE 8051</b></p><p>1. A given AT89C51 chip has a speed of 16 MHz. What is the range of frequency that can be applied to the XTALl and XTAL2 pins? </p><p>2. Which pin is used to inform the 8051 that the on-chip ROM contains the program?</p><p>3. Upon power-up, the program counter (PC) has a value of ________</p><p>4. Upon power-up, the 8051 fetches the first opcode from ROM address location _______</p><p>5. Which 8051 port needs pull-up resistors to function as an I/0 port? </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. From Oto 16 MHz, but no more than 16 MHz </p><p>2. EA bar</p><p>3. PC= 0000 </p><p>4. 0000</p><p>5. Port O </p><p><br /></p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 8.2: DESIGN AND TEST OF DS89C4x0 TRAINER </b></p><p>1. True or false. The DS89C4x0 is an 8052 chip.</p><p>2. Which pin is used for reset? </p><p>3. What is the status of the reset pin when it is not activated?</p><p>4. What kind of ROM is used in the DS89C4x0 chip? </p><p>5. The loader for the DS89C4x0 works with the __________ (serial, parallel) port.</p><p>6. Give two reasons that the DS89C4x0 is preferable over 89C51 chips.</p><p>7. In the DS89C4x0 Trainer, what is the role of the Prog/Run switch? </p><p>8. What is the highest frequency that we can connect to the DS89C420/30?</p><p>9. True or false. The DS89C4x0 can download the file into its ROM only if it is in Intel hex file format. </p><p>10. Which command is used to erase the contents of ROM in the DS89C4x0 chip?</p><p>11. Which command is used to load the ROM in the DS89C4x0 chip?</p><p>12. Which command is used to dump the contents of ROM in the DS89C4x0 chip? </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. True </p><p>2. Pin 9</p><p>3. Low </p><p>4. Flash</p><p>5. Serial </p><p>6. </p><p><span> </span>(a) It comes with a loader inside the chip </p><p><span> </span>(b) it has two serial ports</p><p>7. The SW allows to load the program or to run it. </p><p>8. 33MHz</p><p>9. True </p><p>10. >K </p><p>11. >L</p><p>12. >D </p><p><br /></p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 8.3: EXPLAINING THE INTEL HEX FILE </b></p><p>1. True or false. The Intel hex file uses the checksum byte method to ensure data integrity.</p><p>2. The first byte of a line in the Intel hex file represents _________</p><p>3. The last byte of a line in the Intel hex file represents __________</p><p>4. In the TT field of the Intel hex file, we have 00. What does it indicate? </p><p>5. Find the checksum byte for the following values: 22H, 76H, SFH, 8CH, 99H.</p><p>6. In Question 5, add all the values and the checksum byte. What do you get? </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. True </p><p>2. The number of bytes of data in the line</p><p>3. Checksum byte </p><p>4. 00 means this is not the last line and there are more lines of data to be followed.</p><p>5. 22H + 76H + 5FH +SCH+ 99H = 21CH. </p><p><span> </span>Dropping the carries we have lCH and its 2's complement is E4H. </p><p>6. 22H + 76H + 5FH + SCH + 99H + E4 = 300H. </p><p><span> </span>Dropping the carries we have 00, which means data is not corrupted</p><p><br /></p>Satish Kashyaphttp://www.blogger.com/profile/11400609355612168424noreply@blogger.com0tag:blogger.com,1999:blog-83245777239558452.post-84360166966561226512020-08-24T18:34:00.006+05:302020-08-26T06:42:31.027+05:308051 Programming in C - Unit 7 - Review Questions & Answers from 8051 Microcontrollers & Embedded Systems by Mazidi<p><b style="background-color: #fcff01;">SECTION 7.1: DATA TYPES AND TIME DELAY IN 8051 C</b></p><p>1. Give the magnitude of the unsigned char and signed char data types.</p><p>2. Give the magnitude of the unsigned int and signed int data types. </p><p>3. If we are declaring a variable for a person's age, we should use the________ data type.</p><p>4. True or false. Using a for loop to create a time delay is not recommended if you want your code be <span> </span><span> </span><span> </span>portable to other 8051 versions.</p><p>5. Give three factors that can affect the delay size. </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. 0 to 255 for unsigned char and-128 to +127 for signed char </p><p>2. 0 to 65,535 for unsigned int and -32,768 to +32,767 for signed int</p><p>3. Unsigned char </p><p>4. True</p><p>5. (a) Crystal frequency of 8051 system, (b) 8051 machine cycle timing, and (c) compiler use for 8051 C</p><p><br /></p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 7.2: I/0 PROGRAMMING IN 8051 C</b></p><p>1. The address of Pl is ____________</p><p>2. Write a short program that toggles all bits of P2.</p><p>3. Write a short program that toggles only bit Pl.0 </p><p>4. True or false. The sbit data type is used for both SFR and RAM single-bit addressable locations.</p><p>5. True or false. The bit data type is used only for RAM single-bit addressable locations.</p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. 90H </p><p>2. #include <reg51.h></p><p>void main() </p><p>{ </p><p>} </p><p>P2 = Ox55;</p><p>P2 = OxAA </p><p>3. #include <reg51.h></p><p>shit Pl Obit = Pl "0; </p><p>void main() </p><p>{ </p><p>} </p><p>PlObit = O;</p><p>PlObit = 1; </p><p>4. False, only to SFR bit</p><p>5. True </p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 7.3: LOGIC OPERATIONS IN 8051 C </b></p><p>1. Find the content of Pl after the following C code in each case. </p><p><span> </span>(a) Pl=Ox37&0xCA; <span> </span></p><p><span> </span>(b) Pl=Ox37 ! OxCA; </p><p><span> </span>(c) Pl=Ox37 ^ 0xCA; </p><p>2. To mask certain bits we must AND them with _____________</p><p>3. To set high certain bits we must OR them with ____________</p><p>4. Ex-ORing a value with itself results in __________</p><p>5. Find the contents of P2 after execution of the following code. </p><p><span> </span>P2=0;</p><p><span> </span>P2=P2 ! 0x99;</p><p><span> </span>P2= ~P2; </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. (a) 02 <span> </span>(b) FFH <span> </span>(c) FDH </p><p>2. Zeros</p><p>3. One</p><p>4. All zeros</p><p>5. 66H </p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 7.4: DATA CONVERSION PROGRAMS IN 8051 C</b></p><p>1. For the following decimal numbers, give the packed BCD and unpacked BCD representations.</p><p><span> </span>(a)15 <span> </span>(b)99 </p><p>2. Show the binary and hex formats for "76" and its BCD version.</p><p>3. 67H in BCD when converted to ASCII is _______H and _______H. </p><p>4. Does the following convert unpacked BCD in register A to ASCII? </p><p><span> </span>mydata = 0x09 + 0x30; </p><p>5. Why is the use of packed BCD preferable to ASCII?</p><p>6. Which one takes more memory space: packed BCD or ASCII? </p><p>7. In Question 6, which is more universal?</p><p>8. Find the checksum byte for the following values; 22H, 76H, 5FH, 8CH, 99H. </p><p>9. To test data integrity, we add them together, including the checksum byte. Then drop the carries. The result must be equal to _______ if the data is not corrupted. </p><p>10. An ADC provides an input of 0010 0110. What happens if we output that to the screen? </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. (a) 15H = 0001 0101 packed BCD, 0000 0001,0000 0101 unpacked BCD </p><p><span> </span>(b) 99H = 1001 1001 packed BCD, 0000 1001,0000 1001 unpacked BCD</p><p>2. 3736H = 00110111 00110110B and in BCD we have 76H = 0111 OllOB</p><p>3. 36H,37H </p><p>4. Yes, since A = 39H</p><p>5. Space savings </p><p>6. ASCII</p><p>7. ASCII</p><p>8. 21CH</p><p>9. 00 </p><p>10. First convert from binary to decimal, then to ASCII, then send to screen. </p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 7.5: ACCESSING CODE ROM SPACE IN 8051 C </b></p><p>1. The 8051 has _____ bytes of data RAM, while the 8052 has ________ bytes.</p><p>2. The 8051 has _______K bytes of code space and _______K bytes of external data space. </p><p>3. True or false. The code space can be used for data but the external data space cannot be used for code.</p><p>4. Which space would you use to declare the following values for 8051 C? </p><p><span> </span>(a) the number of days in the week</p><p><span> </span>(b) the number of months in a year </p><p><span> </span>(c) a counter for a delay</p><p>5. In 8051 C, we should not use more than 100 bytes of the RAM data space for variables. Why? </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. 128, 256 </p><p>2. 64K, 64K</p><p>3. True </p><p>4. (a) data space, (b) data space, (c) RAM space</p><p>5. The compiler starts storing variables in code space. </p><p><br /></p><p><br /></p>Satish Kashyaphttp://www.blogger.com/profile/11400609355612168424noreply@blogger.com0tag:blogger.com,1999:blog-83245777239558452.post-67734223752933112562020-08-24T15:19:00.007+05:302020-08-27T02:43:23.871+05:30Arithmetic, Logic Instructions, and Programs - Unit 6 - Review Questions & Answers from 8051 Microcontrollers & Embedded Systems by Mazidi<p><b style="background-color: #fcff01;">SECTION 6.1: ARITHMETIC INSTRUCTIONS</b></p><p>1. In multiplication of two bytes in the 8051, we must place one byte in register and the other in register </p><p>2. In unsigned byte-by-byte multiplication, the product will be placed in register(s) ____________</p><p>3. Is this a valid 8051 instruction? "MUL A, Rl". Explain your answer. </p><p>4. In byte/byte division, the numerator must be placed in _____ register and the denominator in ___ register </p><p>5. In unsigned byte/byte division, the quotient will be placed in ____ register and the remainder in _____ register </p><p>6. Is this a valid 8051 instruction? "DIV A, Rl". Explain your answer.</p><p>7. The instruction "ADD A, source" places the sum in ____________ </p><p>8. Why is the following ADD instruction illegal? </p><p><span> </span>"ADD Rl, R2" </p><p>9. Rewrite the instruction above in correct form.</p><p>10. The instruction "ADDC A, source" places the sum in ________</p><p>11. Find the value of the A and CY flags in each of the following. </p><p><span> </span>(a) MOV A, #4FH <span> </span></p><p><span> </span><span> </span>ADD A,#OBlH<span> </span></p><p><span> </span>(b) MOV A, #9CH</p><p><span> </span><span> </span> ADD A,#63H </p><p>12. Show how the CPU would subtract 05H from 43H.</p><p>13. If CY= 1, A= 95H, and B = 4FH prior to the execution of "SUBB A, B", what will be the contents of A after the subtraction? </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. A, B </p><p>2. A, B</p><p>3. No. We must use registers A and B for this operation. </p><p>4. A, B </p><p>5. A, B</p><p>6. No. We must use registers A and B for this operation. </p><p>7. A, the accumulator</p><p>8. No. We must use registers A and B for this operation. </p><p>9. MOV A, Rl </p><p>ADD A,R2 </p><p>10. A, the accumulator</p><p>11. (a) A= 00 and CY= 1 (b) A= FF and CY= 0 </p><p>12. 43H = 0100 0011 and -O5H (in 2's complement ) 0100 0011 if both added then</p><p><span> </span>the result is 3EH = 0011 1110 </p><p>13. A = 95H - 4FH - 1 = 45H </p><p><br /></p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 6.2: SIGNED NUMBER CONCEPTS AND ARITHMETIC OPERATIONS</b> </p><p>1. In an 8-bit operand, bit ___ is used for the sign bit.</p><p>2. Convert -16H to its 2's complement representation. </p><p>3. The range of byte-sized signed operands is -_____to + ______</p><p>4. Show +9 and -9 in binary. </p><p>5. Explain the difference between a carry and an overflow. </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. D7 </p><p>2. 16H is 00010110 in binary and its 2's complement is 1110 1010 or -16H = EA in hex.</p><p>3. -128 to +127</p><p>4. +9 = 00001001 and -9 = 11110111 or F7 in hex.</p><p>5. An overflow is a carry into the sign bit (D7), but the carry is a carry out of register (D7). </p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 6.3: LOGIC AND COMPARE INSTRUCTIONS</b></p><p>1. Find the content of register A after the following code in each case. </p><p><span> </span>(a) MOV A, #37H </p><p><span> <span> </span></span>ANL A,#OCAH</p><p><span> </span>(b) MOV A, #37H </p><p><span> </span><span> </span>ORL A,#OCAH</p><p><span> </span>(c) MOV A, #37H</p><p> <span> </span><span> </span>XRL A,#OCAH </p><p>2. To mask certain bits of the accumulator we must ANL it with ______ </p><p>3. To set certain bits of the accumulator to 1 we must ORL it with _______</p><p>4. XRing an operand with itself results in __________</p><p>5. True or false. The CJNE instruction alters the contents of its operands. </p><p>6. What value must R4 have in order for the following instruction not to jump? </p><p><span> </span>CJNE R4,#53,0VER </p><p>7. Find the contents of register A after execution of the following code. </p><p><span> </span>CLR A</p><p><span> </span>ORL A,#99H</p><p><span> </span>CPL A </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. (a) 02 (b) FFH (c) FDH </p><p>2. Zeros</p><p>3. One</p><p>4. All zeros</p><p>5. False</p><p>6. #53</p><p>7. 66H </p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 6.4: ROTATE INSTRUCTION AND DATA SERIALIZATION </b></p><p>1. What is the value of register A after each of the following instructions? </p><p>MOV A, #25H</p><p>RR A </p><p>RR A </p><p>RR A </p><p>RR A </p><p>2. What is the value of register A after each of the following instructions? </p><p>MOV A, #A2H</p><p>RL A </p><p>RL A </p><p>RL A </p><p>RL A </p><p>3. What is the value of register A after each of the following instructions? </p><p>CLR A</p><p>SETB C </p><p>RRC A</p><p>SETB C</p><p>RRC A </p><p>4. Why does "RLC Rl" give an error in the 8051?</p><p>5. What is in register A after the execution of the following code? </p><p>MOV A, #85H</p><p>SWAP A</p><p>ANL A,#OFOH </p><p>6. Find the status of the CY flag after the following code. </p><p>CLR A</p><p>ADD A, #OFFH</p><p>JNC OVER </p><p>CPL C</p><p>OVER: </p><p>7. Find the status of the CY flag after the following code. </p><p>OVER: </p><p>CLR C</p><p>JNC OVER</p><p>SETB C </p><p>8. Find the status of the CY flag after the following code. </p><p>OVER: </p><p>CLR C</p><p>JC OVER</p><p>CPL C </p><p>9. Show how to save the status of P2.7 in RAM bit location 31.</p><p>10. Show how to move the status of RAM bit location 09 to Pl.4. </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. 52H </p><p>2. 2AH</p><p>3. COH</p><p>4. Because all the rotate instructions work with the accumulator only </p><p>5. SOH</p><p>6. CY= 0</p><p>7. CY= 1 </p><p>8. CY= 1</p><p>9. MOV C, P2. 7 ; save status of P2. 7 on CY </p><p>MOV 31,C ;save carry in RAM bit location 06</p><p>10. MOV C, 9 ;save status of RAM bit 09 in CY </p><p>MOV Pl.4,C ;save carry in Pl.4 </p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 6.5: BCD, ASCII, AND OTHER APPLICATION PROGRAMS</b></p><p>1. For the following decimal numbers, give the packed BCD and unpacked BCD representations.</p><p>(a)lS (b)99 </p><p>2. Show the binary and hex formats for "76" and its BCD version.</p><p>3. Does the register A have BCD data after the following instruction is executed? </p><p>MOV A,#54 </p><p>4. 67H in BCD when converted to ASCII is H and H.</p><p>5. Does the following convert unpacked BCD in register A to ASCII? </p><p>MOV A,#09</p><p>ADD A,#30H </p><p>6. The checksum byte method is used to test data integrity in (RAM, ROM). </p><p>7. Find the checksum byte for the following hex values: 88H, 99H, AAH, BBH, CCH, DDH</p><p>8. True or false. If we add all the bytes, including </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. (a) 15H = 0001 0101 packed BCD, 0000 0001,0000 0101 unpacked BCD </p><p><span> </span>(b) 99H = 10011001 packed BCD, 00001001,0000 1001 unpacked BCD </p><p>2. 3736H = 00110111 00110110B and in BCD we have 76H = 0111 OllOB</p><p>3. No. We need to write it 54H (with the H) or 01010100B to make it in BCD. The value 54 without the "H" is interpreted as 36H by the assembler.</p><p>4. 36H,37H </p><p>5. Yes, since A= 39H</p><p>6. ROM </p><p>7. 88H + 99H + AAH + BBH + CCH + DDH = 42FH. Dropping the carries we have 2FH, and its 2's complement is DlH. </p><p>8. False </p><p><br /></p><p><br /></p>Satish Kashyaphttp://www.blogger.com/profile/11400609355612168424noreply@blogger.com0tag:blogger.com,1999:blog-83245777239558452.post-40331817614327026032020-08-24T15:01:00.007+05:302020-08-27T02:44:18.370+05:308051 Addressing Modes - Unit 5 - Review Questions & Answers from 8051 Microcontrollers & Embedded Systems by Mazidi<p><b style="background-color: #fcff01;">SECTION 5.1: IMMEDIATE AND REGISTER ADDRESSING MODES </b></p><p>1. Can the programmer of a microcontroller make up new addressing modes?</p><p>2. Show the instruction to load 1000 0000 (binary) into R3. </p><p>3. Why is the following invalid? </p><p><span> </span>"MOV R2, DPTR" </p><p>4. True or false. DPTR is a 16-bit register that is also accessible in low-byte and high-byte formats.</p><p>5. Is the PC (program counter) also available in low-byte and high-byte formats? </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. No</p><p>2. MOV R3,#10000000B</p><p>3. Source and destination registers' sizes do not match.</p><p>4. True </p><p>5. No </p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 5.2: ACCESSING MEMORY USING VARIOUS ADDRESSING MODES </b></p><p>1. The instruction "MOV A, 40H" uses addressing ________mode. Why? </p><p>2. What address is assigned to register R2 of bank O?</p><p>3. What address is assigned to register R2 of bank 2?</p><p>4. What address is assigned to register A? </p><p>5. Which registers are allowed to be used for register indirect addressing mode if the data is in on-chip RAM? </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. Direct; because there is no"#" sign </p><p>2. 02</p><p>3. 12H </p><p>4. EOH</p><p>5. RO and Rl </p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 5.3: BIT ADDRESSES FOR 1/0 AND RAM</b></p><p>1. True or false. All I/0 ports of the 8051 are bit-addressable.</p><p>2. True or false. All registers of the 8051 are bit-addressable. </p><p>3. True or false. All RAM locations of the 8051 are bit-addressable.</p><p>4. Indicate which of the following registers are bit-addressable. </p><p><span> </span>(a) A <span> </span>(b) B <span> </span>(c) R4 <span> </span>(d) PSW <span> </span>(e) R7</p><p>5. Of the 128 bytes of RAM in the 8051, how many bytes are bit-addressable? List them.</p><p>6. How would you check to see whether bit DO of R3 is high or low? </p><p>7. Find out to which byte each of the following bits belongs. Give the address of the RAM byte in hex. </p><p><span> </span>(a) SETB 2 0 <span> </span>(b) CLR 32 <span> </span>(c) SETB 12H <span> </span>(d) SETB 95H <span> </span>(e) SETB OE6H </p><p>8. While bit addresses 00 - 7FH belong to _______________ and bit addresses 80 - F7H belong </p><p>to _________________</p><p>9. True or false. PO, Pl, P2, and P3 are part of SFR. </p><p>10. True or false. Register ACC is bit-addressable. </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. True </p><p>2. False</p><p>3. False</p><p>4. A, B, and PSW</p><p>5. 16 bytes are bit-addressable; they are from byte location 20H to 2FH.</p><p>6. MOV A,R3 </p><p>JNBACC.O</p><p>7. For (a), (b), and (c) use Figure 5-1. </p><p>(a) RAM byte 22H, bit 04</p><p>(b) RAM byte 24H, bit DO </p><p>(c) RAM byte 22H, bit 02</p><p>For (d) and (e) use </p><p>Figure 5-2. (d) SETB Pl.5 (e) SEIB ACC.6 </p><p>8. RAM bytes 00 - 20H, special function registers.</p><p>9. True </p><p>10. True </p><p><br /></p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 5.4: EXTRA 128-BYTE ON-CHIP RAM IN 8052 </b></p><p>1. True or false. The 8052 is an upgraded version of the 8051.</p><p>2. True or false. The 8052 has a total of 256 bytes of on-chip RAM in addition to the SFRs. </p><p>3. True or false. The extra 128 bytes of RAM in the 8052 is physically the same RAM as the SFR.</p><p>4. Give the address for the upper RAM of the 8052.</p><p>5. Show how to put value 99H into RAM location F6H of upper RAM in the 8052. </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. True</p><p>2. True </p><p>3. False </p><p>4. 80-FFH</p><p>5. MOV A, #99H </p><p><span> </span>MOV RO, #OF6H</p><p><span> </span>MOV @RO,A </p><p><br /></p>Satish Kashyaphttp://www.blogger.com/profile/11400609355612168424noreply@blogger.com0tag:blogger.com,1999:blog-83245777239558452.post-86967034199184594002020-08-24T14:52:00.003+05:302020-08-27T02:44:47.561+05:30I/O Port Programming - Unit 4 - Review Questions & Answers from 8051 Microcontrollers & Embedded Systems by Mazidi<p><b style="background-color: #fcff01;">SECTION 4.1: 8051 I/0 PROGRAMMING</b></p><p>1. There are a total of ports in the 8051 and each has bits.</p><p>2. True or false. All of the 8051 ports can be used for both input and output. </p><p>3. Which 8051 ports need pull-up resistors to function as an I/0 port?</p><p>4. True or false. Upon power-up, the 1/0 pins are configured as output ports.</p><p>5. Show simple statements to send 99H to ports Pl and P2. </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. 4, 8. </p><p>2. True </p><p>3. PO</p><p>4. False</p><p>5. MOV Pl,#99H </p><p><span> </span>MOVP2,#99H</p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 4.2: 1/0 BIT MANIPULATION PROGRAMMING</b></p><p>1. True or false. The instruction "SETB P2. 1" makes pin P2.1 high while leaving other bits of P2 unchanged.</p><p>2. Show one way to toggle the pin Pl.7 continuously using 8051 instructions.</p><p>3. Using the instruction" JNB P2 . 5, HERE" assumes that bit P2.5 is an (input, output).</p><p>4. Write instructions to get the status of P2.7 and put it on P2.0. </p><p>5. Write instructions to toggle both bits of Pl.7 and Pl.O continuously. </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. True </p><p>2. Hl: CPL Pl.7</p><p><span> </span>SJMP Hl </p><p>3. Input</p><p>4. MOV C,P2.7 </p><p><span> </span>MOV P2.0,C</p><p>5. Hl: CPL Pl.7 </p><p><span> </span>CPL Pl.O</p><p><span></span></p><p><span> </span>SJMP Hl </p>Satish Kashyaphttp://www.blogger.com/profile/11400609355612168424noreply@blogger.com0tag:blogger.com,1999:blog-83245777239558452.post-54426837082692740972020-08-24T14:47:00.002+05:302020-08-27T02:45:19.345+05:30Jump, Loop, and Call Instructions - Unit 3 - Review Questions & Answers from 8051 Microcontrollers & Embedded Systems by Mazidi<p><b style="background-color: #fcff01;"> SECTION 3.1: LOOP AND JUMP INSTRUCTIONS</b></p><p>1. The mnemonic DJNZ stands for _</p><p>2. True or false. "DJNZ R5,BACK" combines a decrement and a jump in a single instruction. </p><p>3. "JNC HERE" is a -byte instruction.</p><p>4. In "JZ NEXT", which register's content is checked to see if it is zero? </p><p>5. LJMP is a -byte instruction. </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. Decrement and jump if not zero </p><p>2. True </p><p>3. 2 </p><p>4. A</p><p>5. 3 </p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 3.2: CALL INSTRUCTIONS</b></p><p>1. What do the mnemonics "LCALL" and" A CALL" stand for?</p><p>2. True or false. In the 8051, control can be transferred anywhere within the 64K bytes of code space if using the </p><p>LCALL instruction.</p><p>3. How does the CPU know where to return to after executing the RET instruction?</p><p>4. Describe briefly the function of the RET instruction.</p><p>5. The LCALL instruction is a -byte instruction. </p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. Long CALL and Absolute CALL </p><p>2. True</p><p>3. The address of where to return is in the stack. </p><p>4. Upon executing the RET instruction, the CPU pops off the top two bytes of the stack into the program counter (PC)</p><p>register and starts to execute from this new location. </p><p>5. 3 </p><p><br /></p><p><b style="background-color: #fcff01;">SECTION 3.3: TIME DELAY FOR VARIOUS 8051 CHIPS</b></p><p>1. True or false. In the 8051, the machine cycle lasts 12 clock cycles of the crystal frequency.</p><p>2. The minimum number of machine </p><p>cycles needed to execute an 8051 instruction is _ </p><p>3. For Question 2, what is the maximum number of cycles needed, and for which instructions?</p><p>4. Find the machine cycle for a crystal frequency of 12 MHz. </p><p>5. Assuming a crystal frequency of 12 MHz, find the time delay associated with the loop section of the following</p><p>DELAY subroutine. </p><p>DELAY: MOV R3,#100</p><p>HERE: NOP </p><p>NOP</p><p>NOP </p><p>DJNZ R3 , HERE</p><p>RET </p><p>6. True or false. In the DS89C420/30, the machine cycle lasts 12 clock cycles of the crystal frequency.</p><p>7. Find the machine cycle for a DS89C420/30 if the crystal frequency is 11.0592 MHz. </p><p><br /></p><p><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p>1. True </p><p>2. 1</p><p>3. MUL and DIV each take 4 machine cycles. </p><p>4. 12 MHz I 12 = 1 MHz, and MC= 1/1 MHz= 1 Āµs.</p><p>5. [100(1 + 1 + 1 + 2)] x 1 Āµs = 500 Āµs = 0.5 milliseconds.</p><p>6. False. It takes 1 clock. </p><p>7. 11.0592 MHz/1 = 11.0592 MHz; machine cycle is 1/11.0592 MHz= 0.0904 Āµs = 90.4 ns </p>Satish Kashyaphttp://www.blogger.com/profile/11400609355612168424noreply@blogger.com0tag:blogger.com,1999:blog-83245777239558452.post-67500765327408545222020-08-24T14:35:00.010+05:302020-08-27T02:45:54.837+05:308051 Assembly Language Programming - Unit 2 - Review Questions & Answers from 8051 Microcontrollers & Embedded Systems by Mazidi<p style="text-align: center;"> <b style="color: red; font-size: xx-large; text-align: center;">Unit - 2: </b><span style="color: red; font-size: xx-large;"><b>8051 Assembly Language Programming</b></span></p><div><span style="color: #ff00fe; font-size: x-large;"><b><br /></b></span></div><div><span style="color: #ff00fe; font-size: x-large;"><b style="background-color: #fcff01; color: black; font-size: medium;">SECTION 2.1: INSIDE THE 8051</b><b><br /></b></span>
<p>1. Write the instructions to move value 34H into register A and value 3FH into register B, then add them together. </p><p>2. Write the instructions to add the values 16H and CDH. Place the result in register R2. </p><p> 3. True or false. No value can be moved directly into registers RO - R7. </p><p>4. What is the largest hex value that can be moved into an 8-bit register? What is the decimal equivalent of the hex value? </p><p>5. The vast majority of registers in 8051 are bits.</p>
</div><div><br /></div><div><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></div><div><p>1. MOV A,#34H </p><p>MOVB,#3FH</p><p>ADDA,B </p><p>2. MOV A,#16H</p><p>ADDA,#OCDH</p><p>MOVR2,A </p><p>3. False</p><p>4. FF hex and 255 in decimal </p><p>5. 8 </p><p><br /></p></div><div><b style="background-color: #fcff01;">SECTION 2.2: INTRODUCTION TO 8051 ASSEMBLY PROGRAMMING</b></div><div><span style="color: #ff00fe; font-size: x-large;"><span style="color: black; font-size: medium;"><br /></span></span></div><div><span><span><p style="color: black; font-size: medium;">1. What is the purpose of pseudo-instructions? </p><p style="color: black; font-size: medium;">2. Are translated by the assembler into machine code, whereas are not. </p><p style="color: black; font-size: medium;">3. (True or False) Assembly language is a high-level language. </p><p style="color: black; font-size: medium;">4. Which of the following produces opcode? </p><p style="color: black; font-size: medium;"><span> </span>(a) ADD A,R2 </p><p style="color: black; font-size: medium;"><span> </span>(b) MOV A,#12 </p><p style="color: black; font-size: medium;"><span> </span>(c) ORG 2000H </p><p style="color: black; font-size: medium;"><span> </span>(d) SJMP HERE </p><p style="color: black; font-size: medium;">5. Pseudo-instructions are also called ______________</p><p style="color: black; font-size: medium;">6. (True or False) Assembler directives are not used by the CPU itself. They are simply a guide to the assembler. </p><p style="color: black; font-size: medium;">7. In question 4, which one is an assembler directive?</p><p style="color: black; font-size: medium;"><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p style="color: black; font-size: medium;">1. The real work is </p><p style="color: black; font-size: medium;">performed by instructions such as MOV and ADD. Pseudo-instructions, also called assembler</p><p style="color: black; font-size: medium;">directives, instruct the assembler in doing its job. </p><p style="color: black; font-size: medium;">2. The instruction mnemonics, pseudo-instructions</p><p style="color: black; font-size: medium;">3. False </p><p style="color: black; font-size: medium;">4. All except (c)</p><p style="color: black; font-size: medium;">5. Assembler directive</p><p style="color: black; font-size: medium;">6. True </p><p style="color: black; font-size: medium;">7. (c) </p><p style="color: black; font-size: medium;"><br /></p><p><b style="background-color: #fcff01;">SECTION 2.3: ASSEMBLING AND RUNNING AN 8051 PROGRAM</b></p><p style="color: black; font-size: medium;">1. True or false. The DOS program EDIT produces an ASCII file.</p><p style="color: black; font-size: medium;">2. True or false. Generally, the extension of the source file is "asm" or "src".</p><p style="color: black; font-size: medium;">3. Which of the following files can be produced by the DOS EDIT program? </p><p style="color: black; font-size: medium;"><span> </span>(a) myprog.asm </p><p style="color: black; font-size: medium;"><span> </span>(b) myprog.obj </p><p style="color: black; font-size: medium;"><span> </span>(c) myprog.exe </p><p style="color: black; font-size: medium;"><span> </span>(d) myprog.lst </p><p style="color: black; font-size: medium;">4. Which of the following files is produced by an 8051 assembler?</p><p style="color: black; font-size: medium;"><span> </span>(a) myprog.asm </p><p style="color: black; font-size: medium;"><span> </span>(b) myprog.obj </p><p style="color: black; font-size: medium;"><span> </span>(c) myprog.hex </p><p style="color: black; font-size: medium;"><span> </span>(d) myprog.lst </p><p style="color: black; font-size: medium;">5. Which of the following files lists syntax errors?</p><p style="color: black; font-size: medium;"><span> </span>(a) myprog.asm </p><p style="color: black; font-size: medium;"><span> </span>(b) myprog.obj </p><p style="color: black; font-size: medium;"><span> </span>(c) myprog.hex </p><p style="color: black; font-size: medium;"><span> </span>(d) myprog.lst </p><p style="color: black; font-size: medium;"><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p style="color: black; font-size: medium;">1. True </p><p style="color: black; font-size: medium;">2. True</p><p style="color: black; font-size: medium;">3. (a)</p><p style="color: black; font-size: medium;">4. (b) and (d)</p><p style="color: black; font-size: medium;">5. (d) </p><p style="color: black; font-size: medium;"><br /></p><p style="color: black; font-size: medium;"><b style="background-color: #fcff01;">SECTION 2.4: THE PROGRAM COUNTER AND ROM SP ACE IN THE 8051</b></p><p style="color: black; font-size: medium;">1. In the 8051, the program counter is bits wide.</p><p style="color: black; font-size: medium;">2. True or false. Every member of the 8051 family, regardless of the maker, wakes up at memory OOOOH when it is powered up.</p><p style="color: black; font-size: medium;">3. At what ROM location do we store the first opcode of an 8051 program? </p><p style="color: black; font-size: medium;">4. The instruction "MOV A, #44H" is a -byte instruction.</p><p style="color: black; font-size: medium;">5. What is the ROM address space for the 8052 chip? </p><p style="color: black; font-size: medium;"><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p style="color: black; font-size: medium;">1. 16 </p><p style="color: black; font-size: medium;">2. True</p><p style="color: black; font-size: medium;">3. OOOOH </p><p style="color: black; font-size: medium;">4. 2 </p><p style="color: black; font-size: medium;">5. With 8K bytes, we have 8192 (8 x 1024 = 8192) bytes, and the ROM space is 0000 to lFFFH. </p><p style="color: black; font-size: medium;"><br /></p><p style="color: black; font-size: medium;"><b style="background-color: #fcff01;">SECTION 2.5: 8051 DATA TYPES AND DIRECTIVES </b></p><p style="color: black; font-size: medium;">1. The directive is always used for ASCII strings.</p><p style="color: black; font-size: medium;">2. How many bytes are used by the following? </p><p style="color: black; font-size: medium;"><span> </span>DATA 1: DB "AMERICA" </p><p style="color: black; font-size: medium;">3. What is the advantage in using the EQU directive to define a constant value? </p><p style="color: black; font-size: medium;">4. How many bytes are set aside by each of the following directives? </p><p style="color: black; font-size: medium;"><span> </span>(a) ASC_DATA: DB "1234" </p><p style="color: black; font-size: medium;"><span> </span>(b) MY_DATA: DB "ABC1234" </p><p style="color: black; font-size: medium;">5. State the contents of memory locations 200H - 205H for the following: </p><p style="color: black; font-size: medium;"><span> </span>ORG 200H MYDATA: DB "ABC123" </p><p style="color: black; font-size: medium;"><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p style="color: black; font-size: medium;">1. DB </p><p style="color: black; font-size: medium;">2. 7 </p><p style="color: black; font-size: medium;">3. If the value is to be changed later, it can be done once in one place instead of at every occurrence.</p><p style="color: black; font-size: medium;">4. (a) 4 bytes (b) 7 bytes </p><p style="color: black; font-size: medium;">5. This places the ASCII values for each character in memory locations starting at 200H. Notice that all values are in</p><p style="color: black; font-size: medium;">hex.</p><p style="color: black; font-size: medium;">200 = (41)</p><p style="color: black; font-size: medium;">201 = (42) </p><p style="color: black; font-size: medium;">202 = (43)</p><p style="color: black; font-size: medium;">203 = (31)</p><p style="color: black; font-size: medium;">204 = (32)</p><p style="color: black; font-size: medium;">205 = (33) </p><p style="color: black; font-size: medium;"><b><span style="background-color: #fcff01;"><br /></span></b></p><p style="color: black; font-size: medium;"><b><span style="background-color: #fcff01;">SECTION 2.6: 8051 FLAG BITS AND THE PSW REGISTER </span></b></p><p style="color: black; font-size: medium;">1. The flag register in the 8051 is called _</p><p style="color: black; font-size: medium;">2. What is the size of the flag register in the 8051? </p><p style="color: black; font-size: medium;">3. Which bits of the PSW register are user-definable?</p><p style="color: black; font-size: medium;">4. Find the CY and AC flag bits for the following code. </p><p style="color: black; font-size: medium;"><span> </span>MOVA, #OFFH</p><p style="color: black; font-size: medium;"><span> </span>ADD A, #01 </p><p style="color: black; font-size: medium;">5. Find the CY and AC flag bits for the following code. </p><p style="color: black; font-size: medium;"><span> </span>MOVA, #OC2H </p><p style="color: black; font-size: medium;"><span> </span>ADD A, #3DH</p><p style="color: black; font-size: medium;"><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p style="font-size: medium;">1. PSW (program status register) </p><p style="font-size: medium;">2. 8 bits </p><p style="font-size: medium;">3. 01 and 05, which are referred to as PSW.1 and PSW.5, respectively. </p><p style="font-size: medium;">4. </p><p style="font-size: medium;">5. Hex: FF + 1 = 100 </p><p style="font-size: medium;"><span> </span>Binary: 1111 1111 + 1 = 1 0000 0000 </p><p style="font-size: medium;">This leads to CY = 1 and AC = 1. </p><p style="font-size: medium;"><span> </span>Hex C2 + 3D = FF </p><p style="font-size: medium;"><span> </span>Binary 1100 0010 + 0011 1101 = 1111 1111 </p><p style="font-size: medium;"><br /></p><p style="color: black; font-size: medium;"><b style="background-color: #fcff01;">SECTION 2.7: 8051 REGISTER BANKS AND STACK </b></p><p style="color: black; font-size: medium;">1. What is the size of the SP register?</p><p style="color: black; font-size: medium;">2. With each PUSH instruction, the stack pointer register, SP, is (incremented, decremented) by 1. </p><p style="color: black; font-size: medium;">3. With each POP instruction, the SP is (incremented, decremented) by 1. </p><p style="color: black; font-size: medium;">4. On power-up, the 8051 uses RAM location as the first location of the stack.</p><p style="color: black; font-size: medium;">5. On power-up, the 8051 uses bank for registers RO - R7.</p><p style="color: black; font-size: medium;">6. On power-up, the 8051 uses RAM locations to for registers RO - R7 </p><p style="color: black; font-size: medium;">7. Which register bank is used if we alter RSO and RSl of the PSW by the following two instructions? <span> </span></p><p style="color: black; font-size: medium;"><span> </span>SETB PSW.3</p><p style="color: black; font-size: medium;"><span> </span>SETB PSW.4 </p><p style="color: black; font-size: medium;">8. In Question 7, what RAM locations are used for register RO - R7? </p><p style="color: black; font-size: medium;"><br /></p><p style="color: black; font-size: medium;"><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></p><p style="font-size: medium;">1. 8-bit </p><p style="color: black; font-size: medium;">2. Incremented </p><p style="color: black; font-size: medium;">3. Decremented </p><p style="color: black; font-size: medium;">4. 08 </p><p style="color: black; font-size: medium;">5. 0</p><p style="color: black; font-size: medium;">6. 0-7 </p><p style="color: black; font-size: medium;">7. Register bank 3</p><p style="color: black; font-size: medium;">8. RAM locations 18H to lFH </p><p style="color: black; font-size: medium;"><br /></p></span></span></div>Satish Kashyaphttp://www.blogger.com/profile/11400609355612168424noreply@blogger.com0tag:blogger.com,1999:blog-83245777239558452.post-47643991414664814562020-08-23T22:22:00.006+05:302020-08-27T02:47:00.393+05:30The 8051 Microcontrollers - Unit 1 - Review Questions & Answers from 8051 Microcontrollers & Embedded Systems by Mazidi<p style="text-align: center;"> <b style="color: red; font-size: xx-large; text-align: center;">Unit - 1: The 8051 Microcontrollers</b></p><div><span style="color: #ff00fe; font-size: x-large;"><b><br /></b></span></div><div><span style="color: #ff00fe; font-size: x-large;"><b><br /></b></span></div><div><span style="background-color: #fcff01;"><span style="color: #ff00fe;"><b>Section 1.1 - </b></span><span style="color: #ff00fe;"><b>MICROCONTROLLERS AND EMBEDDED PROCESSORS</b></span></span></div><div><br /></div><div>1. Microcontrollers are normally less expensive than Microprocessors (TRUE / FALSE)</div><div>2. When comparing a system board based on a microcontroller and a general purpose microprocessor, which one is cheaper?</div><div>3. A microcontroller normally has which of the following devices on-chip?</div><div><span> a. RAM </span><br /></div><div><span><span> b. ROM</span><br /></span></div><div><span><span><span> c. I/O</span><br /></span></span></div><div><span> d. All of the above</span><br /></div><div><span>4. A general purpose microprocessor normally needs which of the following devices to be attached to it?</span></div><div><div> a. RAM <br /></div><div> b. ROM<br /></div><div> c. I/O<br /></div><div> d. All of the above<br /></div><div>5. An Embedded System is also called a dedicated system. Why?</div></div><div>6. What does the term Embedded System mean?</div><div>7. Why does having multiple sources of a given product mater?</div><div><br /></div><div><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></div><div><br /></div><div>1. TRUE</div><div>2. A microcontroller based system</div><div>3. D</div><div>4. D</div><div>5. It is defined since it is dedicated to doing one type of job.</div><div>6. Embedded System means that the application and processor are combined into a single system.</div><div>7. Having multiple sources for a given part means you are not hostage to one supplier. More importantly, competition among suppliers brings about lower cost for that product.</div><div><br /></div><div><br /></div><div><br /></div><div><b style="background-color: #fcff01; color: #ff00fe;">Section 1.2 - OVERVIEW OF THE 8051 FAMILY</b></div><div><br /></div><div>1. Name three features of the 8051.</div><div>2. What is the major difference between the 8051 and 8052 microcontrollers?</div><div>3. Give the size of RAM in each of the follwoing:</div><div><span> a. 8051</span><br /></div><div><span><span> b. 8052</span><br /></span></div><div><span><span><span> c. 8031</span><br /></span></span></div><div><span><span><span>4. Give the size of On-Chip ROM in each of the following:</span></span></span></div><div><div> a. 8051<br /></div><div> b. 8052<br /></div><div> c. 8031</div></div><div>5. The 8051 is a(an) ___ bit microcontroller.</div><div>6. State a major difference between the 8751, the AT89C51 and the DS89C420/430.</div><div>7. The DS89C420/430 is really an 8052 chip. (TRUE / FALSE)</div><div>8. The DS89C420/430 has a loader embedded to the chip, therefore eliminating the need for ROM burner. (TRUE / FALSE)</div><div>9. The DS89C420/430 chip has _____ bytes of On-Chip ROM.</div><div>10. The DS89C420/430 chip has _____ bytes of RAM></div><div><br /></div><div><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></div><div><br /></div><div>1. 128 Byres of RAM, 4K Bytes of On-Chip ROM, Four 8 bit I/O ports</div><div>2. 8052 is similar to 8051 with extra features like one extra timer, 8K Bytes On-Chip ROM instead of 4K On-Chip ROM</div><div>3. </div><div><div> a. 8051 - 128 Bytes of RAM<br /></div><div> b. 8052 - 256 Bytes of RAM<br /></div><div> c. 8031 - 128 Bytes of RAM</div></div><div>4. </div><div><div> a. 8051 - 4K Bytes<br /></div><div> b. 8052 - 8K Bytes<br /></div><div> c. 8031 - Zero KBytes</div></div><div>5. 8</div><div>6. The main difference is the type of On-Chip ROM. </div><div><span> a. </span>8751 - UV-EPROM</div><div><span> b. AT89C51 - FLASH ROM</span><br /></div><div><span><span> c. DS89C420/430 - FLASH with a LOADER on the Chip</span><br /></span></div><div><span><span>7. TRUE</span></span></div><div><span><span>8. TRUE</span></span></div><div><span><span>9. 16K </span></span></div><div><span><span>10. 256</span></span></div><div><br /></div><div><br /></div><div><br /></div><div><br /></div>Satish Kashyaphttp://www.blogger.com/profile/11400609355612168424noreply@blogger.com0tag:blogger.com,1999:blog-83245777239558452.post-78395161596133200032020-08-23T21:51:00.008+05:302020-08-27T02:48:05.300+05:30Introduction to Computing - Unit 0 - Review Questions & Answers from 8051 Microcontrollers & Embedded Systems by Mazidi<div style="text-align: center;"><span style="color: red; font-size: xx-large;"><b>Unit - 0: Introduction to Computing</b></span></div><div><span style="color: #ff00fe; font-size: x-large;"><b><br /></b></span></div><div><span style="color: #ff00fe; font-size: x-large;"><b><br /></b></span></div><div><span style="background-color: #fcff01;"><span style="color: #ff00fe;"><b>Section 0.1 - </b></span><span style="color: #ff00fe;"><b> NUMBERING AND CODING SYSTEMS</b></span></span></div><div><br /></div><div>1. Why do computers use the binary number system instead of
the decimal system? </div><div>2. Convert 34 decimal to binary and Hex </div><div>3. Convert 110101 binary to Hex
and decimal </div><div>4. Perform binary addition: 101100 + 101 </div><div>5. Convert 101100 binary to its
2's complement representation </div><div>6. Add Hexa decimal numbers: 36B and F6 </div><div>7. Subtract in Hexa decimal: 36B - F6 </div><div>8.
Write "80x86 CPUs" in its ASCII code (in Hex form) </div><div><br /></div><div><b><span style="color: #2b00fe; font-size: x-large;">Answers: </span></b></div><div><br /></div><div>1. because each bit
can have one of two voltage levels: ON and OFF </div><div>2. 34 decimal = 100010 binary = 22 Hexadecimal</div><div>3.
110101 binary = 35 hexadecimal = 53 decimal</div><div>4. 1110001 </div><div>5. 010100 </div><div>6. 461 </div><div>7. 275 </div><div>8. 38 30 78 38 36 20 43
50 55 73 </div><div><br /></div><div><span style="background-color: #fcff01;"><span style="color: #ff00fe;"><b>Section 0.2 - </b></span><span style="color: #ff00fe;"><b>DIGITAL PRIMER</b></span></span></div><div><br /></div><div>1. The logical operation ___________ gives a 1 output when
all inputs are 1. </div><div>2. the logical operation ___________ gives a 1 output when 1
or more of its inputs is 1. </div><div>3. the lgoical operation ___________ is oftern used
to compare if the two inputs have the same value. </div><div>4. A __________ gate does not
change the logic level of the input. </div><div>5. Name a common use for flip-flops </div><div>6. An
address ________ is used to identify a predetermined binary address. </div><div><br /></div><div><span style="color: #2b00fe; font-size: x-large;"><b>Answers: </b></span></div><div><br /></div><div>1.
AND </div><div>2. OR </div><div>3. XOR </div><div>4. Buffer </div><div>5. Storing data </div><div>6. Decoder </div><div><br /></div><div><span style="background-color: #fcff01;"><span style="color: #ff00fe;"><b>Section 0.3 - </b></span><span style="color: #ff00fe;"><b>INSIDE THE COMPUTER</b></span></span></div><div><br /></div><div>1. How many
bytes in 24 kilobytes? </div><div>2. What does "RAM" stands for? How is it used in computer
systems? </div><div>3. What does "ROM" stands for? How is it used in computer systems? </div><div>4.
Why is RAM called "Volatile Memory"? </div><div>5. List the three major components of a
computer system </div><div>6. What does "CPU" stand for? Explain its function in a
computer. </div><div>7. List the three types of buses found in computer systems and state
briefly the purpose of each type of bus. </div><div>8. State which of the following is
Unidirectional and bi-directional. a. Data bus b. Address bus </div><div>9. If the address
bus for a given computer has 16 lines, what is the maximum amount of memory it
can access? </div><div>10. what does "ALU" stand for? what is its purpose? </div><div>11. How are
registers used in computer systems? </div><div>12. What is the purpose of the program
counter? </div><div>13. What is the purpose of the instruction decoder? </div><div><br /></div><div><span style="color: #2b00fe; font-size: x-large;"><b>Answers: </b></span></div><div><br /></div><div>1. 24,576 </div><div>2. Random Access Memory: it is used for temporary storage of programs that the
CPU is running, such as the operating system, word processing programs etc... </div><div>3.
Read Only Memory: it is used for permanent programs such as those that control
the keyboard, mouse etc... </div><div>4. The contnets are RAM are lost when the computer is
powered off. </div><div>5. The CPU, Memory and I/O devices </div><div>6. Central Processing Unit: it
can be considered as the "brain" of the computer, it executes the programs and
controls all other devices in the computer. </div><div>7. The address bus carries the
location (address) needed by the CPU: The data bus carries information in and
out of the CPU The control bus is used by the CPU to send signals controlling
I/O devices. </div><div>8. a. Birectional b. Unidirectional </div><div>9. 64KB or 65,536 bytes </div><div>10.
Arithmetic Logic Unit: it performs all arithmetic and logical operations </div><div>11. It
is for temporary storage of information </div><div>12. It holds the address of the next
instruction to be executed </div><div>13. It tells the CPU what steps to perform for each
instruction</div>Satish Kashyaphttp://www.blogger.com/profile/11400609355612168424noreply@blogger.com0tag:blogger.com,1999:blog-83245777239558452.post-17711900199974655702018-04-23T17:26:00.001+05:302018-04-23T17:28:23.938+05:30ISRO 2018 Question Paper - Electronics (EC)<div dir="ltr" style="text-align: left;" trbidi="on">
<iframe height="800" src="https://drive.google.com/file/d/1z4OUXm3afENEAyQwKkkOiq-i3YXY3LQ3/preview" width="540"></iframe>
</div>
Satish Kashyaphttp://www.blogger.com/profile/11400609355612168424noreply@blogger.com0tag:blogger.com,1999:blog-83245777239558452.post-84951187279893380002018-03-27T15:16:00.001+05:302018-03-27T15:16:17.444+05:30Final Key for TS TRANSCO AE Electrical Exam<div dir="ltr" style="text-align: left;" trbidi="on">
For Question Paper <span style="font-size: large;"><b><a href="http://www.satishkashyap.com/2018/03/ts-transco-assistant-engineer-ae_14.html" target="_blank">CLICK HERE</a></b></span><br />
<br />
<iframe height="640" src="https://drive.google.com/file/d/1fYBXtMoAcGKoxVmPzUyJY3gLntJUeYh2/preview" width="510"></iframe></div>
Satish Kashyaphttp://www.blogger.com/profile/11400609355612168424noreply@blogger.com0tag:blogger.com,1999:blog-83245777239558452.post-49432376571354627762018-03-27T15:13:00.000+05:302018-03-27T15:17:53.502+05:30Final Key for TS TRANSCO - AE Telecom exam <div dir="ltr" style="text-align: left;" trbidi="on">
for Question paper <span style="font-size: large;"><b><a href="http://www.satishkashyap.com/2018/03/ts-transco-assistant-engineer-ae.html" target="_blank">click here</a></b></span><br />
<iframe height="640" src="https://drive.google.com/file/d/1xvYTdqfU5pIoGDfFstLwyZp_q3I1MTsE/preview" width="510"></iframe></div>
Satish Kashyaphttp://www.blogger.com/profile/11400609355612168424noreply@blogger.com0tag:blogger.com,1999:blog-83245777239558452.post-22245282864387552202018-03-21T11:33:00.001+05:302018-03-21T11:33:27.120+05:30Complete Solutions for TS TRANSCO 2018 Assistant Engineer ECE AE from ACE Academy<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<iframe src="https://drive.google.com/file/d/1DgmyoZQs5hjyVXEoGBSvYil3R0PBEde5/preview" width="520" height="680"></iframe>
</div>
Satish Kashyaphttp://www.blogger.com/profile/11400609355612168424noreply@blogger.com0tag:blogger.com,1999:blog-83245777239558452.post-61992578742733885202018-03-21T11:21:00.004+05:302018-03-21T11:24:53.516+05:30Complete Solutions from ACE academy - TS Transco 2018 AE - EEE branch<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<iframe height="640" src="https://drive.google.com/file/d/1zTudvPQtxe2eOg7SOsjUq_YkqxfER6fi/preview" width="510"></iframe>
</div>
Satish Kashyaphttp://www.blogger.com/profile/11400609355612168424noreply@blogger.com0tag:blogger.com,1999:blog-83245777239558452.post-13979752062952915442018-03-14T11:54:00.000+05:302018-03-14T11:54:06.963+05:30GATE 2018 Question Papers and Answer Keys (Officially Released by IIT Guwahati)<div dir="ltr" style="text-align: left;" trbidi="on">
<h1 class="main_title">
</h1>
<div class="entry-content">
<table align="center" bgcolor="#F2F2F2" border="1" cellpadding="0" cellspacing="0" style="width: 75%px;">
<tbody>
<tr align="center" valign="middle">
<th align="center" bgcolor="#1f3763" colspan="3">GATE 2018 Question Papers and Answer Keys</th>
</tr>
<tr align="center" valign="middle">
<td align="left" bgcolor="#dae3f4" height="0%" width="50%"><strong>Aerospace Engineering (AE)</strong></td>
<td bgcolor="#dae3f4" height="0"><strong><a href="https://drive.google.com/file/d/1kXmzreRyi9OIiCXZXEmtjw4dT2QZ3tHx/view" rel="noopener" target="_blank">Question Paper</a></strong></td>
<td bgcolor="#dae3f4" height="0"><strong><a href="https://drive.google.com/file/d/1m4qwC-XzRtsAkDn5q4AuMzuYWckIizIQ/view" rel="noopener" target="_blank">Answer Key</a></strong></td>
</tr>
<tr align="center" valign="middle">
<td bgcolor="#ffffff"><div align="left">
<strong>Agricultural Engineering (AG)</strong></div>
</td>
<td bgcolor="#ffffff"><strong><a href="https://drive.google.com/file/d/1JlIQ6w7ZizJ-v6NePTLhcT2qbmOYw_Pd/view" rel="noopener" target="_blank">Question Paper</a></strong></td>
<td bgcolor="#ffffff"><strong><a href="https://drive.google.com/file/d/1pE9ygYV7SCj9pBw3bzwWEyjkK4fQipPl/view" rel="noopener" target="_blank">Answer Key</a></strong></td>
</tr>
<tr align="center" valign="middle">
<td bgcolor="#dae3f4"><div align="left">
<strong>Architecture and Planning (AR) </strong></div>
</td>
<td bgcolor="#dae3f4"><strong><a href="https://drive.google.com/file/d/1xNrJCpZns8sjbHa0W29S8IX55LkH7JTI/view" rel="noopener" target="_blank">Question Paper</a></strong></td>
<td bgcolor="#dae3f4"><strong><a href="https://drive.google.com/file/d/1a9BVSxR38FobZYH1v9-ZFrzw2pbpxnEM/view" rel="noopener" target="_blank">Answer Key</a></strong></td>
</tr>
<tr align="center" valign="middle">
<td bgcolor="#ffffff"><div align="left">
<strong>Biotechnology (BT)</strong></div>
</td>
<td bgcolor="#ffffff"><strong><a href="https://drive.google.com/file/d/110r1_lQzx4fSSUylOKPcJ1gy2bjxk3r8/view" rel="noopener" target="_blank">Question Paper</a></strong></td>
<td bgcolor="#ffffff"><strong><a href="https://drive.google.com/file/d/1L7JjDBFkKw7AEGhqsLhMw2VdocJ6n0Rh/view" rel="noopener" target="_blank">Answer Key</a></strong></td>
</tr>
<tr align="center" valign="middle">
<td bgcolor="#dae3f4"><div align="left">
<strong>Civil Engineering (CE)</strong></div>
</td>
<td bgcolor="#dae3f4"><strong><a href="https://drive.google.com/file/d/1NzNfUuvP2OFZgSO8ZO8HoRak213-Kj16/view" rel="noopener" target="_blank">Question Paper (CE01)</a></strong>
<br />
<strong><a href="https://drive.google.com/file/d/1T-x95CR-vttNyz3335IMo_pwHlr88FiK/view" rel="noopener" target="_blank">Question Paper (CE02)</a></strong></td>
<td bgcolor="#dae3f4"><strong><a href="https://drive.google.com/file/d/1LM05NXx8coA0rvjkjYkY5n2zTolQO-rf/view" rel="noopener" target="_blank">Answer Key (CE01)</a></strong>
<br />
<strong><a href="https://drive.google.com/file/d/1IEce78-9C6WTrljVkegJ3IDt92e_l5rh/view" rel="noopener" target="_blank">Answer Key (CE02)</a></strong></td>
</tr>
<tr align="center" valign="middle">
<td bgcolor="#ffffff"><div align="left">
<strong>Chemical Engineering (CH)</strong></div>
</td>
<td bgcolor="#ffffff"><strong><a href="https://drive.google.com/file/d/1516pPg_gYaY4BDZfp7_uxJktDvv4NVEf/view" rel="noopener" target="_blank">Question Paper</a></strong></td>
<td bgcolor="#ffffff"><strong><a href="https://drive.google.com/file/d/1IdTgzUvaI42xn3carqRrTxX7enU6K611/view" rel="noopener" target="_blank">Answer Key</a></strong></td>
</tr>
<tr align="center" valign="middle">
<td bgcolor="#dae3f4"><div align="left">
<strong>Computer Science and Information Technology (CS)</strong></div>
</td>
<td bgcolor="#dae3f4"><strong><a href="https://drive.google.com/file/d/1pqoma6hhgHhOFl7vrLSTuFXDXl2iC9Kl/view" rel="noopener" target="_blank">Question Paper</a></strong></td>
<td bgcolor="#dae3f4"><strong><a href="https://drive.google.com/file/d/1whFDTWVWev3NZLRwNVPHTXQG-n_9b3D6/view" rel="noopener" target="_blank">Answer Key</a></strong></td>
</tr>
<tr align="center" valign="middle">
<td bgcolor="#ffffff"><div align="left">
<strong>Chemistry (CY)</strong></div>
</td>
<td bgcolor="#ffffff"><strong><a href="https://drive.google.com/file/d/1OJxMbenSrIOgoh2A6Dl0XqzlANTzcZMM/view" rel="noopener" target="_blank">Question Paper</a></strong></td>
<td bgcolor="#ffffff"><strong><a href="https://drive.google.com/file/d/13g8aA98LJzRApt6yuOHj4dZp3m0Bqiu8/view" rel="noopener" target="_blank">Answer Key</a></strong></td>
</tr>
<tr align="center" valign="middle">
<td bgcolor="#dae3f4"><div align="left">
<strong>Electronics and Communication Engineering (EC)</strong></div>
</td>
<td bgcolor="#dae3f4"><strong><a href="https://drive.google.com/file/d/1B0TmDfceINdy8kbQWCiywNYIkW34lh0p/view" rel="noopener" target="_blank">Question Paper</a></strong></td>
<td bgcolor="#dae3f4"><strong><a href="https://drive.google.com/file/d/1sZszLdlWgEYp1BXdN5oAq-YDc7IJNFT4/view" rel="noopener" target="_blank">Answer Key</a></strong></td>
</tr>
<tr align="center" valign="middle">
<td bgcolor="#ffffff"><div align="left">
<strong>Electrical Engineering (EE)</strong></div>
</td>
<td bgcolor="#ffffff"><strong><a href="https://drive.google.com/file/d/1SxGuMb2ZzQYjATZ-MZYp6-YbTd8tb_13/view" rel="noopener" target="_blank">Question Paper</a></strong></td>
<td bgcolor="#ffffff"><strong><a href="https://drive.google.com/file/d/11l2uephuGCiNDUV9-6hGYHY_k118oFii/view" rel="noopener" target="_blank">Answer Key</a></strong></td>
</tr>
<tr align="center" valign="middle">
<td bgcolor="#dae3f4"><div align="left">
<strong>Ecology and Evolution (EY)</strong></div>
</td>
<td bgcolor="#dae3f4"><strong><a href="https://drive.google.com/file/d/1IgWcSIRE51tXFFwC0X6frSyr0kX9hnd0/view" rel="noopener" target="_blank">Question Paper</a></strong></td>
<td bgcolor="#dae3f4"><strong><a href="https://drive.google.com/file/d/10vQ4M3A82r2IPFQ9acpfc-sftSaDlRQm/view" rel="noopener" target="_blank">Answer Key</a></strong></td>
</tr>
<tr align="center" valign="middle">
<td bgcolor="#ffffff"><div align="left">
<strong>Geology and Geophysics (GG)</strong></div>
</td>
<td bgcolor="#ffffff"><strong><a href="https://drive.google.com/file/d/1VEG3XgDNwcTBBiKgDbsaPu2_lR2lQkbX/view" rel="noopener" target="_blank">Question Paper</a></strong></td>
<td bgcolor="#ffffff"><strong><a href="https://drive.google.com/file/d/1HGgCDJLM5cS9laV1UwsoQzmVNDOWgjmo/view" rel="noopener" target="_blank">Answer Key</a></strong></td>
</tr>
<tr align="center" valign="middle">
<td bgcolor="#dae3f4"><div align="left">
<strong>Instrumentation Engineering (IN)</strong></div>
</td>
<td bgcolor="#dae3f4"><strong><a href="https://drive.google.com/file/d/1DXQq_1kcxsCjP59xcwskSp7W-Y3AGqlZ/view" rel="noopener" target="_blank">Question Paper</a></strong></td>
<td bgcolor="#dae3f4"><strong><a href="https://drive.google.com/file/d/1Samh5k3XSdbCwgvyxZvFyboUsGGM1TEV/view" rel="noopener" target="_blank">Answer Key</a></strong></td>
</tr>
<tr align="center" valign="middle">
<td bgcolor="#ffffff"><div align="left">
<strong>Mathematics (MA)</strong></div>
</td>
<td bgcolor="#ffffff"><strong><a href="https://drive.google.com/file/d/1vH5wsrei13Hw3lK3yn6jlgC437tVE1is/view" rel="noopener" target="_blank">Question Paper</a></strong></td>
<td bgcolor="#ffffff"><strong><a href="https://drive.google.com/file/d/1LhWOtYrGyJLydiOudvfWjxBl-ZmUk6D5/view" rel="noopener" target="_blank">Answer Key</a></strong></td>
</tr>
<tr align="center" valign="middle">
<td bgcolor="#dae3f4"><div align="left">
<strong>Mechanical Engineering (ME)</strong></div>
</td>
<td bgcolor="#dae3f4"><strong><a href="https://drive.google.com/file/d/1R0VNsc9R55_aAmD0hb3tOZlLvdEDdvYA/view" rel="noopener" target="_blank">Question Paper (ME01)</a></strong>
<br />
<strong><a href="https://drive.google.com/file/d/1H8FDgOSiziu6mcuFt--0_-VUcSNEDQyV/view" rel="noopener" target="_blank">Question Paper (ME02)</a></strong></td>
<td bgcolor="#dae3f4"><strong><a href="https://drive.google.com/file/d/1wqi5T3tMa_hdnaHTPdzT_SoOaV13068i/view" rel="noopener" target="_blank">Answer Key (ME01)</a></strong>
<br />
<strong><a href="https://drive.google.com/file/d/1VUvyC-Bs0tTQxdc7A194QqPgLmWEDQo3/view" rel="noopener" target="_blank">Answer Key (ME02)</a></strong></td>
</tr>
<tr align="center" valign="middle">
<td bgcolor="#ffffff"><div align="left">
<strong>Mining Engineering (MN)</strong></div>
</td>
<td bgcolor="#ffffff"><strong><a href="https://drive.google.com/file/d/1gT4KrxMOJljN3SpE41eYiF83IzzzMdDf/view" rel="noopener" target="_blank">Question Paper</a></strong></td>
<td bgcolor="#ffffff"><strong><a href="https://drive.google.com/file/d/1DzWxAAB1tRD3PFX2YDzemOykNwv3ZKF4/view" rel="noopener" target="_blank">Answer Key</a></strong></td>
</tr>
<tr align="center" valign="middle">
<td bgcolor="#dae3f4"><div align="left">
<strong>Metallurgical Engineering (MT)</strong></div>
</td>
<td bgcolor="#dae3f4"><strong><a href="https://drive.google.com/file/d/15AUTJlHcSAzIt4zBjxlDqpZ8lOgzlKhU/view" rel="noopener" target="_blank">Question Paper</a></strong></td>
<td bgcolor="#dae3f4"><strong><a href="https://drive.google.com/file/d/1PznFINsI-XW9UfUPN3lRjhYswKQzZoAw/view" rel="noopener" target="_blank">Answer Key</a></strong></td>
</tr>
<tr align="center" valign="middle">
<td bgcolor="#ffffff"><div align="left">
<strong>Petroleum Engineering (PE)</strong></div>
</td>
<td bgcolor="#ffffff"><strong><a href="https://drive.google.com/file/d/1zNKqUR2TL1OFHmz9ls5NRiugSw1zSVnR/view" rel="noopener" target="_blank">Question Paper</a></strong></td>
<td bgcolor="#ffffff"><strong><a href="https://drive.google.com/file/d/1XnKjPGitWv6PVM6UBTrl9e01Tjnq37O_/view" rel="noopener" target="_blank">Answer Key</a></strong></td>
</tr>
<tr align="center" valign="middle">
<td bgcolor="#dae3f4"><div align="left">
<strong>Physics (PH)</strong></div>
</td>
<td bgcolor="#dae3f4"><strong><a href="https://drive.google.com/file/d/18ElnR6bTax1JYKlMo6IfSKaJ0FQZREUY/view" rel="noopener" target="_blank">Question Paper</a></strong></td>
<td bgcolor="#dae3f4"><strong><a href="https://drive.google.com/file/d/1hihhNZet9Fl81-HKu93pqqtp1eHN_Lak/view" rel="noopener" target="_blank">Answer Key</a></strong></td>
</tr>
<tr align="center" valign="middle">
<td bgcolor="#ffffff"><div align="left">
<strong>Production and Industrial Engineering (PI)</strong></div>
</td>
<td bgcolor="#ffffff"><strong><a href="https://drive.google.com/file/d/1yKWUfVBA5_wn2NSyjKECK4cYRUq_z4Xk/view" rel="noopener" target="_blank">Question Paper</a></strong></td>
<td bgcolor="#ffffff"><strong><a href="https://drive.google.com/file/d/1Q-Lrz5cFXLBZTqzZYdzP9v25mGON7J61/view" rel="noopener" target="_blank">Answer Key</a></strong></td>
</tr>
<tr align="center" valign="middle">
<td bgcolor="#dae3f4"><div align="left">
<strong>Textile Engineering and Fibre Science (TF)</strong></div>
</td>
<td bgcolor="#dae3f4"><strong><a href="https://drive.google.com/file/d/1upqz8zeHjyp8Y-Ef9AtOydqM-55Ms7ns/view" rel="noopener" target="_blank">Question Paper</a></strong></td>
<td bgcolor="#dae3f4"><strong><a href="https://drive.google.com/file/d/1055VV7AyaV-kdQVBuyXbo1Bwlg1Qzg2z/view" rel="noopener" target="_blank">Answer Key</a></strong></td>
</tr>
</tbody>
</table>
</div>
</div>
Satish Kashyaphttp://www.blogger.com/profile/11400609355612168424noreply@blogger.com0tag:blogger.com,1999:blog-83245777239558452.post-51904972754404208912018-03-14T11:42:00.001+05:302018-03-14T12:18:34.301+05:30TS Transco Assistant Engineer (AE) - Electrical & Electronics (EEE) Question Paper<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
This exam is conducted on 11th Mar 2018 in the Morning session. The exam is bit tough.. those who prepared well can able to attempt, as well a bit lengthy also....those who prepared subject along with mathematics can able to score good marks. For the questions on English grammar and , no separate preparation is needed. We can't expect questions from history of Telangana, how much we prepare...<br />
<br />
So i suggest who are preparing for the next time, prepare both subject and mathematics as well.<br />
<br />
<br />
<a name='more'></a><br /><br />
<br />
Have a look at the Question Paper.........<br />
<br />
<br />
<div style="text-align: center;">
<a href="https://drive.google.com/file/d/14JXz9RhIKsjnnDsjZkOwpaMGwLtI6C6u/view?usp=sharing" target="_blank"><span style="color: orange; font-size: x-large;"><b>View or Download</b></span></a></div>
</div>
Satish Kashyaphttp://www.blogger.com/profile/11400609355612168424noreply@blogger.com0