Difference between revisions of "Circuits for barebone boards"

From sigrok
Jump to navigation Jump to search
 
(8 intermediate revisions by 3 users not shown)
Line 9: Line 9:
=== Clamp circuits with resistor / Z-Diodes ===
=== Clamp circuits with resistor / Z-Diodes ===


A clamp circuit can be used, for example view below at [http://sunbizhosting.co.uk/~spiral/blog/?p=117 Spiralbrain's Blog]. When using Zener diodes instead of the normal diodes in Spiralbrain's blog we can get also a protection from negative voltages:
A clamp circuit can be used, for example view below at [http://web.archive.org/web/20140604115345/http://sunbizhosting.co.uk/~spiral/blog/?p=117 Spiralbrain's Blog]. When using Zener diodes instead of the normal diodes in Spiralbrain's blog we can get also a protection from negative voltages:


The circuit is shown here again with Zener diodes and numbering for [[fx2lafw]] pins: [[File:Clamp_circuit1.png|thumb|<small>|3.3V clamping circuit]]. It works in the following way: Case 1: When we get a voltage over 3.3V, the overvoltage will get "absorbed" over the Z-diodes like with normal diodes normal forward-mode. Case 2: At negative voltages, the Zener effect will happen for a reverse flow from the 3.3V supply to pull up the negative input.
The circuit is shown here again with Zener diodes and numbering for [[fx2lafw]] pins: [[File:Clamp_circuit1.png|thumb|<small>|3.3V clamping circuit]]. It works in the following way: Case 1: When we get a voltage over 3.3V, the overvoltage will get "absorbed" over the Zener diodes like with normal diodes normal forward-mode. Case 2: At negative voltages, the Zener effect will happen for a reverse flow from the 3.3V supply to pull up the negative input.


For boards based on the Cypress CY7C68013A and some others it can be discussed if 4.7V or 5V Zener Diodes are also okay, as the CY7C68013A is 5V I/O tolerant -- 5V supply could then be used from USB.
For boards based on the Cypress CY7C68013A and some others it can be discussed if 4.7V or 5V Zener Diodes are also okay, as the CY7C68013A is 5V I/O tolerant -- 5V supply could then be used from USB.
Line 27: Line 27:
==== Issues measuring higher frequencies ====
==== Issues measuring higher frequencies ====


When measuring something e.g. a 12 MHz Frequency (sampling @ 24MHz, so also just barely satisfying [http://en.wikipedia.org/wiki/Nyquist%E2%80%93Shannon_sampling_theorem Nyquist-Shannon]) that can push up to 20 pF load, the resistors in the mentioned circuit (4.7 k Ohm) together with "unknown" 3.6V Zener Diodes might be too much load to overpower, the used test probes can also make an influence. Here is a comparison table which values were tried and how it turned out measuring a 12 MHz square wave:
When measuring something e.g. a 12 MHz Frequency (sampling @ 24MHz, so also just barely satisfying [http://en.wikipedia.org/wiki/Nyquist%E2%80%93Shannon_sampling_theorem Nyquist-Shannon]) that can push up to 20 pF load, the resistors in the mentioned circuit (4.7 k Ohm) together with "unknown" 3.6V Zener Diodes¹ might be too much load to overpower, the used test probes can also make an influence. Here is a comparison table which values were tried and how it turned out measuring a 12 MHz square wave:
 
¹) A 3.6 V Zener in reverse direction has a not-so-steep slope and is insufficient to protect from voltages < -0.5 V. A 3.3 V Zener diode has typical a capacity of 400 pF. With 4.7k resistor τ=1.88 µs the bandwidth is limited to approx 500 kHz.


{|
{|
! Resistor
! Resistor
! Zener Diode
! Zener Diode
! With test probes?<sup>1</sup>
! With test probes?<sup>1</sup><sup>2</sup>
! Measurement Result
! Measurement Result


|-
|-
| 4.7 k Ohm
| 3.6V
| Cheap Test probe, longer wires
| Only "high"
|-
| 890 Ohm
| 3.6V (unknown speed)
| Cheap Test probe, longer wires
| Only "high"
|-
| 1.4 k Ohm
| None
| None
| None
| Short direct wires
| Direct wired
| Sometimes "high", about 75% correct
| Always correct (if you use this, be careful)


|-
|-
| None
| 100 Ohm
| 3.6V
| 3.6V
| Cheap Test probe
| Cheap Test probe, longer wires
| Always correct (but still not advised to do!)
| Sometimes "high", about 75% correct


| 150 Ohm
|-
| 3.6V
| 100 Ohm
| Cheap Test probe
| None
| Occasionally "high", but most times correct
| Cheap Test probe, longer wires
| Sometimes "high", about 90% correct


|-
|-
| 1.4 k Ohm
| None
| None
| Direct wired
| None
| Occasionally "high", but most times correct
| Cheap Test probe, longer wires
| Sometimes "high", about 90% correct


|-
|-
| 890 Ohm
| None
| 3.6V (unknown speed)
| None
| Cheap Test probe
| Short direct wires
| Only "high"
| Sometimes "high", about 90% correct


|-
|-
| 4.7 k Ohm
| None
| 3.6V
| 3.6V
| Cheap Test probe
| Cheap Test probe, longer wires
| Only "high"
| Sometimes "high", about 90% correct
|}
|}


<sup>1</sup> [http://dx.com/p/133097 "Plastic Flat Multimeter Test Hook Clip Probes"]
 
Cheap Test probe made out of:
 
<sup>1</sup> [http://dx.com/p/133097 "Plastic Flat Multimeter Test Hook Clip Probes"]
 
<sup>2</sup> [http://www.reichelt.de/PS-25-10G-BR/3/index.html?&ARTICLE=32203&artnr=PS+25%2F10G+BR  Flexible PCB Connector]


=== With buffer IC ===
=== With buffer IC ===

Latest revision as of 23:36, 26 January 2019

This page describes which input protection / measuring circuits for barebone or other more minimal boards can be used.

Probing a circuit

Usually for a logic analyzer high input impedance (and low capacitance) is wanted, to influence the measured circuit as least as possible (don't put an additional capacitive load on it). On the other hand, one might want to use an R-C low-pass filter for the signal to block possible higher frequency spikes. If that is wanted or required, it is best to introduce an additional buffering IC that will then drive the load of the introduced capacity of the filter. This can not directly be advised for logic analyzers, but rather for analog instruments (oscilloscopes) that will usually be used in a bigger variety of cases with possibly more noise in the signal.

Input protection

Clamp circuits with resistor / Z-Diodes

A clamp circuit can be used, for example view below at Spiralbrain's Blog. When using Zener diodes instead of the normal diodes in Spiralbrain's blog we can get also a protection from negative voltages:

The circuit is shown here again with Zener diodes and numbering for fx2lafw pins:

3.3V clamping circuit

. It works in the following way: Case 1: When we get a voltage over 3.3V, the overvoltage will get "absorbed" over the Zener diodes like with normal diodes normal forward-mode. Case 2: At negative voltages, the Zener effect will happen for a reverse flow from the 3.3V supply to pull up the negative input.

For boards based on the Cypress CY7C68013A and some others it can be discussed if 4.7V or 5V Zener Diodes are also okay, as the CY7C68013A is 5V I/O tolerant -- 5V supply could then be used from USB.

When doing all this, one should be aware that not all diodes might be sufficient, as they will also introduce a minor capacitance.

The Saleae Logic Analyzer uses a specific "ESD protection IC" ( ST DVIULC6-4SC6 ) which is essentially a pair of diodes for a slightly different type of clamping / input protection, one will then just have to connect each input line after the resistors to one of the input pins of this IC. However this might not be as cheap as simple diodes and not as easily available.

Issues measuring higher frequencies

When measuring something e.g. a 12 MHz Frequency (sampling @ 24MHz, so also just barely satisfying Nyquist-Shannon) that can push up to 20 pF load, the resistors in the mentioned circuit (4.7 k Ohm) together with "unknown" 3.6V Zener Diodes¹ might be too much load to overpower, the used test probes can also make an influence. Here is a comparison table which values were tried and how it turned out measuring a 12 MHz square wave:

¹) A 3.6 V Zener in reverse direction has a not-so-steep slope and is insufficient to protect from voltages < -0.5 V. A 3.3 V Zener diode has typical a capacity of 400 pF. With 4.7k resistor τ=1.88 µs the bandwidth is limited to approx 500 kHz.

Resistor Zener Diode With test probes?12 Measurement Result
4.7 k Ohm 3.6V Cheap Test probe, longer wires Only "high"
890 Ohm 3.6V (unknown speed) Cheap Test probe, longer wires Only "high"
1.4 k Ohm None Short direct wires Sometimes "high", about 75% correct
100 Ohm 3.6V Cheap Test probe, longer wires Sometimes "high", about 75% correct
100 Ohm None Cheap Test probe, longer wires Sometimes "high", about 90% correct
None None Cheap Test probe, longer wires Sometimes "high", about 90% correct
None None Short direct wires Sometimes "high", about 90% correct
None 3.6V Cheap Test probe, longer wires Sometimes "high", about 90% correct


Cheap Test probe made out of:

1 "Plastic Flat Multimeter Test Hook Clip Probes"

2 Flexible PCB Connector

With buffer IC

Different buffer ICs can be used in combination with resistors (+ Z-Diodes to also protect the buffer IC). Depending on the IC, they can also be used for voltage-level conversion or clamping.

The 74HC241 can be driven at the measuring voltage up to 6V. Buffering can also be done by latch ICs like 74HC573 (3.3V) or 74HCT573 (5V).

Analog frontends

Designing a decent analog frontend to be used for example for fx2lafw capable devices will be a more complicated task. An appropriate ADC has to be found and an input stage with filter, protection and amplification elements needs to be designed. A possible ADC for up to 40MHz sampling frequency is the TDA 8703. An interesting project using that ADC with a parallel port can be found on volny.cz

You can also look at the analog frontend of the FX2 based EE Electronics ESLA201A or the better documented but more complex Nexus-Computing OsciPrime schematic there: [1]

For probes, an interesting DIY very high frequency probe can be found here at Douglas C. Smith Web Page