Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > MCU clock divider vs. VHDL divider

Reply
Thread Tools

MCU clock divider vs. VHDL divider

 
 
Matt Clement
Guest
Posts: n/a
 
      04-20-2006
Hello

I have built both a PIC microchip controlled clock divider as well as a CPLD
clock divider in the past for various projects but was told today that a
VHDL or discrete logic will always be "cleaner" than one run with a PIC. Is
this accurate? We are looking to create a clock on the order of 10-20Khz
from something faster. We are looking to get a very low jitter output.
Anyone offer any data backing either design?

thanks


 
Reply With Quote
 
 
 
 
Pascal Peyremorte
Guest
Posts: n/a
 
      04-20-2006
Matt Clement a écrit :
> Hello
>
> I have built both a PIC microchip controlled clock divider as well as a CPLD
> clock divider in the past for various projects but was told today that a
> VHDL or discrete logic will always be "cleaner" than one run with a PIC. Is
> this accurate? We are looking to create a clock on the order of 10-20Khz
> from something faster. We are looking to get a very low jitter output.
> Anyone offer any data backing either design?
>
> thanks


Good evening,

I do not agree fully with the one "cleaner" than the other. "Differents"
would be better...

If you wants an asynchronous divider (driven by original clock), PIC
cannot handle it. PLD can, but jitter will no be handled very well.

If you wants a synchronous divider (synchronized to an external clock),
PIC has its output latched from its main clock. PLD can have a same
output configuration.
10..20 kHz can be handled by both them in the same manner if the main
clock is large enought to use an integer count value for compute wave
timings.
But ... you cannot use "C" to write the PLD description, so do not use
it for pic if you wants to have comparable results Use asm.


Pascal
 
Reply With Quote
 
 
 
 
Mike Treseler
Guest
Posts: n/a
 
      04-20-2006
Matt Clement wrote:

> I have built both a PIC microchip controlled clock divider as well as a CPLD
> clock divider in the past for various projects but was told today that a
> VHDL or discrete logic will always be "cleaner" than one run with a PIC. Is
> this accurate? We are looking to create a clock on the order of 10-20Khz
> from something faster. We are looking to get a very low jitter output.


The jitter from a hardware divider
would be almost as good as the reference clock.
If that were the only function I needed,
I would just buy a clock/divider chip.

The microcontroller output jitter would depend
on port output execution timing and variable delays
from caches, irq etc. Do the math.

-- Mike Treseler
 
Reply With Quote
 
Marcus Harnisch
Guest
Posts: n/a
 
      04-28-2006
Mike Treseler <> writes:

> The microcontroller output jitter would depend
> on port output execution timing and variable delays
> from caches, irq etc. Do the math.


Unless, of course, the MCU has a programmable PWM timer. Many do these
days.

-- Marcus
The Germans have inherited a filthy Saxon culture and no more need be
said about them.
-- Mark Ballard, The Register
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Generating a 78MHz clock from a 100MHz base clock (VHDL) pierpaolo.bagnasco@gmail.com VHDL 5 01-07-2013 05:31 PM
MCU programming tips Gernot Frisch C++ 1 06-06-2006 03:58 PM
Error in clock divider from FAQ yolanda3000@freenet.de VHDL 2 09-06-2005 01:16 PM
Clock Divider Mohammed A khader VHDL 4 03-14-2005 11:46 AM
Need help with a 3510 MCU/3520 Gateway... The Prisoner Cisco 0 01-21-2004 06:32 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57