Question: . Timeri Timero Consider the following 8051 interfacing problem. Crystal frequency: 11.059MHz.The relay coil is to be energized at an interval of 10 ms. Use
.
Timeri Timero Consider the following 8051 interfacing problem. Crystal frequency: 11.059MHz.The relay coil is to be energized at an interval of 10 ms. Use timer routine to implement the operation. GATE CT M1 MO GATE CAT M1 MO U1 12 TALI XTAL VOC 12V TMOD Register RST RL2 SV TR1 TRO TFO IE1 IT1 D1 1N4001 IEO ITO TF1 Bit 7 Bito PODADO PO 1001 PO 20402 PO403 PODA 9 PO BADO KB2 PO GADS 3 PO.7.ADT O4 P2 DAD P2TD P2.2010 P2411 P2.4412 P2.51413 P2414 P2.70415 P3.ORXD PUTXD P3: HTD PUNTI P3T01 3 ST1 PWR P3RD PSEN ALE EA 311 R2 Q5 2N2210 TCON Register 10k 4 P10T2 P1 UTEX PRECI P1 ICEXO P1 ICEX PISICE P1.BICEXS P1.7CENA ATENCERE Notes: i) ) iii) iv) Initialize TMOD for timer 0, mode 1 operation Initialize THO and TLO for 10 ms delay Construct the delay loop with appropriate timer flag setting Access and configure relevant pin as needed Call back delay loop from the main function as needed 1. First analyse the circuit. Here the goal is to blink the lamp at an interval of 10 ms by the microcontroller. This done by using mechanical relay which will change the position of the lamp switch form off to on at regular 10 ms interval. The relay coil is energized by the BJT shown. Microcontroller will apply a bias at the base that will drive the base current and turn on the bjt. Therefore, the simple requirement is to pulsate the P2.7 pin (that is connected for base current) at every 10 ms Essential tasks that must be addressed by your complete code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
