Arrays and Addressing Modes GROUP MEMBER’S : 1. Nayan Badsha -213010010 2. Sumiaya Yasmin - 213010021 3. Sheikh Tanjim Hasan - 213010029 4. Ashraful Islam- 213010043 5. Md Zakir Hossen Rana-213010052 SUBMITTED TO : MD Takvir Anam Lecturer Department Of EEE Green University Of Bangladesh
02 04 03 01 Pesentation Outline Introduction One Dimensional Arrays 05 Addressing Modes Two-Dimensional Arrays An Application: Averaging Test Scores
Introduction Arrays and addressing modes are fundamental concepts in microcontroller programming and interfacing. Arrays are collections of variables that are stored sequentially in memory. They allow you to store multiple values of the same data type under one name. Each element in an array is accessed by its index, which indicates its position in the array.
One Dimensional Arrays One-dimensional arrays are a fundamental data structure in programming that allow you to store and manipulate a collection of elements of the same data type.
Addressing Modes
Two-Dimensional Arrays Two-dimensional arrays, also known as matrices, are arrays of arrays. They provide a convenient way to store and manipulate data in a tabular format, with rows and columns. In microcontroller programming, two-dimensional arrays are often used to represent grids of sensor readings, pixel values in images, or game boards.
An Application: Averaging Test Scores Let's illustrate the use of a two-dimensional array with an application: averaging test scores. Suppose you have a class of students, and each student has taken four tests. You want to calculate the average score for each student.