Exam1 - xi}, 9n 807 Section: g’ . ' Paget of3 ‘ V ‘...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
Background image of page 3

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

View Full DocumentRight Arrow Icon
Background image of page 4
Background image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: xi}, 9n 807 Section: g’ . ' Paget of3 ‘ V ‘ NAME: Last 4 Digits of ss# «r. J.) Compute the Time of One Instruction Cycle if a 5 Mega Hertz Crystal is used ., and the Compiler & Programming Software is set to HSPLL. , 4,, .t ~ “ My“? emerax “v e {we r i _, , ,,., v - a y, Eitét l 2.) Hand Draw (Neatly) a Circuit‘Seh’ematlc based on the following! Embedded Microcontroller: Use a PIC18F4620 1.) Properly connect a SPDT Mechanical Switch to Bit-4 of Port-A, such that, this switch can be set to either 3 Logical “1” (+5v) or a Logical “0" (Ground). 2.) Properly connect an LED to Bit-1 of Port-B, such that, a Low Level Output Voltage will Turn on the LED. 3.) According to the Datasheet, properly connect a 4MHz Crystal to the Microcontroller, such that, it will insure oscillation. 4.) Properly connect the following controller Pins for Normal Operation; Vdd, Vss, and MClr‘ You must use the correct Pin Numbers, from the Microcontroller Datasheet, when you Draw the Schematic! Circuit Schematic 3.) When uging Assembly Code, _ 48-07 ‘v "V e20f3 ‘9' .. Last 4 Digits of SS# Information must be passed through the _ _ _ i of the Microcontroller before it can be Trans rred to another Location within the Microcontroner. 5.) a.) How Many [/0 Ports are on the PIC18F4620 Microcontroller’? “x 7‘" g f-"s. ’’’’ ,4 W if: (“’3 (Ame b g f O 2/ (3%" (,3 } 17"?) i C) 3L) \ Describe the Meaning of Non-Volatile Memory! {\1} \{N‘L “W \‘J {-2} ix 23., \J v ‘3 z/LQ f “Ax, g1 ff!“ {jg-kimfi e ., ¥ 3,»? ' g5? ” Section: % flfi’ NAME: _ _ ,V WW _._ o 7.) Find the Frequency of Oscillation of the following circuit! +9V R4 100 OHMS Cps IOGUF R1 R2 50K OHMS 100K OHMS R5 100 OHMS +9V U1 MCP$292 2? DUAL OPAMF RAlLvTORAIL R3 200K onms Square-Wave Output (0 To +9V) R5 R7 10K OHMS 4K OHMS C1 ‘. NanoFarau ....._ 6‘ MZ M1 N-Ckm MOSFET N~Ch. MOSF ET EE316 EXAM #1 2—05—08 Spring-2008 Section: l Dr. Riggio Page 4 of 5 NAME: __' Last 4 Digits of PSU-ID# 2.) State the Three Circuit Requirements which must be present in an oscillator circuit to insure a sustained oscillation for anythe oscillator configurations within the PIC 1 8F4620 Microcontroller. / ’ t / i (“24%) F at "a ' If r f VJ . l "a fa '15 37W) 5A2;— 39’} t it Om cartel film; l can/{S a.) : x l 3.) What is used to make the Frequency of the Oscillator within the PIC18F462 Microcontroller equal to 4 ti 5 the external crystal’s frequency , be? A .. JV ” “EL/y 5.) All Information must be passed through the 1" of the Microcontroller before it can be Transferred to another Location within the Microcontroller. ‘1. / 6.) Describe the Meaning of Non-Volatile Memory! TL? we. "" +r> w, m c r2“*v’r<-‘»f<w* Wit- Slor 0mg Luigi/h Hsz the, gist 0.x“ rem-m WM, d am 'm L.!,.}1”3'jfi Orifil’i‘i" “JV/l i3“? 57“ x. (J EE316 Spring-2008 EXAM #1 2—05—08 Dr. Riggio Page 5 of 5 Last 4 Digits of PSU-ID# ‘ 7.) For the following, assume that the 'SC‘lllator within the PIC18F4620 Microcontroller is operating at a frequency of 40 MHz, and that the (equ) Statements for PortA and PortB exist to allow for proper register addressing. You may also assume that Port-A is an Input Port and that Port-B is an Output Port. You may also assume that Count is an 8-Bit Register. Section: I NAME: A) Determine the Time that it takes to Loop through the following Code the First Time. B) What is the value of the Count Register after the Code has passed thru the Loop a Second Time? Count=1 PortA, 1 =0 ;Previously Loaded (Do not include this term when computing loop time. ;Previously Loaded (Do not include this term when computing loop time. ;The following Code represents the Loop in Question. Start btfsc PortA,1 goto Start movlw 02h movwf PortB decfsz Count,1 goto Start /’ p, goto Start M ‘ W / I ~ = "Z. (:4 w 5 { fricmw : latter a“ ml”); Jfi’ : i (‘44? t”. M fikaCfit,1/rtgf’ytr “' I: 5:5} is i 1/“ 1""! i. n V I n i . 3 m (“M ,V ‘ W W Li. " ll’iovii n lrw " (l {We .3 l 3 . ML: 3 . n; u M M) i I M i i 4 ' i i J: i t. , i ‘ t W +ml<ii isi’r’t I! “Q 1) "S ' (M (£52 1 3 5"” if” ~ i {ii It s ...
View Full Document

This note was uploaded on 03/11/2012 for the course E E 316 taught by Professor Ridiggio during the Spring '11 term at Penn State.

Page1 / 5

Exam1 - xi}, 9n 807 Section: g’ . ' Paget of3 ‘ V ‘...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online