Enable all 6 PSC outputs
[PSC Macros]
set all enable in POC register
More...
Detailed Description
set all enable in POC register
Define Documentation
| #define PSC_ASYNCHRONOUS_OUTPUT_CONTROL 0 |
| #define PSC_CLOCK_SOURCE_EQ_CLKIO 0 |
| #define PSC_CLOCK_SOURCE_EQ_PLL 1 |
| #define Psc_complete_and_stop |
( |
|
) |
|
| #define PSC_DISACTIVATE_ALL_OUTPUTS 4 |
| #define PSC_DISACTIVATE_OUTPUT_A 1 |
| #define PSC_DISACTIVATE_OUTPUT_AB 3 |
| #define PSC_DISACTIVATE_OUTPUT_B 2 |
| #define PSC_DIV_CLOCK_BY_256 3 |
| #define PSC_DIV_CLOCK_BY_32 2 |
| #define PSC_DIV_CLOCK_BY_4 1 |
| #define Psc_enable_all_outputs |
( |
|
) |
|
Value:
POC = (1<<POEN2B)| \
(1<<POEN2A)| \
(1<<POEN1B)| \
(1<<POEN1A)| \
(1<<POEN0B)| \
(1<<POEN0A);
Definition at line 77 of file psc_drv.h.
| #define PSC_INPUT_FILTER_DISABLE 0 |
| #define PSC_INPUT_FILTER_ENABLE 1 |
| #define PSC_INPUT_NO_ACTION 0 |
| #define PSC_MODE_CENTERED 1 |
| #define PSC_MODE_ONE_RAMP 0 |
| #define PSC_NODIV_CLOCK 0 |
| #define PSC_OUTPUT_HIGH 1 |
| #define PSC_OVERLAP_DISABLE 0 |
| #define PSC_OVERLAP_ENABLE 1 |
| #define Psc_select_outputs |
( |
val2B, |
|
|
val2A, |
|
|
val1B, |
|
|
val1A, |
|
|
val0B, |
|
|
val0A |
|
) |
|
Value:
POC = (val2B<<POEN2B)| \
(val2A<<POEN2A)| \
(val1B<<POEN1B)| \
(val1A<<POEN1A)| \
(val0B<<POEN0B)| \
(val0A<<POEN0A);
Definition at line 91 of file psc_drv.h.
| #define PSC_SYNCHRONOUS_OUTPUT_CONTROL 1 |
| #define PSC_USE_COMPARATOR 1 |
| #define PSC_USE_HIGH_LEVEL 1 |
| #define PSC_USE_LOW_LEVEL 0 |