Simple PWM Controller

The PWM controller I designed makes use of a 2-bit Johnson counter to generate an A and B wave form as shown below The output wave form has similar properties to a Gray Code, where it can be seen by inspection that only 1 bit changes per clock cycle making it ideal as the basis […]

Static (Lexical) vs Dynamic Scoping – Programming Languages and Compilers

All programming languages allow names to be associated with values by means of definitions, and a name is said to be in the ‘scope’ of its definition. When a name is mentioned in a program, its dentition (if any) must be known, in order for its ‘invocation’ to make sense. However, most languages allow names […]