Continue to Site

Welcome to EDAboard.com

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.

Recent content by milem

  1. M

    EEPROM i2c problem! Lack of AKC after data

    Re: EEPROM i2c problem! My code is : void send (void) { TR1=1; i2sda=i2scl=1;NOP; // Signali starta i2sda=0;NOP;i2scl=0; // k=0; TR1=1; i=0; send_byte(0xA0); //Slanje adrese...
  2. M

    EEPROM i2c problem! Lack of AKC after data

    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...
  3. M

    How to display calculating real number on 7segment display!

    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...
  4. M

    How to display calculating real number on 7segment display!

    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...
  5. M

    How to display calculating real number on 7segment display!

    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...
  6. M

    Need simple question with I2C code!

    That's good idea! But i don't have good osciloscope to measure that! Thanks! In short i need only to know are speed is under 400kHz!
  7. M

    Need simple question with I2C code!

    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?
  8. M

    I2C communication code for PIC16F877A in Mikro C

    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!
  9. M

    Need simple question with I2C code!

    I need to know on what speed microkontroler 89S52 (24.000 MHz oscilator) will communicate trough I2C bus using given code in atachment!
  10. M

    Costant current with Atmel 89C52

    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)...
  11. M

    Costant current with Atmel 89C52

    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...
  12. M

    Costant current with Atmel 89C52

    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!
  13. M

    Costant current with Atmel 89C52

    Range is to maximum about 4mA. And maximum steps are 7. (One port 7 for selecting current and 1 for empting cpacitor).
  14. M

    Costant current with Atmel 89C52

    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!

Part and Inventory Search

Back
Top