Page 1 of 1

please answer both its part a and part b. please make sure you are right and i will leave a thumbs up.

Posted: Mon Jun 06, 2022 6:33 pm
by answerhappygod
please answer both its part a and part b. please make sure you are right and i will leave a thumbs up.
Please Answer Both Its Part A And Part B Please Make Sure You Are Right And I Will Leave A Thumbs Up 1
Please Answer Both Its Part A And Part B Please Make Sure You Are Right And I Will Leave A Thumbs Up 1 (67.78 KiB) Viewed 34 times
Please Answer Both Its Part A And Part B Please Make Sure You Are Right And I Will Leave A Thumbs Up 2
Please Answer Both Its Part A And Part B Please Make Sure You Are Right And I Will Leave A Thumbs Up 2 (49.35 KiB) Viewed 34 times
Please Answer Both Its Part A And Part B Please Make Sure You Are Right And I Will Leave A Thumbs Up 3
Please Answer Both Its Part A And Part B Please Make Sure You Are Right And I Will Leave A Thumbs Up 3 (37.35 KiB) Viewed 34 times
Please Answer Both Its Part A And Part B Please Make Sure You Are Right And I Will Leave A Thumbs Up 4
Please Answer Both Its Part A And Part B Please Make Sure You Are Right And I Will Leave A Thumbs Up 4 (69.55 KiB) Viewed 34 times
In the following diagram: AO'S O AO'S GND O TX₂ - EAE YES O 135 C NO 0 4XN O RT. GND O OGND 0.37 0.27 OEZ 24 O GND O 22.0 AE EO ISOU C O 520 ס CED O 013) Oniso OSCLE OGND 0333 GND O (310 5. O O 2T OF GND O O 11. 02 012 ET. O LT. O 12.0 OGND The Assembly Language code for it can be found at: button3.s The program when the user presses down on the tactile button on rows 50-52 will light up the LED when the bl digitalRead instruction returns a 0. O True O False

Legy LOW, O .equ HIGH, 1 eau INPUT, 0 equ OUTPUT, 1 . . .data out_msg: .asc.iz "%d\n" //int main() .text .global main main: push {r} bl wiringPiSetup //pinMode(1, INPUT); mov r0, #1 mov r1, #INPUT bl pinMode //pinMode(6, INPUT); mov r0, #6 mov r1, #INPUT bl pinMode //pinMode(22, OUTPUT); mov r0, #22 mov r1, #OUTPUT bl pinMode //while(digitalRead(6)==0) mov r0, #6 bl digitalRead whl loop: button3.s ✓ I

//pinMode(22, OUTPUT); mov r0, #22 mov r1, #OUTPUT bl pinMode //while(digitalRead(6)==0) mov re, #6 bl digitalRead CMP. ro, #HIGH beg whl done //{ //int r = digitalRead(1); mov re, #1 bl digitalRead mov r4, re //printf("%d\n", r); mov r1, re ldr. ro, bl printf out_msg mov r0, #22 mov r1, r4 bl digitalWrite bal wh 1998 mov re, #0 pop (pc) //} //return 0; wh loop: whl done: //} button3.s I

In the following diagram: 5.DV O AD'S EAE YES C GND O TXP DSCL 0 EXM hei EN90 UOPE. GND O 27 0.37 O £2 24 O GND O +25 CED O 22 O AE EO ISON C 0133 OMISO OSCLE OGND 0 333 (330 GND O 5. O O 21. GND O 9:0 ET O 0 91. O 02 O 120 0.39 12.0 OGND O The Assembly Language code for it can be found at: button3.s The program uses the code: mov r0, #1 bl digitalRead to check to see if the user has pressed the tactile button on rows 34-36. O True False