{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

aLec20_OCinterrupts - Introduction to Embedded...

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

View Full Document Right Arrow Icon
Introduction to Embedded Microcomputer Systems Lecture 20.1 Jonathan W. Valvano Periodic Interrupts Data acquisition (Lab 6, 7) samples ADC Signal generation output to DAC Audio player (Lab 8) Communications Digital controller FSM Linear control system (EE362K) Read Book Sections 9.1, 9.2, 9.4, 9.6.1, 9.6.2 , 9.10 Moore example in Metrowerks Open example and run with FollowPC mode 1) Where does the 9S12 spend most of its time? 2) How do we recover this lost productivity? const struct State{ unsigned char Out; // Output to Port T unsigned short Time; // Time in msec to wait const struct State *Next[4]; // if input =0,1,2,3 }; typedef const struct State StateType; typedef StateType * StatePtr; #define SA &fsm[0] #define SB &fsm[1] #define SC &fsm[2] #define SD &fsm[3] #define SE &fsm[4] #define SF &fsm[5] StateType fsm[6]={ {0x01,2,{SB,SC,SD,SE}}, // SA,SB fast alternate toggle {0x02,2,{SA,SC,SD,SE}}, // SB {0x03,1,{SA,SC,SD,SE}}, // SC both on {0x00,1,{SA,SC,SD,SE}}, // SD both off {0x00,10,{SA,SC,SD,SF}}, // SE,SF together toggle {0x03,10,{SA,SC,SD,SE}} // SF }; StatePtr Pt; // Current State unsigned char Input; //---------FSMInit------------------
Image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern