This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Assembly Codes for frequency Measurement

Hi friends,
I need an assembly language program to test my frequency generator LM331 ,I have written program but cant make it
work ,I need to measure freq from 5khz
to 50khz Please if anyone could help me with hex codes and or assembly codes.

thanks in advance

rakesh

Parents
  • We'd need a schematic just to start helping you. Can you put a .PDF version of your schematic up on your website for us to take a look at? Without a schematic we won't know which 8051 you are using, your clock rate, what pins you've connected to your LM331, etc.

    Also, why can't we write it in C? You can take the compiler's assembly output anytime you want.

    - Mark

Reply
  • We'd need a schematic just to start helping you. Can you put a .PDF version of your schematic up on your website for us to take a look at? Without a schematic we won't know which 8051 you are using, your clock rate, what pins you've connected to your LM331, etc.

    Also, why can't we write it in C? You can take the compiler's assembly output anytime you want.

    - Mark

Children
  • hi mark,
    I have no schematics infact I have made the similar circuit as stated in the
    data sheet of lm331 .pin 3 is freq out
    and pin 7 is voltage in ,the freq varies from around 5khz to 70Khz which is my desired range of interest.I am using timer0 that is pin-13 of 89c51 to
    measure freq input and trying to glow
    7 leds tied to port 1 to see the results
    ie
    p0.0-----glows at freq below 5.9KHZ
    p1.0-----glows at 5.9KHZ
    p1.1-----glows at 8.7KHZ
    p1.2-----glows at 10.2KHZ
    p1.3-----glows at 11.2KHZ
    p1.4-----glows at 15.00KHZ
    p1.5-----glows at 19.5KHZ
    p1.6-----glows at 30KHZ
    p1.7-----glows at above 30KHZ
    This is a college project for Voltage range indicator. I shall be obliged if helped.
    Thanks
    rakesh