ecet_340-week3_homework_now_part-1

ecet_340-week3_homework_now_part-1 - Pages 323325 a 20 25...

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

Pages 323–325, problems 1–7, 10a, 20, 25, 29, 32 1. How many free-running timers do we have in the HCS12? 1 2. TCNT of the HCS12 is ____-bit. 16-bit 3. For accurate reading, the TCNT is accessed as (8-bit, 16-bit). 8-bit 4. The free-running timer supports a highest prescaler value of ______. 128 5. The free-running timer supports a lowest prescaler value of ______. 1 6. Which register holds the TOF? TFLG2 register 7. How do we enable the free-running timer? TEN D7 bit: 1 = Enable timer Setting to a high value the bit 7 of register TSCR1 10. Find the frequency and period used by the free-running timer if the crystal attached to the HCS12 has the following values: (a) XTAL = 4 MHz Cirstalfeq = 4MHz F= 4MHz/2 F= 2MHz T= 1/F T= 1/2MHz T= 0.5μs
Image of page 1

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

20. Assume that XTAL = 4 MHz. Find the value needed to generate a time delay of 5 ms. Use the largest prescaler possible. Prescaler = 128 N=(t x F)/128 N=((5x10^-3)x(4MHz/2))/128 N=78.125 25. Program channel 2 for Output Compare to generate a square wave of 1 kHz with 50% duty cycle.
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.
  • Spring '12
  • Input/output, input capture, free-running timer, TIOS, Input Capture/Output Compare

{[ 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