Professional Documents
Culture Documents
EC 15EC55P PB E7 PR
EC 15EC55P PB E7 PR
• DC motor basics.
/* Delay Program */
void MSdelay(unsigned int rTime)
{
unsigned int i,j;
for(i=0;i<=rTime;i++)
for(j=0;j<1275;j++);
}
/* Main Function*/
void main(void)
{
unsigned char Direction;
IO1DIR = 0x00070000; /* Define Port1 pin P1.16 to P1.18 as
output & P1.19 as input */
}
switch(Direction) /******* Switch case loop ********/
{
case 0: /************ case 0 – Anti-lockwise*************/
IO1SET = 0x00030000;
MSdelay(500);
IO1CLR = 0x00030000;
break;
Key Answer -a
a) False
b) True
Key Answer- b
Key Answer- d
Key Answer- c
Key Answer- a
a) True
b) False
Key Answer- b
Key Answer- a
a. Positive cycle
b. Negative cycle
c. Duty cycle
d. None of the above
Key Answer- c
Key Answer- d
Key Answer- a