Components Used: i)AT90S8535 Micro controller ii)LED‟S iii)Ground Code: #include int timeCount = 0; interrupt[TIM0_OVF] void timer0_ovf_isr(void) { TCNT0 = 6; if(++timeCount == 1000) { PORTA =PORTA ^ 0x01; timeCount = 0; } } void main(void) { DDRA = 0x01; PORTA = 0x01; TCCR0 = 0x02; TIMSK = 0x01; #asm("sei"); while(1); } Description: A variable timecount is initialized to 0. In the main function the LSB of PORTA is chosen for output and it is set to 1. Then the TIMER COUNTER CONTROL REGISTER (TCCR0) is initialized in such a way that divide by 8 (CK/8)clock source is selected again the “timer interrupt mask is set to enable the timer0 counter. “#asm” is a assembly language instruction „sei‟ stands for set enable interrupts to enable all the interrupts. Finaly ainfinite while loop.Then the function with keword interrupt is created.This function will be called automatically when the timer0 overflow interrupt takes place. This function returns nothing, since it is not called by any function and you cant pass any thing to function for the same reason .The timer0 is initialized to 6 in this function .As we have chosen ck/8 system as mentioned above and the clock frequency is 4 Mhz that‟s why 4/8 Mhz so 500 Khz(0.5 Mhz) will be the effective frequency so for one tick of counter 1/0.5 micro sec are required(1/freq.= time) that equals to 2 micro secondes. A timer can…
1. Design a module named timesTen. The module should accept an Integer argument. When this module is called, it should display the product of its argument multiplied by 10…
4) Please describe how the clock works in the digital circuit and what are main concerns on the clock design (performance, power).…
| 2 | NESTED LOOPS | | 35 | 805 | 5 (0)| 00:00:01 |…
7. Interpret a datasheet for the Quartus 74148 encoder and complete the following timing diagram. (5 points)…
HW-4 (Base conversion ) Date:__________, Name___________________________________ Please do not use any calculator in doing your homework. You need Scantron 882E. Please use a pencil to mark the answers. Make sure your Scantron is clean , flat, and not folded when you submit. MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. Solve the problem. 1) Write (in the same base) the counting numbers just before and just after 3246 seven. A) 3245seven, 3247 seven C) 3254seven, 3250 seven 2) List the first 10 counting numbers in base 2. A) 0, 1, 10, 11, 100, 101, 110, 111, 1000, 1001 B) 0, 1, 2, 10, 11, 100, 101, 110, 111, 1000 C) 1, 10, 11, 100, 110, 1000, 1001, 1010, 1100, 10000 D) 1, 10, 11, 100, 101, 110, 111, 1000, 1001, 1010 3) Write (in the same base) the counting numbers just before and just after 13 eight. A) 10eight, 12 eight B) Aeight, Ceight C) 12eight, 15 eight D) 12eight, 14 eight 4) Determine the number of distinct symbols needed in base 7. A) 7 B) 9 C) 8 5) List the first 10 counting numbers in base 16. A) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 C) 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B B) 3245seven, 3250 seven D) 165 seven, 166seven 2)…
COMPONENT PERCENTAGES INCOME STATEMENT (each item is expressed as a percentage of net sales revenue)…
To offset the changing trends of fierce competition, flattened sales, and decreased profits the following analysis will provide the Corporate Cost Reduction Team members with the needed resources and recommendations to make an informed decision in the corporate overhead reduction program. Outsourcing is a hot topic in corporate America. Companies have begun to look at outsourcing of non-core materials and services to achieve substantial cost reductions while turning these low performing assets into a competitive advantage. Within this analysis a comparison of cost savings, lead and delivery times, product selection, facility space and labor cost will be examine as to assessing the “make or buy decision while supporting the Senior Management’s, May 2002 mandate. The objective is to reduce the short and long-term cost of office supplies for Futronics, Inc. The question or decision to be made is whether to do so via in-sourcing, outsourcing, or a hybrid combination.…
6.) When troubleshooting a motherboard, you discover the network port no longer work. What is the best and least expensive solution to this problem? If this solution does not work, which solution should you try next?…
This is a sample of a morning work assignment Mark was given upon arrival to the classroom. After completing the sheet, students glue them into their Math Journals and justify their answer for a problem of their choice. The work shows an analog clock that is displaying 8:00 on its face. The question asks, “what time is shown?” Mark answered “8:00.”…
I challenge you to set your watch to 5 minutes past your current time and set the second alarm for 15 minutes past the current time.…
* The minimum count that this circuit can count down to is 00; the maximum count is 99.…
| Multiplies the values in a particular field of records that match the criteria in a database…
For binary subtraction, we use 2’s complement to keep things simple. For instance, to perform the operation six (0110) minus five (0101), we first obtain the 2’s complement of five and then add it to six:…
the watch runs slower than the actual time by 9 minutes. Therefore, when the actual time is 2:00 pm on 10 January 2009, the time shown on the watch should be 1:51 pm on 10 January 2009.…