Changes

Jump to navigation Jump to search
m
Line 39: Line 39:  
** if 1, analog input range is 0 to V<sub>Reg</sub>
 
** if 1, analog input range is 0 to V<sub>Reg</sub>
 
* Coding: set to zero
 
* Coding: set to zero
** if 0, output is twos-complement
+
** if 0, output is two's complement
 
** if 1, output is binary-coded decimal (BCD)
 
** if 1, output is binary-coded decimal (BCD)
   Line 52: Line 52:  
where an X is a don't-care state.  Since the first case is almost all don't-care states, we can send the same data (last 11 bits) as in the second case, but append a zero to the front instead of a 1; this simplifies the logic involved.  The don't-care states in bits 9 and 2 we can set to zero.
 
where an X is a don't-care state.  Since the first case is almost all don't-care states, we can send the same data (last 11 bits) as in the second case, but append a zero to the front instead of a 1; this simplifies the logic involved.  The don't-care states in bits 9 and 2 we can set to zero.
   −
The data flowing back to the FPGA from the ADC will be voltage data from the channel set in the previous conversation.  We are going to use twos-complement format for the data, but it can be set to BCD by changing the last bit in the control register to a one.
+
The data flowing back to the FPGA from the ADC will be voltage data from the channel set in the previous conversation.  We are going to use two's complement format for the data, but it can be set to BCD by changing the last bit in the control register to a one.
    
The control interface to the FPGA core will be:
 
The control interface to the FPGA core will be:
1,004

edits

Navigation menu