• skip to content



flink-project

Universal Serial Interface to FPGA's

User Tools

  • Admin
  • Log In

Site Tools

  • Recent Changes
  • Media Manager
  • Sitemap
You are here: start » subdevices

subdevices

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
subdevices [2023/12/06 14:32] – [Stepper Motor] ursgrafsubdevices [2024/04/09 20:46] (current) – [DAC] ursgraf
Line 34: Line 34:
 |0x28|4|value_1|r|no|channel 1: digitized input value| |0x28|4|value_1|r|no|channel 1: digitized input value|
 |..|4|..|r/w|no|..| |..|4|..|r/w|no|..|
-The status register in the subheader is unused with this function. In the configuration register setting the bit 0 will reset the subdevice. This subdevice uses a pin on the FPGA device for each channel.+The status register in the subheader is unused with this function. In the configuration register setting the bit 0 will reset the subdevice. This subdevice uses 3 to 4 pins for the SPI depending on the particular type.
 ==== Subtypes ==== ==== Subtypes ====
 Currently there are three subtypes of this subdevice. The subtype information can be found in the ''function'' register of the header. Currently there are three subtypes of this subdevice. The subtype information can be found in the ''function'' register of the header.
Line 49: Line 49:
 |0x28|4|value_1|r/w|no|channel 1: digital output value| |0x28|4|value_1|r/w|no|channel 1: digital output value|
 |..|4|..|r/w|no|..| |..|4|..|r/w|no|..|
-The status register in the subheader is unused with this function. In the configuration register setting the bit 0 will reset the subdevice. This subdevice uses a pin on the FPGA device for each channel.+The status register in the subheader is unused with this function. In the configuration register setting the bit 0 will reset the subdevice. This subdevice uses 5 pins.
 ==== Subtypes ==== ==== Subtypes ====
 Currently there is one subtype of this subdevice. The subtype information can be found in the ''function'' register of the header. Currently there is one subtype of this subdevice. The subtype information can be found in the ''function'' register of the header.
 ^Subtype ID^Description^Example^ ^Subtype ID^Description^Example^
 |0x1|Simple DAC where the outputs are continuously set. All channels are updated at the same time|AD5668| |0x1|Simple DAC where the outputs are continuously set. All channels are updated at the same time|AD5668|
 +|0x2|Simple DAC where the outputs are continuously set. All channels are individually updated, +-10V|AD5754|
  
 ===== GPIO ===== ===== GPIO =====
Line 349: Line 350:
 |0xnn+4|4|acc_1|r/w|no|motor 1: acceleration prescaler between start and top speed| |0xnn+4|4|acc_1|r/w|no|motor 1: acceleration prescaler between start and top speed|
 |..|4|..|r/w|no|..| |..|4|..|r/w|no|..|
-|0xoo|4|stepps_todo_0|r/w|no|motor 0: destination position (number of steps)| +|0xoo|4|dest_steps_0|r/w|no|motor 0: destination position (number of steps)| 
-|0xoo+4|4|stepps_todo_1|r/w|no|motor 1: destination position (number of steps)|+|0xoo+4|4|dest_steps_1|r/w|no|motor 1: destination position (number of steps)|
 |..|4|..|r/w|no|..| |..|4|..|r/w|no|..|
-|0xpp|4|stepps_done_0|r|no|motor 0: current position (number of steps)| +|0xpp|4|curr_steps_0|r|no|motor 0: current position (number of steps)| 
-|0xpp+4|4|stepps_done_1|r|no|motor 1: current position (number of steps)|+|0xpp+4|4|curr_steps_1|r|no|motor 1: current position (number of steps)|
 |..|4|..|r|no|..| |..|4|..|r|no|..|
  
 === Motor Configuration Register === === Motor Configuration Register ===
 | 31 | ... | 06 | 05 | 04..03 | 02 | 01 | 00 | | 31 | ... | 06 | 05 | 04..03 | 02 | 01 | 00 |
-| | | Reset Stepcounter | Start | Run Mode | Two Phase | Full Step | Direction |+| | | Reset Step Counter | Start | Run Mode | Two Phase | Full Step | Direction |
  
   * Direction: 1 => CW; 0=> CCW   * Direction: 1 => CW; 0=> CCW
Line 364: Line 365:
   * Two Phase: 1 => two phase operation, 0 => one phase operation. Only required in full step mode.   * Two Phase: 1 => two phase operation, 0 => one phase operation. Only required in full step mode.
   * Run Mode: 00 => free running, no holding torque, 01 => stepping mode, 10 => speed mode, 11 => reserved   * Run Mode: 00 => free running, no holding torque, 01 => stepping mode, 10 => speed mode, 11 => reserved
-  * Start: if set to 1 the motor will start until stopped by a 0 or the number of steps is reached in stepping mode+  * Start: if set to 1 the motor will start. Writing a '0' will immediately stop the motor. The module will clear this bit to '0' when the number of steps is reached in stepping mode. You have to configure the register first and set the start bit only in a next register access.
   * Reset Step Counter: A '1' will reset the step counter   * Reset Step Counter: A '1' will reset the step counter
  
Line 385: Line 386:
  
 ^Offset^Size [byte] ^Name^r/w^Const^Description^ ^Offset^Size [byte] ^Name^r/w^Const^Description^
-|0x20|4|irq_line_0|r/w|no|IRQ line 0: number to flink IRQ| +|0x20|4|irq_line_0|r/w|no|IRQ line 0: number of flink IRQ| 
-|0x24|4|irq_line_1|r/w|no|IRQ line 1: number to flink IRQ|+|0x24|4|irq_line_1|r/w|no|IRQ line 1: number of flink IRQ|
 |..|4|..|r/w|no|..| |..|4|..|r/w|no|..|
  
Line 396: Line 397:
 1 => first signal (LSB) of the input vector.\\ 1 => first signal (LSB) of the input vector.\\
 2 => second signal of the input vector.\\ 2 => second signal of the input vector.\\
-... (and so on)+... 
  
subdevices.1701869578.txt.gz · Last modified: 2023/12/06 14:32 by ursgraf

Page Tools

  • Show page
  • Old revisions
  • Back to top
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki