ECET 330 Week 6 Homework

Published on July 2017 | Categories: Education | Downloads: 75 | Comments: 0 | Views: 988
Download PDF   Embed   Report

ECET 330 Week 6 Homework Click Below Link To Purchase www.foxtutor.com/product/ecet-330-week-6-homework 1. Write a program to continuously read the DIP switches connected to PORTA and send it to PORTB. 2. Assume that eight DIP switches are connected to PORTB and eight LEDs are connected to PORTC. Assume that the switch values are normally high. Turn all of the LEDs on and wait in a loop until one of the switches becomes zero. At that time, send 0x55 to PORTC 3. Write a C program to declare two character arrays called list1 and list2. Initialize list1 with your first and last name. Write the main code to copy list1 to list2. 4. Write a function to convert a character to uppercase (if it is lowercase) and return the character. Hint: Subtracting 0x20 from the ASCII code of a lowercase character makes it an uppercase 5. Write a C program to convert a packed BCD at Port B to ASCII and display the bytes on PORTC and PORTD.

Comments

Content

ECET 330 Week 6 Homework Click Below Link To Purchase www.foxtutor.com/product/ecet-330-week-6-homework 1. Write a program to continuously read the DIP switches connected to PORTA and send it to PORTB. 2. Assume that eight DIP switches are connected to PORTB and eight LEDs are connected to PORTC. Assume that the switch values are normally high. Turn all of the LEDs on and wait in a loop until one of the switches becomes zero. At that time, send 0x55 to PORTC 3. Write a C program to declare two character arrays called list1 and list2. Initialize list1 with your first and last name. Write the main code to copy list1 to list2. 4. Write a function to convert a character to uppercase (if it is lowercase) and return the character. Hint: Subtracting 0x20 from the ASCII code of a lowercase character makes it an uppercase 5. Write a C program to convert a packed BCD at Port B to ASCII and display the bytes on PORTC and PORTD.

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close