Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
There are so many different type and families of microcontrollers out there it makes it very difficult to decide which one to buy. There are 8 bit, 16 bit and 32 bit controllers and so many different manufacturers making these chips it really makes it confusing which one to use for your project. I will need a microcontroller that will be able to count frequencies to at least 40 Mhz. Any suggestions or help would be appreciated.
Frank
There are a number of PIC based 50MHz frequency counters - the first one on a VERY, VERY old Microchip application note, and using 7 segment LED displays - there are later versions though that use an LCD text module instead.
I found a very good website were they are building counters that will measure frequencies uo to 50 Mhz using a PIC 16F628. Maybe I will end up trying this PIC 16F628 if its still available. https://www.qsl.net/dl4yhf/freq_count...q_counter.html
Appreciate your help
I found a very good website were they are building counters that will measure frequencies uo to 50 Mhz using a PIC 16F628. Maybe I will end up trying this PIC 16F628 if its still available. https://www.qsl.net/dl4yhf/freq_count...q_counter.html
Appreciate your help
It's hardly 'some' parts - almost all PIC's will work as 50MHz frequency counters, it's nothing to do with the clock speed of the processor, it's using the physical hardware in the chip - which exceeds 50MHz capability.
It's hardly 'some' parts - almost all PIC's will work as 50MHz frequency counters, it's nothing to do with the clock speed of the processor, it's using the physical hardware in the chip - which exceeds 50MHz capability.
"An external clock source applied to the Tn pin can be used as Timer/Counter clock (clkTn). The Tn pin is sampled once every system clock cycle by the pin synchronization logic."
This means that the external clock to Timer/Counter unit (in AVR) must be less than half the system clock. So PICs are better in that respect. What is a typical speed limit for PIC timer/counter (or whatever the peripheral unit is called in PIC)?
EDIT: Apparently most AVRs have also at least one Timer/counter unit that can be clocked asynchronously.
EDIT2: The specs for AVR asynchronous mode says: "The CPU main clock frequency must be more than four times the Oscillator frequency.". So that is even worse than the synchronous mode.. strange. I think the async mode is mainly designed for RTC.
This means that the external clock to Timer/Counter unit (in AVR) must be less than half the system clock. So PICs are better in that respect. What is a typical speed limit for PIC timer/counter (or whatever the peripheral unit is called in PIC)?
It's a standard TTL type spec - so 50MHz minimum - it can be used as a counter for an external input independent of the PIC processor, which is just used to read the value out (in a rather clever way, as only half of it can be read directly).
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.