Posts

Showing posts from May, 2018

Interfacing a DAC

Image
Interface a DAC and generate Triangular and Square waveforms   Interfacing diagram: P0.4 to P0.11 are used to get the Digital values. 1. Program to generate square wave with DAC interface           0xff   ________              |                       |                   |              |                       |                   |              |                      |       ...

7-segment LED interface

Image
Display the Hex digits 0 to F on a 7-segment LED interface Theory: DISPLAY ARE CONNECTED IN COMMON CATHODE MODE Port0 Connected to data lines of all 7 segement displays               a             ----           f|  g |b            |----|           e|    |c             ----  . dot               d             a = P0.04                                               ...

Interface a Stepper motor

Image
Interface a Stepper motor and rotate it in clockwise and anti- clockwise direction: THEORY: A stepper motor (also referred to as step or stepping motor) is an electromechanical device achieving mechanical movements through conversion of electrical pulses. Stepping motors can be viewed as electric motors without commutators. Typically, all winding in the motor are part of the stator, and the rotor is either a permanent magnet or, in the case of variable reluctance motors, a toothed block of some magnetically soft material. All of the commutation must be handled externally by the motor controller, and typically, the motors and controllers are designed so that the motor may be held in any fixed position as well as being rotated one way or the other.  Stepper motors are driven by digital pulses rather than by a continuous applied voltage. Unlike conventional electric motors which rotate continuously, stepper motors rotate or step in fixed angular increments. A stepper mot...