Microchip Technology ADM00310 Manual De Usuario

Descargar
Página de 32
Code Example
© 2011 Microchip Technology Inc.
DS51994A-page 13
FIGURE 2-2:
MCP3903 Data View Software - Main Screen.
Connectivity is done through the serial port. First, the user must identify the com port 
number from My computer > Manage > Device Manager. After this, in “VISA resource 
names”, users must find and select the correct com port number. Only after this, can 
the START button be pressed to begin the data acquisition.
FIGURE 2-3:
MCP3903 Data View Software - Registers and Settings Screen. 
From the Edit menu, the user can open the Registers and Settings window to control 
the internal registers of the MCP3903, the sampling speed of the ADC or if any 
averaging should be done on the acquired samples.
From the buffer length, the user can select the amount of data that will be processed. 
The maximum length is 512. From the Sampling Speed Control, the user can change 
the sampling speed of the ADC. By writing a lower value, the sampling speed is 
increased, and for higher values it is decreased. The accurate value of the sampling 
speed is indicated in the Sampling speed indicator.
If the user wants to investigate the effect of averaging on the performance indicator, the 
desired value can be written in the “Averages” control. It must be noted that the 
processed buffer will decrease by a factor equal to the value of the average.
The Write Register and Read Register tabs are used to set the internal registers of 
the MCP3903. With the Write Register tab they are written and with the Read 
Register
 tab, the user can check the settings of the registers.