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

  Program to next the loops in either direction

You can write your program to next the loops in either direction, that is, process row-by-row or column-by-column. Explain which way you would choose to process the data.

  Draws a pyramid consisting of bricks

Write a C program that draws a pyramid consisting of bricks arranged in horizontal rows, so that the number of bricks in each row decreases by one as you move up the pyramid.

  Program to store lists of names and ages in parallel arrays

Write a C++ program that stores lists of names (the last name first) and ages in parallel arrays and sorts the names into alphabetical order keeping the ages with the correct names.

  Reads in a list of integers

Write a program in C++ that reads in a list of integers into and array with base type int. Provide the facility to either read this array from the keyboard or from a file, at the user's option. If the user chooses file input, the program should reque..

  Write a program to make the ssds function

Write a program to make the SSDs function as a MM:SS real-time clock. Hint: You must not use a single delay routine for the one second delay because that will not allow for persistence of vision. The displays need to be constantly refreshed during ev..

  The use of decision logic

The use of decision logic is one of the major concepts of computer programming.

  Write c program-visual studio to scan multiple text files

Write program in C or C++ and Visual Studio to scan multiple text files and count number of occurrences of each word in those files. Use binary tree to keep track of all words.

  Write a program in which the user is prompted

Write a program in which the user is prompted for the number of values that they will be entering. The user then enters that number of integers into an array

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Variables should be private and the class functions public

All the class variables should be private and the class functions public. The class functions should be implemented in a file Inventory.cpp which should be linked with the inventory.hpp file.

  C programme to find the minimum and maximum value

write a c programme to find the minimum and maximum value each elements in each row ,to create table b,having 5 rows and 2 coloums,the first coloum of table b is the maximumvalue and thye second coloum is the maximum value in each row.

  Chess program, enable a monitoring component

Given a chess program, enable a monitoring component to switch planning algorithms at runtime, based on the opposing player's style and response time.

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