Instances
| Instance | Domain | Base address | Description |
|---|---|---|---|
| QDEC20 | GLOBAL | 0x400E0000 |
Quadrature decoder QDEC20 |
Configuration
| Instance | Domain | Configuration |
|---|---|---|
| QDEC20 | GLOBAL |
Use GPIO port P1 |
Register overview
| Register | Offset | Description |
|---|---|---|
| TASKS_START | 0x000 |
Task starting the quadrature decoder |
| TASKS_STOP | 0x004 |
Task stopping the quadrature decoder |
| TASKS_READCLRACC | 0x008 |
Read and clear ACC and ACCDBL |
| TASKS_RDCLRACC | 0x00C |
Read and clear ACC |
| TASKS_RDCLRDBL | 0x010 |
Read and clear ACCDBL |
| SUBSCRIBE_START | 0x080 |
Subscribe configuration for task START |
| SUBSCRIBE_STOP | 0x084 |
Subscribe configuration for task STOP |
| SUBSCRIBE_READCLRACC | 0x088 |
Subscribe configuration for task READCLRACC |
| SUBSCRIBE_RDCLRACC | 0x08C |
Subscribe configuration for task RDCLRACC |
| SUBSCRIBE_RDCLRDBL | 0x090 |
Subscribe configuration for task RDCLRDBL |
| EVENTS_SAMPLERDY | 0x100 |
Event being generated for every new sample value written to the SAMPLE register |
| EVENTS_REPORTRDY | 0x104 |
Non-null report ready |
| EVENTS_ACCOF | 0x108 |
ACC or ACCDBL register overflow |
| EVENTS_DBLRDY | 0x10C |
Double displacement(s) detected |
| EVENTS_STOPPED | 0x110 |
QDEC has been stopped |
| PUBLISH_SAMPLERDY | 0x180 |
Publish configuration for event SAMPLERDY |
| PUBLISH_REPORTRDY | 0x184 |
Publish configuration for event REPORTRDY |
| PUBLISH_ACCOF | 0x188 |
Publish configuration for event ACCOF |
| PUBLISH_DBLRDY | 0x18C |
Publish configuration for event DBLRDY |
| PUBLISH_STOPPED | 0x190 |
Publish configuration for event STOPPED |
| SHORTS | 0x200 |
Shortcuts between local events and tasks |
| INTENSET | 0x304 |
Enable interrupt |
| INTENCLR | 0x308 |
Disable interrupt |
| ENABLE | 0x500 |
Enable the quadrature decoder |
| LEDPOL | 0x504 |
LED output pin polarity |
| SAMPLEPER | 0x508 |
Sample period |
| SAMPLE | 0x50C |
Motion sample value |
| REPORTPER | 0x510 |
Number of samples to be taken before REPORTRDY and DBLRDY events can be generated |
| ACC | 0x514 |
Register accumulating the valid transitions |
| ACCREAD | 0x518 |
Snapshot of the ACC register, updated by the READCLRACC or RDCLRACC task |
| PSEL.LED | 0x51C |
Pin select for LED signal |
| PSEL.A | 0x520 |
Pin select for A signal |
| PSEL.B | 0x524 |
Pin select for B signal |
| DBFEN | 0x528 |
Enable input debounce filters |
| LEDPRE | 0x540 |
Time period the LED is switched ON prior to sampling |
| ACCDBL | 0x544 |
Register accumulating the number of detected double transitions |
| ACCDBLREAD | 0x548 |
Snapshot of the ACCDBL, updated by the READCLRACC or RDCLRDBL task |