Lecture 1 Flashcards
1
Q
How would you use inline assembly coding to create a delay of one CPU clock cycle?
A
asm volatile (“nop”)
2
Q
C keyword to quit a function immediately
A
Return
3
Q
C keyword to terminate a loop immediately
A
Break
4
Q
C keyword for forcing the next iteration of a loop to start immediately
A
Continue
5
Q
How many bits in a char
A
8
6
Q
How many bits in an int
A
16 bits
7
Q
How many bits in a long int
A
32
8
Q
What does the data direction register do?
A
Used to configure port pins as input or output
9
Q
What does the port register (PORTx) do?
A
Used to write output data to port
10
Q
What does the input pin address (PINx) do?
A
Used to read data from port
11
Q
What is the role of the header file
in a C program?
A
Contains All the register definitions