Transcribed Image Text: Q4: Sketch the wiring and write program by Mikro C which changes the state of PORTB after click push button? Q5: If

Transcribed Image Text: Q4:
Sketch the wiring and write program by Mikro C which changes the state of PORTB after click
push button?
Q5:
If the external frequency of PIC 161877A is 4MHZ.
ORG
0x0000
banksel TRISB
CLRF TRISB
banksel PORTB
loop
MOVLW B’00000000′
MOVWF PORTB
CALL tempo
MOVLW B’11111111′
MOVWF PORTB
CALL tempo
goto loop
tempo
movly 4
movwf H’33’
boucle3
clrf H’34’
boucle2
clrf H’35’ 1 (1)
(23644 a256)+caa256
boucle1
nop 1
decfsz H’35’ 2
goto bouclel C
decfsz H’34’.
0oto bouclez
decfsz H’335
goto boucle3
return
END
Calculate the time for executing one sycle ?
How many cycles and time needs the subprogram tempo for executing?
Explain and scetch the main function of this program?

homeworkhelplocal
Calculate your essay price
(550 words)

Approximate price: $22

How it Works

1

It only takes a couple of minutes to fill in your details, select the type of paper you need (essay, term paper, etc.), give us all necessary information regarding your assignment.

2

Once we receive your request, one of our customer support representatives will contact you within 24 hours with more specific information about how much it'll cost for this particular project.

3

After receiving payment confirmation via PayPal or credit card – we begin working on your detailed outline, which is based on the requirements given by yourself upon ordering.

4

Once approved, your order is complete and will be emailed directly to the email address provided before payment was made!