Question: The key given in Table 1 is executed on the PIC microcontroller in the circuit according to the code fragment given at the bottom what

The key given in Table 1 is executed on the PIC microcontroller in the circuit according to the code fragment given at the bottom
what happens to the direction and angle of motion of the stepper motor rotor (relative to the given reference position (R)) when their position is applied?
(show by calculating). Results given without an account will not be evaluated.
5 the 5V stepper motor used in the circuit has a step angle of 1.5. Each key combination given in Table 1
it is not applied until the engine reaches its final position (stops). The engine will start from point R (Row 1).
#include
#fuses XT,NOWDT,NOPROTECT,NOBROWNOUT
#use delay(clock=4000000) // four millions
#use fast_io(a)
#use fast_io(b)
int i,j,x=5,y=0;
int seri[]={10,9,11,8,7,12,14,4,13,6,5,2,15,3,0,1};
#int_rb
void of_1()
{ if(input(pin_b4)) x = x + 2;
if(input(pin_b5)) x = x * 2;
if(input(pin_b6)) x = x - 4;
if(input(pin_b7)) x = x * 3;
if(input(pin_a0)) x = x * 2;
if(input(pin_a1)) y = 1;
for(i=0;i
{ if(y==0)
for(j=0;j
{ output_b(series[j]);
delay_ms(50); }
else
for(j=15;j>=0;j-2)
{ output_b(series[j]);
delay_ms(50); }
} x = 10; y = 0;
}
void main ()
{ // Assume required setups;set_tris_a(0x0F);
set_tris_b(0xF0);
output_b(0x00);
enable_interrupts(int_rb);
enable_interrupts(GLOBAL);
while(1);
S1) (30 puan) * R1 C3 C1 U1 U2 zip 10 COM 1C A X1 CRISTAL 34 40 C2 8 19 BAPO UL HOSCICLKIN? ROTH OSCACKOUT Ral MCLIOVIH RB 44 RACING R14 RAVAN RBS ARABANGIREA RASANSREF MOSO RATBOX RASANASS ROUTICSOTICK RCUTIOSUCCP REUNSRD HCIOCP1 S MANOR CASCUSCLE REZANTICS RCUSOVSOA RCSV RCS/TXOCK HCICKI Step Motor SV SV -V +5V +5V -V A 220 220 start Lee start 102d ADOS RDYSP: RDA P522 ROUPS ROAPSP ADOPSO RDP D757 CCW, 120 2 CW, 60 example motion1 example motion2 ROW Kay Numbat 1 2 3 4 5 6 STEP MOTOR AKKAAK Direction of Rotation Ange 2 KAAAKK Drection Betation Angle KAAKK Direction of Rotation Angle KAIKKA Drection of motion angle AAAKKK 5 Orection in Angle Don Of An Angle A WYOPEN K KEY CLOSE Tablo 1 S1) (30 puan) * R1 C3 C1 U1 U2 zip 10 COM 1C A X1 CRISTAL 34 40 C2 8 19 BAPO UL HOSCICLKIN? ROTH OSCACKOUT Ral MCLIOVIH RB 44 RACING R14 RAVAN RBS ARABANGIREA RASANSREF MOSO RATBOX RASANASS ROUTICSOTICK RCUTIOSUCCP REUNSRD HCIOCP1 S MANOR CASCUSCLE REZANTICS RCUSOVSOA RCSV RCS/TXOCK HCICKI Step Motor SV SV -V +5V +5V -V A 220 220 start Lee start 102d ADOS RDYSP: RDA P522 ROUPS ROAPSP ADOPSO RDP D757 CCW, 120 2 CW, 60 example motion1 example motion2 ROW Kay Numbat 1 2 3 4 5 6 STEP MOTOR AKKAAK Direction of Rotation Ange 2 KAAAKK Drection Betation Angle KAAKK Direction of Rotation Angle KAIKKA Drection of motion angle AAAKKK 5 Orection in Angle Don Of An Angle A WYOPEN K KEY CLOSE Tablo 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
