The goal of the project is to design a timer for SLR cameras capable of taking long exposure and time lapse photography. At the heart of theĀ device will be a ATmega micro-controller and a 16×2 back lite LCD display. The entire project is being developed as open-source hardware and software being hosted on Google [...]
Filed under: Electronics, FOSS, Hardware, Programming, Software by Daniel
No Comments »
This is a simple n-bit wrapping up counter. The n parameter can be changed to make this 4, 8, … bit counter were n = <number of bits> – 1. The CLK signal can be any signal you want and will increment the value of the counter on the positive edge of a pulse, RST [...]
Filed under: Computers, Programming, Software by Daniel
No Comments »
This is an expansion upon my SevenSegmentDisplayDriver module which will allow you to drive a dual seven segment display, specifically the add-on for the Spartan 3E but it should be quite easy to modify for other FPGA’s. The basic premise of this module is you have a dual seven segment display which activates the left [...]
Filed under: Computers, Hardware, Programming, Software by Daniel
2 Comments »
This code will take a four bit number and decode it into the seven individual segments to drive a seven segment display. nIn is the four bit number to be decoded and ssOut is the array of segments for the display going from a, being the LSB, to g being the MSB.
Filed under: Computers, Programming, Software by Daniel
2 Comments »
This is code is for an simple asynchronous wrapping n-bit adder. By changing the value of n you can make it a 2, 4, … bit adder where n = <number of bits> – 1. f is the output register that will have the current value of the counter, cOut is the carry output. a [...]
Filed under: Computers, Programming, Software by Daniel
1 Comment »
The following code is a simple state machine that determines the direction that the knob on the Spartan 3E is turning and outputs a clock signal (Count) as it turns. A & B are the inputs from the encoders on the knob, RST & CLK are the reset and clock obviously. Count is the clock [...]
Filed under: Computers, Hardware, Programming, Software by Daniel
No Comments »