
ADSP-2126x SHARC Processor Hardware Reference
14-17
Peripheral Timer
/* Route Timer 0 Output to DAI Pin 1 via SRU */
r0 = TIMER0_Od;dm(SRU_PIN0) = r0;
/* Enable DAI pin 1 as an output */
r0 = PBEN_HIGH_Of;
dm(SRU_PBEN0) = r0;
ustat3 = TIMODEPWM| /* PWM Out Mode */
PULSE| /* Positive edge is active */
PRDCNT; /* Count to end of period */
dm(TM0CTL) = ustat3;
R0 = 0xFF;
dm(TM0PRD) = R0; /* Timer 0 period = 255 */
R1 = 0x3F;
dm(TM0W) = R1; /* Timer 0 Pulse width = 15 */
R0 = TIM0EN; /* enable timer 0 */
dm(TMSTAT) = R0;
/* --------------End of Timer 0 Setup-------------------- */
/* Set up and enable Timer 1 in Width Capture mode */
/* Use the output of Timer 0 as the input to Timer 1 */
/* Route Timer 0 Output to Timer 1 Input via SRU */
r0=(TIMER0_Oe<<TIMER1_I);
dm(SRU_EXT_MISCB)=r0;
ustat3 = TIMODEW| /* PWM Out Mode */
PULSE| /* Positive edge is active */
Содержание ADSP-21261 SHARC
Страница 30: ...Contents xxx ADSP 2126x SHARC Processor Hardware Reference ...
Страница 40: ...Register Diagram Conventions xl ADSP 2126x SHARC Processor Hardware Reference ...
Страница 58: ...Differences From Previous SHARCs 1 18 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 112: ...Secondary Processing Element PEy 2 54 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 178: ...Summary 3 66 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 204: ...DAG Instruction Summary 4 26 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 322: ...Setting Up DMA 7 32 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 436: ...SPORT Programming Examples 9 86 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 521: ...ADSP 2126x SHARC Processor Hardware Reference 11 31 Input Data Port rts IDP_ISR end ...
Страница 522: ...Input Data Port Programming Example 11 32 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 590: ...Timer Programming Examples 14 20 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 796: ...I O Processor Registers A 174 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 800: ...B 4 ADSP 2126x SHARC Processor Core Manual ...
Страница 846: ...Index I 36 ADSP 2126x SHARC Processor Hardware Reference ...