You are on page 1of 2

HOMEWORK

Embedded Systems
Problem Set 05: Embedded C with 8051

Instructor: Dr. Hung Ta


Release: February 24, 2021

61FIT2ESY
HANU-Faculty of Information Technology Embedded Systems

Embedded C programs [1], [2]


Problem 1 (Menu)
Use EDsim51 and Keil to create a menu in LCD like:

1. HANU-FIT

(a) CS
(b) ES
(c) IT
(d) IS

Hint: Use the source code in LA04-Task 2.

C programs [3]
Problem 3 (Print a String Backward [3, Ex. 6.36])
Write a recursive function stringReverse that takes a character array as an argument,
prints it back to front and returns nothing. The function should stop processing and return
when the terminating null character of the string is encountered.

Problem 4
Read Chapter 7: Pointers [3], then do the exercise 7.1-7.6 (page 438-349).

References
[1] J. Rogers, “EDsim51 - 8051 Simulator,” https://www.edsim51.com/, 2016.

[2] Arm Limitted, “Keil C51 - C Examples,” http://www.keil.com/download/list/c51.htm,


2019.

[3] Paul Deitel and Harvey Deitel, C How to Program, Pearson, 8th edition, 2016, Global
Edition.

Problem Set 05: Embedded C with 8051 Page 1 of 1

You might also like