External flip-flop chip to synchronize an external asynchronous input

EvLer
Messages
454
Reaction score
0
Hello everyone,

I am using an external flip-flop chip to synchronize an external asynchronous input into a microcontroller. So, what I am wondering about is how to provide a clock into the FF chip... it has to run at the same rate as the system clock of the microcontroller. Is there a way to take the oscillator clock out on a pin? ... in general that is...
I was also thinking of generating a wave from PWM with unscaled clock and rout it to the FF... or would i have to have a separate crystal oscillator chip? The microcontroller is motorolla 68hc12.
Thanks in advance.
 
Engineering news on Phys.org
nevermind... found something in the pile of documentation on the core where i can take the clock out on a pin...
 
Remember that it takes 2 FFs to synchronize the signal. Is the 2nd FF the input into the uC?
 
berkeman said:
Remember that it takes 2 FFs to synchronize the signal. Is the 2nd FF the input into the uC?

:biggrin: :biggrin: yeah, berkeman... THAT i have learned on my own mistake and will not forget. For FFT project i am writting flip-flops in vhdl, no externals.

But this one is a project on speed-detection using microcontroller, in which case i have to use external chips. Seems like it is possible to 'rout out' a clock from the core.
 

Similar threads

  • · Replies 28 ·
Replies
28
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 10 ·
Replies
10
Views
5K
  • · Replies 34 ·
2
Replies
34
Views
5K
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
2
Views
2K
Replies
39
Views
6K
  • · Replies 19 ·
Replies
19
Views
4K