Analog Devices ADSP-21261 SHARC Hardware Reference Manual page 587

Hide thumbs Also See for ADSP-21261 SHARC:
Table of Contents

Advertisement

/* 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|
PULSE|
PRDCNT;
dm(TM0CTL) = ustat3;
R0 = 0xFF;
dm(TM0PRD) = R0;
R1 = 0x3F;
dm(TM0W) = R1;
R0 = TIM0EN;
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|
PULSE|
ADSP-2126x SHARC Processor Hardware Reference
/* PWM Out Mode */
/* Positive edge is active */
/* Count to end of period */
/* Timer 0 period = 255 */
/* Timer 0 Pulse width = 15 */
/* enable timer 0 */
/* PWM Out Mode */
/* Positive edge is active */
Peripheral Timer
14-17

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ADSP-21261 SHARC and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Adsp-21262 sharcAdsp-21266 sharcAdsp-21267 sharc

Table of Contents