![]() |
AVR1600 Using the XMEGA Quadrature Decoder
|

Go to the source code of this file.
Functions | |
| void | generate_qdec_signal (PORT_t *qPort, uint8_t lineCount, uint8_t freq, bool dir) |
| Initializes TCE0 to create Qadrature signal. More... | |
| void generate_qdec_signal | ( | PORT_t * | qPort, |
| uint8_t | lineCount, | ||
| uint8_t | freq, | ||
| bool | dir | ||
| ) |
Initializes TCE0 to create Qadrature signal.
Calculates the values to create a Quadrature signal that has a frequency given from the freq parameter.
| qPort | The port to set the signal out on. |
| lineCount | The number of lines in the Quadrature encoder. |
| freq | The frequency that is put out, (time between index signal/one rotation). |
| dir | The direction of the signal to be generated, clockwise or counterclockwise signal. |
Definition at line 94 of file qdec_signal_generator.c.
References F_CPU, lineCount, q_test_sig_Port, and test_lineCount.
Referenced by main().
Generated on Thu Oct 26 2017 13:33:37 for AVR1600 Using the XMEGA Quadrature Decoder by 1.8.13
|