Difference between revisions of "MRI lab: FPGA controller documentation"

From Course Wiki
Jump to: navigation, search
(Control registers)
Line 5: Line 5:
 
!Bits
 
!Bits
 
!Function
 
!Function
 +
!device
 
|-
 
|-
 
|PhaseIncrement
 
|PhaseIncrement
 
|31:0
 
|31:0
 
|Frequency of generated sinewave
 
|Frequency of generated sinewave
 +
|/dev/pio_phaseIncrement
 
|-
 
|-
 
|Pulse1On
 
|Pulse1On
 
|31:0
 
|31:0
 
|Length of first pulse
 
|Length of first pulse
 +
|/dev/pio_pulse1On
 
|-
 
|-
 
|Pulse1Off
 
|Pulse1Off
Line 21: Line 24:
 
|31:0
 
|31:0
 
|Length of second pulse
 
|Length of second pulse
 +
|/dev/pio_pulse1Off
 
|-
 
|-
|Pulse2Off
+
|Pulse2On
 
|31:0
 
|31:0
 
|Interval between second pulse and end of cycle
 
|Interval between second pulse and end of cycle
 +
|/dev/pio_pulse2Off
 
|-
 
|-
 
!PulseControl
 
!PulseControl
 +
|
 +
|
 +
|/dev/pio_pulse2On
 
|-
 
|-
 
|
 
|
 
|4
 
|4
 
|0=normal operation (ADC data); 1=A/D test (count)
 
|0=normal operation (ADC data); 1=A/D test (count)
 +
|
 
|}
 
|}
  
 
==API==
 
==API==

Revision as of 20:29, 15 June 2010

Control registers

Register Bits Function device
PhaseIncrement 31:0 Frequency of generated sinewave /dev/pio_phaseIncrement
Pulse1On 31:0 Length of first pulse /dev/pio_pulse1On
Pulse1Off 31:0 Interval between first and second pulse
Pulse2On 31:0 Length of second pulse /dev/pio_pulse1Off
Pulse2On 31:0 Interval between second pulse and end of cycle /dev/pio_pulse2Off
PulseControl /dev/pio_pulse2On
4 0=normal operation (ADC data); 1=A/D test (count)

API