Sign in

username:

password:



Not a member?

Search Comp.Arch.Embedded



Search tips

embedded by Keywords

68HC11 | 68HC12 | 8051 | 8052 | ARM | ARM7 | Asic | AT91 | AT91RM9200 | Atmel | AVR | AVRStudio | Bootloader | CFP | CompactFlash | Cygnal | Cypress | Dataflash | DSP | eCos | EEPROM | Embedded Linux | Emulator | Endian | Ethernet | Firewire | FPGA | Freescale | GCC | GNUARM | GSM | H8 | HDLC | I2C | Infineon | Interrupts | Java | JTAG | LCD | LED | LPC2000 | MCU | Microchip | MMC | MPLAB | MSP430 | PC104 | PCB | PCI | PCMCIA | PowerPC | Rabbit | RS232 | RS485 | RTOS | SBC | SDRAM | Sensor | SPI | STK500 | UART | UML | USART | USB | Verilog | VHDL | VxWorks | Xilinx

Ads

Discussion Groups

Discussion Groups | Comp.Arch.Embedded | frequency meter with 8052 ( 8051)

There are 12 messages in this thread.

You are currently looking at messages 0 to 10.

frequency meter with 8052 ( 8051) - zotdall - 11:18 11-12-05

is there any body knows how i can build ''6-digit frequncy meter''  by
using 8051 (or 8052).?




Re: frequency meter with 8052 ( 8051) - Mark Borgerson - 12:56 11-12-05

In article <1...@g43g2000cwa.googlegroups.com>, 
k...@gmail.com says...
> is there any body knows how i can build ''6-digit frequncy meter''  by
> using 8051 (or 8052).?
> 
> 
I know, but if I told you,  I'd have to charge you!    ;-)

Seriously,  you've asked a question that can't be answered fully
in a few paragraphs.   There are  people here who know how to build a
6-digit frequency counter by using an 805X processor, but it's
a job that requires signifcant engineering.

Do you need to measure 10.0000Hz to 6 digits, or
350,000Hz to 1 Hz?

What are the input signals like?   (sine waves of variable
amplitude, or digital signals)

What will you use to display the output?  LED or LCD digit
array, or serial connection to a PC?

The answers to questions like these can make a major difference
in the design of the hardware and firmware.


Mark Borgerson


Re: frequency meter with 8052 ( 8051) - Donald - 13:27 11-12-05

zotdall wrote:
> is there any body knows how i can build ''6-digit frequncy meter''  by
> using 8051 (or 8052).?
> 
There seem to be a lot of choices on Google:

http://www.google.com/search?hl=en&q=8051+frequency+counter

I am sure you can find something close.





Re: frequency meter with 8052 ( 8051) - Jim Granville - 16:43 11-12-05

zotdall wrote:
> is there any body knows how i can build ''6-digit frequncy meter''  by
> using 8051 (or 8052).?

What is your target Fmax ? & Gate times ?

  A generic old 89C52 is not the ideal device;
Look at AT89C51ED2, (newer, better peripherals),
or maybe the AT89LP2052, or C8051F3xx series.

  The simplest scheme is to use the uC HW as much as possible;
for Freq you want Cycles/FixedTimeSample.

  The 89C51ED2 allows true HW, where you use Timer2+T2OE, in FREQ_OUT 
mode, to trigger a CAPTURE of the Externally [Fu] Clocked PCA
[Needs external wire T2 -> CEX0], on a fixed capture timebase.
  Those hard-sampled cycle values are then further added/averaged in SW.

  A 22.1184MHz Xtal and Timer2, reload value of 55296, will give 10ms
snapshot edges on T2 output pin, to capture the Fu counts.

  Then total 10,50,100 of those, for 0.1, 0.5, 1.0 second gate times. 
Fmax in is just over 5MHz, as the PCA counts at <= Pclk/4.

  You want to avoid gated topologies, as they can have aperture effects,
and do not naturally scale.
  With the capture design above, you can have a smart decimal point mode,
that gives a quick answer in the first 10ms, then another digit after
100ms, and another after 1 second (etc) - no edges are lost, so this
is possible : you can get 7/8+ digits of result at 1MHz Fin.

  Once you have this mastered, you can really impress your tutor
by also doing a Reciprocal counter design - that gives high
resolutions, independant of input frequencies.

-jg








Re: frequency meter with 8052 ( 8051) - Paul Keinanen - 01:38 12-12-05

On Mon, 12 Dec 2005 10:43:15 +1300, Jim Granville
<n...@designtools.co.nz> wrote:

>you can get 7/8+ digits of result at 1MHz Fin.

While you can get a large number of (meaningless) digits, you really
need an accurate time base/clock source. To get 6 meaningful digits,
you need a clock better than 1 ppm, for 7/8 digits, you would need
some kind of TXCO or run the crystal in a temperature compensated
oven. With a typical microprocessor crystal, you would expect to get 4
or 5 meaningful digits, unless you lock your time base to an external
accurate source such as GPS or NTP (with long integration times).

Paul
  

Re: frequency meter with 8052 ( 8051) - 04:12 12-12-05

zotdall wrote:
> is there any body knows how i can build ''6-digit frequncy meter''  by
> using 8051 (or 8052).?

It's only possible if you want a fairly low spec unless you use an
external counter/timebase and just use the micro to control it.


Re: frequency meter with 8052 ( 8051) - Rocky - 10:47 12-12-05

zotdall wrote:
> is there any body knows how i can build ''6-digit frequncy meter''  by
> using 8051 (or 8052).?

If it can be a PIC then look at

http://ironbark.bendigo.latrobe.edu.au/%7Erice/newfm/newfm.html

It goes up to 50MHz and is really simple.


Re: frequency meter with 8052 ( 8051) - zotdall - 15:50 12-12-05

i have to build it for my microcontroler lesson, and i will not use it
for money ofcourse. it should have LCD screen.


Re: frequency meter with 8052 ( 8051) - Everett M. Greene - 13:52 13-12-05

"zotdall" <k...@gmail.com> writes:
> i have to build it for my microcontroler lesson, and i will not use it
> for money ofcourse. it should have LCD screen.

You could always connect a controller to a frequency
meter via GPIB.

Re: frequency meter with 8052 ( 8051) - diggerdo - 00:35 14-12-05

Don't use a 8051. Takes 12 clocks to execute one instruction.
Use a modern micro that has a "capture" function.

Something like an Atmel ATmega88.

If you must use the 8051, use a variant. Dallas Semi (now Maxim)
makes a tripler that executes instructions every 4 clock cycles.
Crystal makes the only 8051 that executes an instruction in one clock cycle.

"zotdall" <k...@gmail.com> wrote in message 
news:1...@g43g2000cwa.googlegroups.com...
> is there any body knows how i can build ''6-digit frequncy meter''  by
> using 8051 (or 8052).?
>
> 



| 1 | 2 | next