Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
EEPROM i2c problem!
I need help with i2c EEPROM!
I built code to write and read from I2c EEPROM conected to 89s52 (at 24MHz)
but i have problem!
when i send first byte of device adress i get ACK from memory, but when
i send memory byte (start of memory) i don't get ACK, what is the problem...
Re: How to display calculating real number on 7segment displ
For all who hve similar problem i found solution!
typedef unsigned int uint;
typedef unsigned char ubyte;
uint tm,to;
void divide(uint a, uint b)
{
uint x=0;
ubyte i;
tm=a/b;
x=a%b;
for(i=4;i>=1;i--)
{
if(x<b) x=x*10...
Yes i know! I first search all posta i can find, not only here! But replays don't suit me!
In short i write:
switch(sel){
case 1:case 10:case 100:
a=(sel*value1)/value2;
b=(sel*value1)%value2;
break;
case 1000:
a=(value1)/value2;
b=(value1)%value2;
break;
and then lot of if then else
to...
I need to display numbers from formula:
result=sel*value1/value2;
sel have values (1,10,100,1000)
value1 and value2 are unsigned integers
On four 7 segment display i need to show first 3 number with decimal dot!
I need calculation without using float or double values!
I make some code but he...
Thanks for response, but!
Your response didn't help me!
I already know speed is coming from that loops, but i don't know how to calculate
that!
I don't know how long is single instructions are executed!
Does any know how to calculate that?
coding for i2c
Here is code for I2C communication what i have!
Is for 8051 microcontrollers, but ca be easily adopt to any micro.
Is written in Keil C!
If you want in assembler you can find it on net!
I know that diodes are wrong orientation!
I forgot to change in circuit!
I agree with your comment, also I get these results!
I try my design, and change some details and I have found right design
who will work like I think.I can regulate current from couple nA to 2.3mA (in simulation for now)...
That circuit I have, only diference is I use zener diode, not two standard diodes.
Only problem with your circuit is that current always go trough condenzator.
Then when circuit going to empty condenzator trough another NPN transistor
connected between + and - pin of condenzator with 100 ohms...
Sorry I can't use them!
I must use only transistors to get
current and must have Voltage on capacitor biger than 3V!
I have found one current source with PNP transistor and Zener diode.
Now, problem is how to regulate current!
I need schematic to kontrol current with microkontroler.
It is used to charge kapacitors and then with window komparator (from 1V to 2.5V) generate impuls who is proprtional with time of charge kapacitor.
Any idea is welcome!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.