Embed presentation
Download to read offline









This document discusses arithmetic and logical operations in C programming for embedded systems. It defines common arithmetic operations like addition, subtraction, multiplication and division. It also defines logical operators like AND, OR, NOT and bitwise operators like &, |, ^, ~. Examples are given of how to use these operations to manipulate data stored in ports and shift bits. Code samples are provided to demonstrate performing logic operations on values and shifting bits in C.







