8-bit or 16-bit mode, and the prescaling ratio

Assignment Help C/C++ Programming
Reference no: EM13165636

 8-bit or 16-bit mode, and the prescaling ratio. You can assume XTAL = 10M Hz or at the frequency you specify.

  1. Write a C program to generate a frequency of

  1. 200 Hz on PORTA pin 3. You do not have to write all the code, just specify which example(s) of the Mazidi book you modify from, with the page number. Show the new contents of Timer configuration register, Timer High (say TMR0H), Timer Low register if applicable. Also show how you calculate. (in other words, the original code may have T0CON = 0x0; and your new code may have T0CON = 0x88; the original code may show TMR0H = 0xFF; and your new code may show TMR0H = 0x ED; Explain and showhow you derive these)

  2. 200 Hz on PORTA pin 3 when a switch SW = 0 and 400 Hz on PORTA pin 4 when SW = 1 for the same switch. Assume this switch SW connects to PORTA pin 0. The code of part (b) can come from (a) with suitable modification.

  3. With 2 switches SW1 and SW2:

 

200 Hz on PORTA pin 3 when SW1 = 0, SW2= 0;

400 Hz on PORTA pin 4 when SW1 = 1, SW2 = 0;

800 HZ on PORTA pin 5 when SW1 = 0, SW2 = 1; and

1600 HZ on PORTA pin 6 when SW1 = 1, SW2 = 1.

 

Here SW1 is connected to PORTA pin 0 and SW2 is connected to PORTA pin1.

 

  1. Write a C program with a 200 Hz external clock fed into pin T1CKI (not T0CKI) to display the seconds and minutes on PORTB and PORTD. You can pick your timer as in 8 bit or 16 bit mode. Show which example can be modified from and how the code is modified.

 

 

Reference no: EM13165636

Questions Cloud

Calculate the vapor pressure at 20?C of a solution : Calculate the vapor pressure at 20?C of a solution containing 3.641 g of naphthalene in 22.7 g of chloroform (CHCl3). Naphthalene (C10H8) has a low vapor pressure and may be assumed to be nonvolatile. The vapor pressure of chloroform at 20?C is 15..
Which set of quantum numbers describes the highest energy : Which set of quantum numbers describes the highest energy electron found in the ground state of a Scandium atom?
Prepare consolidation journal entries in correct form : Compare the accounting treatment of dividends appropriated from pre-control and post control equities of a subsidiary. Consider the accounting by the companies paying and receiving the dividend, as well as by the corporate group.
How much potassium nitrate has to dissolve in water : How much potassium nitrate has to dissolve in water to absorb 110 of heat?
8-bit or 16-bit mode, and the prescaling ratio : 8-bit or 16-bit mode, and the prescaling ratio. You can assume XTAL = 10M Hz or at the frequency you specify.
Write an equation for the half-reaction : In an electrolytic cell Mn2+ is reduced to Mn and Sn is oxidized to Sn2+. Write an equation for the half-reaction occurring at the anode and at the cathode.
Calculate the number of grams of sulfuric acid present : Calculate the number of grams of sulfuric acid present in the mixture after the reaction is complete.
Determine the temperature the reaction is spontaneous : For a reaction in which delta H= -360.1 kJ/mol and delta= - 90.0 J/K*mol, determine the temperature (in *C) below which the reaction is spontaneous.
Determine the rate law and the value of k : Determine the rate law and the value of k for the reaction at 25oC

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd