1. Write a C language main function that multiplies two integers a and b, with the result being stored in a long integer. Use some arbitrary numbers for testing.
2. Re-write the above problem such that the main function initializes a and b, then calls a function that uses a and b as input parameters, performs the multiplication, and returns the long result.
3. What is the Code Warrior name used to identify the data direction register, bit 6, on port P?
4. Write a simple C language function that initializes the GPIO bits on port B, such that bit 7 is an input with pullup enabled, bit 6 is an output, and no other bits are manipulated.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here