Electronics ru
Advanced Search +
Go Back   RadioLocman Forum > Electronics and ... > Projects and Advices

Projects and Advices Schematics and projects for elrctronic engineers.

Thread Tools Search this Thread
Old 11-26-2015, 10:09 AM   #1
Join Date: Nov 2013
Posts: 55
tracert is on a distinguished road
Default Programming an EEPROM

I want to programe an EEPROM 27C256 that allows me to convert a BCD number to a binary number. I want to introduce 3 bcd numbers (12 bits) and obtain a 8 bits binary number (from 0 to 255). I have tried to programe it but i don't know how to do it. Does anyone have this file?
tracert is offline   Reply With Quote
Old 11-28-2015, 08:14 AM   #2
Senior Member
Join Date: Oct 2013
Posts: 131
symbol is on a distinguished road

With only 1000 different BCD numbers from 000 to 999, clearly you don't need to use every one of the 32,768 locations available in the EEPROM. So just connect the BCD bits to the first twelve address bits, A0 through A11, and program those locations with the binary equivalents of the three decimal numbers from 000 to 999.

Some of the bit combinations will not be used of course since a BCD representation only goes from 0 (0000) to 9 (1001) whereas the binary values for four bits would also include A (1010) through F (1111). Make sure address bits A12, A13, and A14 are tied to logic zero. Note you could program the EEPROM to convert a 4-digit set of BCD numbers and still have 55,537 locations left over.
symbol is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Discussion: An improved offline driver lights an LED string Radiolocman Robot Projects and Advices 1 03-30-2015 07:26 AM
EEPROM data corruption Atmega32a rapid Microcontrollers (MCU) 3 03-27-2015 09:16 PM
Programming Language mark Microcontrollers (MCU) 1 01-04-2015 01:55 PM
Discussion: PIC and EEPROM Programmer Radiolocman Robot Microcontrollers (MCU) 2 12-12-2012 09:42 AM

All times are GMT. The time now is 10:49 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Slices ↓
Radiolocman facebook Radiolocman twitter Radiolocman google plus