EEPROM and Binary Counter
Posted: Mon May 31, 2010 7:23 am
Hey all,
I made this project a few months ago and thought It would be a good idea to share it with everyone, the project involves using the on board eeprom on the microchip and is also a 8bit binary counter using 8 LEDs..
I made it so a I could learn more about programming eeprom, and learn more about addressing eeprom memory and learn about reading and writing to and from the eeprom with microchips, it will probably make a good tutorial in Brads University? hehe!
Heres a picture of the project on breadboard
How is works, well you have one button connected as a input, the microchip then counts how many times you press the button, at the same time a selected led is turned on, but the leds are arranged in a 8bit binary form, what I mean by this is that, if you pressed the button 10times this indicates 10, So the led to the far right would be on and the 4th from the right, this would indicate a binary count of 8 and 2 which = 10
If someone knows how 8bit binary works then they would understand this abit more but this could be a good project to help someone understand 8bit binary..
So has for the EEPROM side of it, when you release the counting button the microchip will save the number of counts into the eeprom and then if the power was turned off from the microchip, the next time the power was applied to the microchip the value would be read from the eeprom and displayed again on the leds..
I have also added another switch to the microchip which resets the counts and the stored eeprom counter value..
Heres the souce code
http://www.bradsprojects.com/phpBB2/upl ... v1_174.asm
I will make some schematics aswell and post them soon
I made this project a few months ago and thought It would be a good idea to share it with everyone, the project involves using the on board eeprom on the microchip and is also a 8bit binary counter using 8 LEDs..
I made it so a I could learn more about programming eeprom, and learn more about addressing eeprom memory and learn about reading and writing to and from the eeprom with microchips, it will probably make a good tutorial in Brads University? hehe!
Heres a picture of the project on breadboard
How is works, well you have one button connected as a input, the microchip then counts how many times you press the button, at the same time a selected led is turned on, but the leds are arranged in a 8bit binary form, what I mean by this is that, if you pressed the button 10times this indicates 10, So the led to the far right would be on and the 4th from the right, this would indicate a binary count of 8 and 2 which = 10
If someone knows how 8bit binary works then they would understand this abit more but this could be a good project to help someone understand 8bit binary..
So has for the EEPROM side of it, when you release the counting button the microchip will save the number of counts into the eeprom and then if the power was turned off from the microchip, the next time the power was applied to the microchip the value would be read from the eeprom and displayed again on the leds..
I have also added another switch to the microchip which resets the counts and the stored eeprom counter value..
Heres the souce code
http://www.bradsprojects.com/phpBB2/upl ... v1_174.asm
I will make some schematics aswell and post them soon