Path: EDN Asia >> Design Ideas >> IC/Board/Systems Design >> CPLD links two instruments with half-duty-cycle generator
IC/Board/Systems Design Share print

CPLD links two instruments with half-duty-cycle generator

03 May 2016  | Yu-Chieh Chen

Share this page with your friends

When synchronizing two instruments' signals, it is crucial to make sure that the receiver can latch the sender's synchronous signal. For example, a pulse generator generates synchronizing pulses while generating the main pulse signal. For the Avtek AV-1015B, the pulse generator's duty cycle is approximately 50 nsec at TTL with a 50Ω load. The goal of this design idea is to increase the pulse generator's high-level width to meet the triggering spec of a lock-in amplifier. The synchronizing pulse's frequency is 10 Hz to 102 kHz, which is the lock-in amplifier's frequency range.

Because the synchronizing pulse synchronizes to the main pulse, you must minimize any delay in calculating the lock-in amplifier's synchronizing input. And, because the user can change the frequency of the pulse train from the pulse generator, the synchronizing signal's frequency also changes. Therefore, you must make sure that the circuit properly calculates and generates the synchronizing signal, no matter how the user sets the output of the pulse generator.


Figure: When programmed into a CPLD, this algorithm expeditiously generates a synchronizing signal at half the input frequency.


The figure shows the half-duty-cycle generator's algorithm. The CPLD first waits for the positive-edge trigger, then starts to count at a frequency of 60 MHz, and waits for the next positive-edge trigger. When the next positive edge comes, the synchronizing signal's period counting is complete. The counting value then gets saved in a buffer and divided by 2 to yield the value for half-duty-cycle generation.

In tests, the half-duty-cycle generator in this Design Idea worked over a frequency range of 2 Hz to 450 kHz. You can use this design not only in a pulse generator, but also in any synchronizing signal in which the pulse is too narrow for other system triggering. The half-duty-cycle generator fits into a CPLD, such as an Altera EPM570 with a 60-MHz system clock and an MM74HCT244 buffer to output a TTL signal. Listing 1 contains the program for the CPLD.


About the author
Yu-Chieh Chen contributed this article.


This article is a Design Idea selected for re-publication by the editors. It was first published on October 11, 2007 in EDN.com.




Want to more of this to be delivered to you for FREE?

Subscribe to EDN Asia alerts and receive the latest design ideas and product news in your inbox.

Got to make sure you're not a robot. Please enter the code displayed on the right.

Time to activate your subscription - it's easy!

We have sent an activate request to your registerd e-email. Simply click on the link to activate your subscription.

We're doing this to protect your privacy and ensure you successfully receive your e-mail alerts.


Add New Comment
Visitor (To avoid code verification, simply login or register with us. It is fast and free!)
*Verify code:
Tech Impact

Regional Roundup
Control this smart glass with the blink of an eye
K-Glass 2 detects users' eye movements to point the cursor to recognise computer icons or objects in the Internet, and uses winks for commands. The researchers call this interface the "i-Mouse."

GlobalFoundries extends grants to Singapore students
ARM, Tencent Games team up to improve mobile gaming


News | Products | Design Features | Regional Roundup | Tech Impact