Q3: consider the following circuit, it consists of: 1- Potentiometer connected to porta.b0 used to adjust the ON time i
Posted: Fri May 20, 2022 12:22 pm
Q3: consider the following circuit, it consists of:
1- Potentiometer connected to porta.b0 used to adjust the ON time in "ms" from 0 to 1023 ms.
2- LCD used to show the set time in "ms"
3- Start Push button connected to portc.1 4- LED connected to portd.7
Write progam that control the led according to the following :
1- The Led is turned off initially just after powering the circuit.
2- Turn the potentiometer to sett the LED Power-ON time
3- When Start button is pressed the LED turned on for power-ON time and then turned OFF
4- Program should keep Looping
microC PRO
LCD1 LWOO. FV22 VCC RV2 FV21 R VCC GND RVI CICLA 3 01 RCNT OSC3CLOJT FB1 REZ RANNO FB3PEN RALAN FB RARBRESCUE RES RABURES R28-30 RATICKIC OUT PB7 PGD RAEANS COUT R20T10GOTID RENSE RCITIOS/CCP2 RENBVP RCCCP: REA:05 -C35W.CL RO4SD/SDA NERVOTHY RC5530 RC TXOK RCFFXDT Rut TU GND VCC R2 הין RCO ESPO RD PSP ROOFSP2 RCS PSP? RCA-SP4 RDS PSPS RCO PSP ROTEST R 473 Start D1 LED-PED GND
1- Potentiometer connected to porta.b0 used to adjust the ON time in "ms" from 0 to 1023 ms.
2- LCD used to show the set time in "ms"
3- Start Push button connected to portc.1 4- LED connected to portd.7
Write progam that control the led according to the following :
1- The Led is turned off initially just after powering the circuit.
2- Turn the potentiometer to sett the LED Power-ON time
3- When Start button is pressed the LED turned on for power-ON time and then turned OFF
4- Program should keep Looping
microC PRO
LCD1 LWOO. FV22 VCC RV2 FV21 R VCC GND RVI CICLA 3 01 RCNT OSC3CLOJT FB1 REZ RANNO FB3PEN RALAN FB RARBRESCUE RES RABURES R28-30 RATICKIC OUT PB7 PGD RAEANS COUT R20T10GOTID RENSE RCITIOS/CCP2 RENBVP RCCCP: REA:05 -C35W.CL RO4SD/SDA NERVOTHY RC5530 RC TXOK RCFFXDT Rut TU GND VCC R2 הין RCO ESPO RD PSP ROOFSP2 RCS PSP? RCA-SP4 RDS PSPS RCO PSP ROTEST R 473 Start D1 LED-PED GND