Clock generation |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Internally generated sample rate | |||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||
Maximum internal sample rate in MS/s normal mode |
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||||||
| Remapped channels |
|
|
|
| 3110 |
| 3111 |
| 3112 |
| 3120 |
| 3121 |
| 3122 |
| 3130 |
| 3131 |
| 3132 |
| 3140 |
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||
| ch0 | ch1 | ch2 | ch3 | ch4 | ch5 | ch6 | ch7 |
|
|
|
|
|
|
|
|
|
| ||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| x |
|
|
|
|
|
|
| 1 |
| 1 |
| 1 |
| 10 |
| 10 |
| 10 |
| 25 |
| 25 |
| 25 |
| 50 |
|
| x | x |
|
|
|
|
|
| 1 |
| 1 |
| 1 |
| 10 |
| 10 |
| 10 |
| 25 |
| 25 |
| 25 |
| 25 |
|
| x |
|
|
| x |
|
|
| n.a. |
| n.a. |
| 1 |
| n.a. |
| n.a. |
| 10 |
| n.a. |
| n.a. |
| 25 |
| n.a. |
|
| x | x |
|
| x | x |
|
| n.a. |
| n.a. |
| 1 |
| n.a. |
| n.a. |
| 10 |
| n.a. |
| n.a. |
| 25 |
| n.a. |
|
| x | x | x | x |
|
|
|
| n.a. |
| 1 |
| 1 |
| n.a. |
| 10 |
| 10 |
| n.a. |
| 25 |
| 25 |
| n.a. |
|
| x | x | x | x | x | x | x | x | n.a. |
| n.a. |
| 1 |
| n.a. |
| n.a. |
| 10 |
| n.a. |
| n.a. |
| 25 |
| n.a. |
|
Using plain quartz without PLL
In some cases it is useful for the application not to have the
Register | Value | Direction | Description |
SPC_PLL_ENABLE | 20030 | r/w | A „1“ enables the PLL mode (default) or disables it by writing a 0 to this register |
The sample rates that could be set are then limited to the quartz speed divided by one of the below mentioned dividers. The quartz used on the board is similar to the maximum sample rate the board can achieve. As with PLL mode it’s also possible to set a desired sample rate and read it back. The result will then again be the best matching sample rate.
Available divider values
1 | 2 | 4 | 8 | 10 | 16 | 20 | 40 | 50 | 80 | 100 | 200 |
400 | 500 | 800 | 1000 | 2000 |
|
|
|
|
|
|
|
External reference clock
If you have an external clock generator with a extremly stable frequency, you can use it as a reference clock. You can connect it to the external clock connector and the PLL will be fed with this clock instead of the internal reference. Due to the fact that the driver needs to know the external fed in frequency for an exact calculation of the sample rate you must set the the SPC_REFERENCECLOCK register accordingly as shown in the table below:
Register | Value | Direction | Description | |
SPC_REFERENCECLOCK | 20140 | r/w | Programs the external reference clock in the range from 1 MHz to 125 MHz. | |
| 0 |
| Internal reference is used for internal sampling rate generation | |
| External sample rate in Hz as an integer value | External reference is used. You need to set up this register exactly to the frequency of the external fed in clock. |
The driver automatically sets the PLL to achieve the desired sample rate. Therefore it examines the reference clock and the sample rate regis- ters.
Example of reference clock:
SpcSetParam (hDrv, SPC_EXTERNALCLOCK, | 0); | // Set to internal | clock | |||
SpcSetParam | (hDrv, | SPC_REFERENCECLOCK, | 10000000); | // | Reference clock | that is fed in is 10 MHz |
SpcSetParam | (hDrv, | SPC_SAMPLERATE, | 25000000); | // | We want to have | 25 MHz as sample rate |
Termination of the clock input
If the external connector is used as an input, either for feeding in an external reference clock or for external clocking you can enable a 50 Ohm termination on the board. If the termination is disabled, the impedance is high. Please make sure that your source is capable of driving that current and that it still fulfills the clock input specification as given in the technical data section.
Register | Value | Direction | Description |
SPC_CLOCK50OHM | 20120 | read/write | A „1“ enables the 50 Ohm termination at the external clock connector. Only possible, when using |
|
|
| the external connector as an input. |
(c) Spectrum GmbH | 59 |