Serial Code For Keyshot 2: Tips and Tricks for Using KeyShot's Advanced Features
- yjohaze
- Aug 11, 2023
- 3 min read
If you would like to purchase KeyShot 8 or upgrade your current KeyShot license, simply visit the store using the button below to view your options. To view your previous orders or access your serial code, visit or, for questions about your current license, contact license@luxion.com.
If you're a KeyShot 7 customer on maintenance or purchased KeyShot 7 after August 15th, you can upgrade to KeyShot 8 today using your current serial code. If you would like to purchase KeyShot 8 or upgrade your current KeyShot license, simply visit the store using the button below to view your options. To view your previous orders or access your serial code, visit or, for questions about your current license, contact license@luxion.com.
Serial Code For Keyshot 2
Those were the design goals for an evaluation system for medium- and high-speed general purpose analog-to-digital converters, using a standard PC as the platform for evaluating the devices. The PC has two ports for external communications a serial RS-232 port and a parallel printer port. Because neither port can operate at the speeds required to run an ADC at throughput rates in excess of 10,000s of samples per second, direct connection between the PC and the ADC is not possible if the ADC is to be operated at specified throughput rates.
The software runs with a series of function keys, hot keys and on-screen buttons. With it, the user can select sample rate, number of samples to be taken, analog input range, mode of operation and control of on-chip registers. The software can also perform a window function on the captured data, carry out a fast Fourier transform (FFT), compute signal-to-noise ratio, and display the results. It can also display the spread of codes for a dc input and compute the mean and standard deviation of the distribution. The software allows the captured data to be stored to a file, from which it can be exported for processing by other software packages. Data can be taken from a file (rather then captured from the evaluation board) and processed off line.
The software comes in two main parts. The first, written in C code, runs on the PC; the second is the DSP code it runs on the evaluation control board and is based on the ADSP-21xx code. We consider here as an example a 12-bit ADC with a parallel data bus. Before examining the 21xx code, one should understand what happens when the user selects commands from the PC software.
The microcontroller also writes a value of 0x03 to adö3ess 0x3FE0 to indicate that data has been received. These addresses are called the HIP registers. There is also a HIP status register at address 0x3FE6. This register is checked to see if any new data has been written to the HIP registers, by either the DSP or the PC. The four-byte code sent to the DSP can be seen if the command line option -e+ is added to the program name running on the PC. For instance, if the program being used is AD7892.EXE, the command line is AD7892.EXE -e+.
The first step in writing code for an application is to write all the initial setup routines for the DSP the interrupt vector addresses, the serial port configurations and initialization of any flags that may be needed. (That part of the code, which depends on the specific application, will not be shown in this article.) Once the DSP has been set up, the program should wait for commands to be sent to it from the user. This is done using the Wait_Confirm subroutine as shown below and ALU input registers AX0 and AY1. AR is the ALU output register.
In this example the code is simplified to use only the timer interrupt. This can be done by waiting for the timer, starting from a preset time, to expire thus causing an interrupt. Data can then be read from the data bus and, after a short delay (if required), start the next conversion. The code below shows how the timer interrupt vector address should look when it appears in the vector table. The interrupt service routine is also shown.
When using this technique the first data value to be returned must be ignored, because it will have been read in before the conversions were started; hence it is not valid. Once all the data has been read in, it is time to upload the data to the PC. After turning off the interrupts and resetting the DAGs controlling the data memory, one can check to determine how many samples are required to be uploaded, using this code:
2ff7e9595c
Comments