Week #12: (4/8-12) Mathematical Operations on the BS2

Post Reply
Posts: 1663
Joined: Fri Sep 04, 2015 6:59 pm

Week #12: (4/8-12) Mathematical Operations on the BS2

Post by rjagodowski »

We'll begin this week by finishing the content posted in Week #11 on Rotary Encoders.

Then we will be begin the discussion on the mathematical operations available on the BS2.

We will be using the Basic Stamp Syntax and Reference Manual and review some of the various mathematical operations which exist. The manual can be downloaded from Parallax's website or directly from the CSET Forums on the here .

We'll begin with the bottom of page 102 on basic arithmetic operations and the order of operations. Then move on to the Unary operators on page 105 and then the Binary operators on page 109.

We will look at some common functions and see how the BS2 can implement these functions using integer math only. Functions to look at include: Add, Subtract, Multiply, Division, Modulus, Trig Functions and Digital Logic Functions (AND, OR, etc.).

Additional Support LInks:

Binary, Inverse and Complement Codes
Post Reply

Return to “EET-260 Lecture”