Pout3_AP1

# Pout3_AP1 - Outcome 3 Primary Assessment Analysis Problem...

This preview shows pages 1–2. Sign up to view the full content.

; ; Outcome 3 Primary Assessment - Analysis Problem 1 (AP1) ; ;*********************************************************************** ; ; For this problem you are to: ; ; (a) Calculate the input sampling frequency and the output sampling frequency ; ; (b) Finish the "tim_isr" routine ; ; (c) Answer the MC questions 21-25 on the exam document ; ;*********************************************************************** ; ; Resources used: ; - TIM TC7 - interrupt used to initiate ATD conversion ; - ATD Ch 0 - audio input ; - ATD Ch 1 - potentiometer input for digital volume control ; - PWM Ch 0 - audio output ; ;*********************************************************************** ; ; 9S12C32 REGISTER MAP INITRM EQU \$0010 ; INITRM - INTERNAL RAM POSITION REGISTER INITRG EQU \$0011 ; INITRG - INTERNAL REGISTER POSITION REGISTER ; ==== CRG - Clock and Reset Generator SYNR EQU \$0034 ; CRG synthesizer register REFDV EQU \$0035 ; CRG reference divider register CRGFLG EQU \$0037 ; CRG flags register CRGINT EQU \$0038 CLKSEL EQU \$0039 ; CRG clock select register PLLCTL EQU \$003A ; CRG PLL control register RTICTL EQU \$003B COPCTL EQU \$003C ; ==== ATD (analog to Digital) Converter / Pushbutton Digital Inputs ATDCTL2 EQU \$0082 ; ATDCTL2 control register ATDCTL3 EQU \$0083 ; ATDCTL3 control register ATDCTL4 EQU \$0084 ; ATDCTL4 control register ATDCTL5 EQU \$0085 ; ATDCTL5 control register ATDSTAT EQU \$0086 ; ATDSTAT0 status register ATDDR0 EQU \$0090 ; result register array (16-bit values) ATDDR1 EQU \$0092 ; ==== TIM - Timer module TIOS EQU \$0040 ;TIOS - TIMER INPUT CAPTURE/OUTPUT COMPARE SELECT TCNT EQU \$0044 TSCR1 EQU \$0046 ; TSCR1 - TIMER SYSTEM CONTROL REGISTER 1 TSCR2 EQU \$004D ; TSCR2 - TIMER SYSTEM CONTROL REGISTER 2 TIE EQU \$004C ; TIE - TIMER INTERRUPT ENABLE REGISTER TFLG1 EQU \$004E ; TFLG1 - TIMER INTERRUPT FLAG 1 TFLG2 EQU \$004F ; TFLG2 - TIMER INTERRUPT FLAG 2

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 02/12/2012 for the course ECE 362 taught by Professor Staff during the Spring '08 term at Purdue.

### Page1 / 5

Pout3_AP1 - Outcome 3 Primary Assessment Analysis Problem...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online