Offset in core for bus CSR : 0x00028000
| ems_1 | Encoder Management System | ||||||
|---|---|---|---|---|---|---|---|
| Register Name | Byte Addr Offset | Field | Bits | Type | subtype | Reset | Description |
| CSR_EMS_1_IP_ID | 0x0 | 32 | Unique ID for this IP block | ||||
| IP_NUMBER | 7:0 | c | 0x1F | IP identifier number | |||
| MFR_NUMBER | 15:8 | c | 0xFF | Manufacturer number | |||
| RESERVED | 31:16 | rsv | 0 | Reserved bits | |||
| CSR_EMS_1_IP_VER | 0x4 | 32 | IP Version | ||||
| MINOR_NUMBER | 7:0 | c | 0x01 | Minor number | |||
| MAJOR_NUMBER | 15:8 | c | 0x00 | Major number | |||
| RESERVED | 31:16 | rsv | 0 | Reserved bits | |||
| CSR_EMS_1_EMS_ENABLE | 0x8 | 4 | EMS Enable | ||||
| INIT | 0 | w | 0x0 | EMS init | |||
| EMS_ENABLE | 1 | w | 0x0 | EMS enable | |||
| ENC_ENABLE | 2 | w | 0x0 | Encoder enable | |||
| PD_ENABLE | 3 | w | 0x0 | PD enable | |||
| CSR_EMS_1_EMS_CONFIG | 0xc | 13 | EMS configuration | ||||
| ENC_SEL | 1:0 | w | 0x0 | Encoder source selection | |||
| PD_SEL | 4:2 | w | 0x0 | PD source selection: Bit-0: 0 => RS422, 1 => Single-Ended. Bit-1: 1 => Exclude Harware PDs. Bit-2: 0 => In single-ended mode use PNP, 1 => In single-ended mode use NPN | |||
| ENC_PH1_EN | 5 | w | 0x0 | Encoder phase-1 enable | |||
| ENC_PH2_EN | 6 | w | 0x0 | Encoder phase-2 enable | |||
| ENC_RISING_EN | 7 | w | 0x0 | Enables encoder events on rising edges | |||
| ENC_FALLING_EN | 8 | w | 0x0 | Enables encoder events on falling edges | |||
| PD_RISING_EN | 9 | w | 0x0 | Enables PD events on rising edges | |||
| PD_FALLING_EN | 10 | w | 0x0 | Enables PD events on falling edges | |||
| SET_ABS_POS | 11 | w0 | 0x0 | Preset the value of the absolute position | |||
| SWITCH_POS_NEG_INC | 12 | w | 0x0 | When enabled, positive and negative increments of the absolute position are switched, achieving the same effect of switching encoder phase-1 and phase-2. | |||
| CSR_EMS_1_PD_HYST | 0x10 | 17 | PD hysteresis control | ||||
| PD_HYST_VAL | 15:0 | w | 0x20 | Enable rising-edge events on source 0 | |||
| CLR_PD_HYST | 16 | w0 | 0x0 | clears the PD hysteresis filter | |||
| CSR_EMS_1_SW_CTRL | 0x14 | 6 | software controls | ||||
| SW_PD | 0 | w0 | 0x0 | Generates a SW PD event | |||
| KICKSTART_PD | 1 | w0 | 0x0 | Generates a kickstart PD event | |||
| RESERVED | 3:2 | rsv | 0 | Reserved bits | |||
| SW_POS_STEP | 4 | w0 | 0x0 | single SW increment for the absolute position | |||
| SW_NEG_STEP | 5 | w0 | 0x0 | single SW decrement for the absolute position | |||
| CSR_EMS_1_ENC_DIVIDE | 0x18 | 4 | w | 0x0 | division factor for the encoder increments/decrements | ||
| CSR_EMS_1_ABS_POS_PRESET | 0x1c | 32 | w | signed | 0x0 | value fetched into the absolute-position when the preset ctrl bit is asserted | |
| CSR_EMS_1_ABS_POS_VAL | 0x20 | 32 | r | signed | 0x0 | Current value of the absolute-position (With/Without Encoder Multiplier) | |
| CSR_EMS_1_PD_CNT | 0x24 | 32 | PD counters | ||||
| TOTAL_PD_CNT | 15:0 | r | 0x0 | Total number of PD events | |||
| HW_PD_CNT | 31:16 | r | 0x0 | Number of hardware PD events | |||
| CSR_EMS_1_FILT_CFG | 0x28 | 20 | input filters configuration | ||||
| FILTER_ORDER | 4:0 | w | 0x0 | filter order | |||
| RESERVED-0 | 7:5 | rsv | 0 | Reserved bits | |||
| FILTER_HYST | 12:8 | w | 0x0 | filter hysteresis | |||
| RESERVED-1 | 15:13 | rsv | 0 | Reserved bits | |||
| LD_FILT_CFG_PD | 16 | w0 | 0x0 | applies the specified configuration to the PD filter | |||
| LD_FILT_CFG_P1 | 17 | w0 | 0x0 | applies the specified configuration to the Encoder-Phase-1 filter | |||
| LD_FILT_CFG_P2 | 18 | w0 | 0x0 | applies the specified configuration to the Encoder-Phase-2 filter | |||
| LD_FILT_CFG_ZP | 19 | w0 | 0x0 | applies the specified configuration to the Encoder-Zero-Phase filter | |||
| CSR_EMS_1_MULT_CFG | 0x2c | 15 | Encoder Multiplier Configuration | ||||
| USE_MULTIPLIER | 0 | w | 0x0 | Use Encoder Multiplier | |||
| RESERVED-1 | 3:1 | rsv | 0 | Reserved bits | |||
| MULT_SEL | 6:4 | w | 0x0 | Encoder Multiplication selection {0-7}: log2(Mult-Value), 0 => Mult=1, 1 => Mult=2, 7 => Mult=128 | |||
| RESERVED-2 | 7 | rsv | 0 | Reserved bits | |||
| VEL_AVG_STEPS | 14:8 | w | 0x10 | Number of consecutive encoder steps used for generating the average velocity (must be an even number, max is 64) | |||
| CSR_EMS_1_DELTA_T_INIT | 0x30 | 28 | w | 0x19 | Set this constant to 25 for Encoder Mult values less or equal than 8, otherwise set to 2*Mult-Value | ||
| CSR_EMS_1_VEL_TIMEOUT | 0x34 | 28 | w | 0x7A120 | Velocity estimation time-out period | ||
| CSR_EMS_1_ABS_POS_IN_STAT | 0x38 | 32 | r | signed | 0x0 | Debug - Current value of the Absolute Position, without Encoder Multiplier | |
| CSR_EMS_1_ABS_POS_VEL_STAT | 0x3c | 32 | r | signed | 0x0 | Debug - Current value of the Absolute Position, after the encoder velocity estimation block | |
Register/field type key:
| Type | Description |
|---|---|
| c | Constant, with value defined by "reset" attribute |
| rsv | Same as constant, except no reset value and always 0. Can be mixed with write types. |
| w | Write register (and read—no write only type). Register defined in register block and reset to "reset" attribute value. Split into fields (if applicable) for signalling and output, where attribute associated with fields, not register. |
| wp | Write with pulse. Register is not declared in block, but write bus split into fields as output port signals, and a pulse generated on write to register address. Register reads back 0. The "reset" attribute is for documentation only, as set externally. |
| w0 | Same as w, but auto-clears to 0 (and thus always reads as 0). At output port, signal will go high for one cycle when bit is written with a 1 (no effect if written to a 0). No "reset" attribute, as must always be 0. |
| r | Read only value. Input ports generated for each field (where applicable), and concatenated on returned read data bus. |
| rp | Similar to r, but a pulse generated on a read access to the register address to allow peripheral logic to update value. The "reset" attribute is for documentation only, as set externally. |
| rwp | Similar to wp, but also generates a (separate) pulse on a read access to the register |
| bitdef | Defines the bits used in the read, set, clear registers |
| Subype | Description |
| unsigned | Register/field is specified as an unsigned value. |
| signed | Register/field is specified as a signed value. |
| <blank> | Register/field sign status is not explicitly defined and defaults to unsigned. |
Copyright © 2024 Global Inkjet Systems. Generated by gen_htm.py —2024-10-30 09:43