Author Topic: XC9500XL slow clock  (Read 1326 times)

0 Members and 1 Guest are viewing this topic.

Online dietert1Topic starter

  • Super Contributor
  • ***
  • Posts: 2379
  • Country: br
    • CADT Homepage
XC9500XL slow clock
« on: November 08, 2019, 09:29:12 am »
Need a slow clock, like 1 KHz and tried to implement an RC generator using two pins as an asynchronous inverter. The input hysteresis mentioned in the manuals doesn't seem to work, it generates nasty ringing near the edges - several 10 nsec pulses. Anyone solved this before?

Regards, Dieter
« Last Edit: November 08, 2019, 09:43:25 am by dietert1 »
 

Offline iMo

  • Super Contributor
  • ***
  • Posts: 5145
  • Country: bt
Re: XC9500XL slow clock
« Reply #1 on: November 08, 2019, 10:25:47 am »
I never did with RC, but spent a lot of time with Xtal, with no luck.
Mind the 9500XL is pretty fast.. With slow edges it may generate crap..
A ring oscillator with a divider usually works, you would need  to spend a lot of logic for it, however..

PS: a 3 inverters ring oscillator gave me around 170MHz, as I can remember..
« Last Edit: November 08, 2019, 10:50:48 am by imo »
Readers discretion is advised..
 

Offline ogden

  • Super Contributor
  • ***
  • Posts: 3731
  • Country: lv
Re: XC9500XL slow clock
« Reply #2 on: November 08, 2019, 10:44:13 am »
Anyone solved this before?
Yes. By using solution that have chances of working. Use external crystal oscillator, then divide it. There are 32.768KHz oscillators for example
 

Online dietert1Topic starter

  • Super Contributor
  • ***
  • Posts: 2379
  • Country: br
    • CADT Homepage
Re: XC9500XL slow clock
« Reply #3 on: November 08, 2019, 12:19:49 pm »
Thanks for your support. Meanwhile i found a good solution here:

https://www.edn.com/design/power-management/4322215/Add-a-Schmitt-trigger-function-to-CPLDs-FPGAs-and-applications

Circuit in Figure 2 worked right from the start. I am using R = R2 = 2K2, R1 = 10K. With C = 470 nF output signal is 670 Hz  and has a 1(high) : 2(low) asymmetry, but that doesn't matter for the application.

Regards, Dieter
 
The following users thanked this post: iMo

Offline ogden

  • Super Contributor
  • ***
  • Posts: 3731
  • Country: lv
Re: XC9500XL slow clock
« Reply #4 on: November 08, 2019, 02:38:30 pm »
output signal is 670 Hz  and has a 1(high) : 2(low) asymmetry, but that doesn't matter for the application.
You can easily solve that by running RC oscillator on 2x higher frequency, then divide by 2 using flip-flop.
 

Online langwadt

  • Super Contributor
  • ***
  • Posts: 4713
  • Country: dk
 
The following users thanked this post: iMo

Offline jmelson

  • Super Contributor
  • ***
  • Posts: 2822
  • Country: us
Re: XC9500XL slow clock
« Reply #6 on: November 11, 2019, 01:42:53 am »
Need a slow clock, like 1 KHz and tried to implement an RC generator using two pins as an asynchronous inverter. The input hysteresis mentioned in the manuals doesn't seem to work, it generates nasty ringing near the edges - several 10 nsec pulses. Anyone solved this before?

Regards, Dieter
The 9500XL has a weak keeper on every input.  This is a non-inverting buffer that loops back the input state to itself with a 50 K series resistor.  This makes it really hard to implement RC circuits on the 9500XL family.

Anyway, hooking up signals with slow transitions across the logic threshold will not work well.  Using a higher frequency and dividing down will work much better.

Jon
 
The following users thanked this post: SiliconWizard

Online dietert1Topic starter

  • Super Contributor
  • ***
  • Posts: 2379
  • Country: br
    • CADT Homepage
Re: XC9500XL slow clock
« Reply #7 on: November 11, 2019, 11:39:49 am »
The positive feedback gate proposed in the EDN circuit i linked produces a very steep and clean response. This happens through parasitic capacitive feedback from output to input, while the negative feedback gate i had before worked as an oscillator near the switching point for the same reason.

There is a reason why it needs to be an RC oscillator. It will be a metrology grade multiplexer with bistable relays and the whole circuit should be "dead" during the measurements. The XC9500XL was chosen because it directly drives the 5 V relay coils. The whole Mux will be in a thermally isolated box, so it needs to run with some mW.

Regards, Dieter
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf