Premium Essay

Mct Q&a

In:

Submitted By TypicalTP
Words 1276
Pages 6
(G) On Keypad & Sensor :
1. How many I/O interface pins between keypad (4x4) and PIC18f4520?
- Keypad (4x4) has 8 I/O interface pins.
- In this example schematic that has RB0 to R07 connected to the 8 I/O pins on to the Keypad (4x4)

- PIC18f4520 has 36 I/O pins that grouped into 5 ports
- It should require 8 pins to connect a 4x4 keypad.

2. How to detect if a key is depressed?
E.g. Of flowchart when things are input.
E.g. Of flowchart when things are input.
End

End

Wait for Key Release
Wait for Key Release
Swap I/O back to original setup
Swap I/O back to original setup
Combine ‘R’ and ‘T’ and put into global variable
Combine ‘R’ and ‘T’ and put into global variable
Read another input (Keypad) and put into variable (e.g. ‘T’)
Read another input (Keypad) and put into variable (e.g. ‘T’)
Swap I/O
Swap I/O
Read the input (from Keypad) and put into variable (e.g. ‘P’)
Read the input (from Keypad) and put into variable (e.g. ‘P’)
Start
Start
- When a key depression has been detected and an interrupt generated, the MCU will need to determine which of the keys is being pressed.
- E.g. Initial a row high, and scan the 4 columns to see if any are high, if one is, then you have found a pressed key.

3. How to identify which of the 16 keys were depressed
(decode the key from the (4x4) matrix)?

-The Keys are in a matrix, the PIC must determine which row and column matches the key press.
- Once a key is pressed, a row/column circuit will be closed and the row (input) will pull low due to the column (output) being driven low.
- E.g. Like the input of number of “pull-up” is record into keypad is now put into variable ‘P’ and another input like time “min” is set, which is now put into variable ‘T’.
After that both is stored, will wait for the Key to Release.
- Determine Rows and Column, for the pins and

Similar Documents

Premium Essay

Finance

...the year 2005, it faces a market demand curve given by P = 9 - Q, where Q is millions of microprocessors sold per year. Suppose you know nothing about Intel’s costs of production. Assuming that Intel acts as a profit-maximizing monopolist, would it ever sell 7 million microprocessors in Brazil in 2005? If demand is P  9  Q , then MR  9  2Q . If the firm sets Q  7 , then MR  5 . At this point, if the firm lowered its output it would increase total revenue, and with the lower level of output total cost would fall. Thus, decreasing output would increase profit. Therefore, a profit-maximizing monopolist facing this demand curve would never choose Q  7 . 2. A monopolist faces a demand curve P = 210 - 4Q and initially faces a constant marginal cost MC = 10. a) Calculate the profit-maximizing monopoly quantity and compute the monopolist’s total revenue at the optimal price. b) Suppose that the monopolist’s marginal cost increases to MC = 20. Verify that the monopolist’s total revenue goes down. c) Suppose that all firms in a perfectly competitive equilibrium had a constant marginal cost MC = 10. Find the long-run perfectly competitive industry price and quantity. d) Suppose that all firms’ marginal costs increased to MC = 20. Verify that the increase in marginal cost causes total industry revenue to go up. a) With demand P  210  4Q , MR  210  8Q . Setting MR  MC implies 210  8Q  10 Q  25 With Q  25 , price will be P  210  4Q  110 . At this price and quantity...

Words: 3799 - Pages: 16

Free Essay

Supply Chain Manager

...PDF created with pdfFactory Pro trial version www.pdffactory.com 精益论坛http://bbs.leancn.org 中国精益生产学院 国内顶尖的精益生产培训与辅导机构 Why ? • Many organizations pursuing “lean” conversions have realized that improvement events alone are not enough • Improvement events create localized improvements, value stream mapping & analysis strengthens the gains by providing vision and plans that connect all improvement activities • Value stream mapping & analysis is a tool that allows you to see waste, and plan to eliminate it Http://www.leancn.org PDF created with pdfFactory Pro trial version www.pdffactory.com 精益论坛http://bbs.leancn.org 中国精益生产学院 国内顶尖的精益生产培训与辅导机构 What Is Value? A capability provided to a customer, Q of the highest quality, Q at the right time, Q at an appropriate price, as defined by the customer. Http://www.leancn.org PDF created with pdfFactory Pro trial version www.pdffactory.com 精益论坛http://bbs.leancn.org 中国精益生产学院 国内顶尖的精益生产培训与辅导机构 What Is Value? • "Value" is what the customer is buying • Always think first about the endcustomer – Who is the customer? – What are they buying? • Describe value using the customers' words Http://www.leancn.org PDF created with pdfFactory Pro trial version www.pdffactory.com 精益论坛http://bbs.leancn.org 中国精益生产学院 国内顶尖的精益生产培训与辅导机构 VSM Basics • Current State • Ideal State • Future State Http://www.leancn.org PDF created with pdfFactory Pro trial version www.pdffactory.com 精益论坛http://bbs.leancn...

Words: 2431 - Pages: 10

Premium Essay

Testing

...Certifications: A+ ACE Associate Project Manager CAPM Certification CBAP" - Certified Business Analysis Professional CCCI - Certified Computer Crime Investigator CCE - Certified Computer Examiner CCFT - Certified Computer Forensic Technician CCSA/CCSE Check Point CEECS - Certified Electronic Evidence Collection Specialist CEH - Certified Ethical Hacker CEIC - Computer and Enterprise Investigations Conference CFCE - Certified Forensic Computer Examiner CFE - Certified Fraud Examiner CFIA - Certified Forensic Investigation Analyst CHFI - Certified Hacking Forensic Investigator CIFI - Certified International Information Systems Forensic Investigator CISA - Certified Information Systems Auditor CISM - Certified Information Security Manager CISSP - Certified Information Systems Security Professional CISSP-ISSAP - Information Systems Security Architecture Professional CISSP-ISSEP - Information Systems Security Engineering Professional CISSP-ISSMP - Information Systems Security Management Professional CIW - Certified Internet Webmaster CNA - Certified Novell 5 Administrator CNE - Certified Netware Engineer CNSS 4013 Recognition CPE - Certified PGP Engineer - PGP Corporation CSA - Certified Security Analyst CSE - Certified Steganography Examiner CSFA - CyberSecurity Forensic Analyst CSICI - CyberSecurity Institute Certified Instructor CSIH - Certified Computer Security Incident Handler CSTA - Certified Security Testing Associate CSTP - Certified Security...

Words: 1957 - Pages: 8

Free Essay

Dryyuryu

...HI BYE ZZZZZZZZZZZZZZZZZZZzzzzzz About 225,000 results (0.43 seconds)  Search Results 1. Help for encoder & sensor | Electronics Forum (Circuits, Projects ... www.electro-tech-online.com › ... › Electronics Forums › Microcontrollers * * May 29, 2007 - 6 posts - ‎4 authors How to detect if a key is depressed? 3.How to identify which of the 16 keys wasdepressed (decode the key from the (4x4) matrix)? 4.What is the ... 2. Mct Q a - Research Paper - Typicaltp www.termpaperwarehouse.com › Computers and Technology * * Jun 30, 2013 - Keypad (4x4) has 8 I/O interface pins. ... How to identify which of the 16 keys were depressed (decode the key from the (4x4) matrix)? -The Keys ... 3. [PDF] Interfacing a 4x4 Matrix Keppad with an 8-Bit GPIO Expander pdf1.chipstock.ru/pdf.php?decode=2083924&part=GPIODM-KPLCD The keypad is a 4x4 matrix of 16 keys and is connected ... The MCU performs the keyscan to determine which key is being ..... PRESSED. When a key depression has been detected and an ... column value, four of the registers that were. 4. Keypad to PS2 16F88 [Archive] - All About Circuits Forum forum.allaboutcircuits.com/archive/index.php/t-71829.html * * Jul 3, 2012 - 16 posts - ‎4 authors I have a project to take a 4x4 keypad and when a key is pressed the make/ break codes for some ... I know the output matrix for the74C922, and the scan codes for the make and break hex code for the 16 keys I want...

Words: 734 - Pages: 3

Premium Essay

Combustion Lab Report

...Candle 9.61 g N/A 9.09 Water 100 ml 5 ℃ 39 ℃ Room N/A 22 ℃ N/A The weight of the candle was crucial to finding the combustion levels of the paraffin wax. The temperature of the water and the room were also important to provide instruction on when to extinguish the flame. Every value obtained during the procedure was involved in the post-lab questions in some manner. Q=mcT is a formula used frequently during the post-lab. With the previous equation, we found the thermal energy amount needed to heat the water to help us solve for the combustion of paraffin. Calculation Table Heat of combustion for paraffin in Kj/g Q = 100g x 4.184J/g x C x 34C =14,295.6J 14,325.6 converts to 14.2256 kJ 2) 14.2756kj / .52g = 27.356kJ/g -27.346 kJ/g since exothermic reactions lose heat, meaning the final value would be negative. Heat of combustion for paraffin in Kj/mol + percent error 3) 27.556 kj/g x 352.681g/1mol = 9,649.2 kJ/mol -9,648.1 kJ/mol since exothermic reactions lose heat, meaning the final value would be negative. 4) ((27.35kJ/g - 44.29 kJ/g)/44.29 kJ/g)x100=-38.23 38.24% is percent error. Using Q=mcΔT: mass was 100 grams of water, heat of water was 4.184 J/gxC, and final temperature minus the initial temperature was 34 C. 14,225.6 J was the solution to the equation. This solution was divided by .52 g, which make the value negative due to the exothermic reaction. For Kj/mol, the atomic mass needed to be known which makes the solution negative still due to the...

Words: 1206 - Pages: 5

Free Essay

Solutions

...temperature is reached when the intrinsic carrier density ni equals the lowest doping density in the pn juinction structure (the n-side in this problem). Thus È q Eg 1 1 ˘ Ï ¸ ni(Ti) = Nd = 1014 = 1010 exp Í - 2k ÌT - 300˝˙ Î Ó i ˛˚ Solving for Ti using Eg = 1.1 eV, k = 1.4x10-23 [1/°K] yields Ti = 262 °C or 535 °K. 19-2. 1 1 N-side resistivity rn = q m N = -19)(1500)(1014) = 43.5 ohm-cm (1.6x10 n d 1 1 P-side resistivity rp = q m N = = 0.013 ohm-cm p a (1.6x10-19)(500)(1018) 19-3. Material is n-type with Nd = 1013 cm-3 >> ni = 1010 cm-3. Hence use approximate formulas given in Chapter 19. 2 ni n = Nd = 1013 cm-3 ; p = N d 1020 = 1013 = 107 cm-3 19-4. po = 2 ni [300] Nd ; 2po = 2 ni [300 + T] Nd ; È q Eg Ï1 1 ¸˘ 2x1010 = 1010 exp Í - 2k ÌT - 300˝˙ Î ˚ Ó ˛ 2 2 2 ni [300] = ni [300 + T] q Eg 300 Solving for T yields T = (q E - k 300 ln(2)) = 305.2 °K g DT = 305.2 - 300 = 5.2 °K. 19-5. q V1 I1 = Is exp( k T q V1 + dV ; 10 I1 = Is exp( k T ) ; kT dV = q ln(10) = 60 mV 19-6. (a) xn(0) = depletion layer width on n-side at zero bias; xp(0) = depletion layer width on p-side at zero bias. xn(0) + xp(0) = Wo = 2 e fc (Na + Nd) q Na Nd (1) È 1014 1015˘ k T È Na Nd˘ Í ˙ ˙ = 0.026 ln Í fc = q ln Í 2 ˙ Î 1020 ˚ = 0.54 eV Î ni ˚ Conservation of charge: q Na xp = q Nd xn (2) Solving (1) and (2) simultaneously gives using the numerical values given in the problem statement gives: W o = 2.8 microns ; xn(0) = 2.55 microns ;...

Words: 9163 - Pages: 37

Premium Essay

Econ

...Suggested Exercises’ Answers (Please note that these questions are from “Problems and Applications” part of the chapters, which are at the very end of the chapters) CHAPTER 14 Q1. a. Profit is equal to (P – ATC) × Q. Therefore, profit is ($10 – $8) × 100 = $200. b. For firms in perfect competition, marginal revenue and average revenue are equal. Since profit maximization also implies that marginal revenue is equal to marginal cost, marginal cost must be $10. c. Average fixed cost is equal to AFC /Q which is $200/100 = $2. Since average variable cost is equal to average total cost minus average fixed cost, AVC = $8 - $2 = $6. d. Since average total cost is less than marginal cost, average total cost must be rising. Therefore, the efficient scale must occur at an output level less than 100. Q5. a. Figure 5 shows the typical firm in the industry, with average total cost ATC1, marginal cost MC1, and price P1. b. The new process reduces Hi-Tech’s marginal cost to MC2 and its average total cost to ATC2, but the price remains at P1 because other firms cannot use the new process. Thus Hi-Tech earns positive profits. c. When the patent expires and other firms are free to use the technology, all firms’ average-total-cost curves decline to ATC2, so the market price falls to P3 and firms earn zero profit. Figure 5 Q8. a. The rise in the price of crude oil increases production costs for individual firms and thus shifts the industry supply curve up, as shown...

Words: 5448 - Pages: 22

Premium Essay

International Finance Discussion Papers

...Board of Governors of the Federal Reserve System International Finance Discussion Papers Number 848 December 2005 Fighting Against Currency Depreciation, Macroeconomic Instability and Sudden Stops Luis-Felipe Zanna NOTE: International Finance Discussion Papers are preliminary materials circulated to stimulate discussion and critical comment. References in publications to International Finance Discussion Papers (other than an acknowledgment that the writer has had access to unpublished material) should be cleared with the author or authors. Recent IFDPs are available on the Web at www.federalreserve.gov/pubs/ifdp/. Fighting Against Currency Depreciation, Macroeconomic Instability and Sudden Stops∗ Luis-Felipe Zanna† First Draft: October 2002 This Draft: November 2005 Abstract In this paper we show that in the aftermath of a crisis, a government that changes the nominal interest rate in response to currency depreciation can induce aggregate instability in the economy by generating self-fulfilling endogenous cycles. In particular if a government raises the interest rate proportionally more than an increase in currency depreciation then it induces self-fulfilling cyclical equilibria that are able to replicate some of the empirical regularities of emerging market crises. We construct an equilibrium characterized by the self-validation of people’s expectations about currency depreciation and by the following stylized facts of the “Sudden Stop” phenomenon: a decline...

Words: 18986 - Pages: 76

Premium Essay

Monopoly and Monopsony

...CHAPTER 10 MARKET POWER: MONOPOLY AND MONOPSONY R.KANAKARAJU 215112019 A.GOUTHAM SAI 215112020 B.R.PRADHEEP 215112027 M.PRABHAKAR 215112058 K.ADITHYA 215112063 NAGENDRA 215112069 MARKET POWERS: MONOPOLIST AND MANOPSONIST Markets comprises of products or services, buyers and sellers. Where as in a perfectly competitive market there will be a reasonably good number of buyers and sellers of the products or services. So the possibility of influencing the market by a single seller or buyer is nil. Depending upon the supply and demand prices will be determined. Market price and demand is the deciding factor of the companies to estimate how much to produce and sell, in consumers view it is a deciding factor how much to buy. In contrary to the case which was discussed above, if the market is not a perfectly competitive market then the situations of monopoly and monopsony arise. Monopoly market is the one which has only one seller but so many buyers. Monopsony market is the one which has only one buyer and so many sellers. Monopolist is the sole producer of a product, in market demand curve, price is determined by the quantity which is offered by the monopolist to sell, the quantity of produce sold by monopolist is low and the price is high, it happens because his products has full demand and he wants to take full advantage in this situation. Normally if the price is high, only a few buyers which have the potential to buy those...

Words: 11499 - Pages: 46

Premium Essay

Across Culture

...ANRV296-PS58-19 ARI 17 November 2006 1:33 Annu. Rev. Psychol. 2007.58:479-514. Downloaded from arjournals.annualreviews.org by University Of Maryland on 12/11/06. For personal use only. Cross-Cultural Organizational Behavior Michele J. Gelfand,1 Miriam Erez,2 and Zeynep Aycan3 1 Department of Psychology, University of Maryland, College Park, Maryland 20742; email: mgelfand@psyc.umd.edu 2 Technion, Israel Institute of Technology, Technion City, Haifa, Israel 32000; email: merez@ie.technion.ac.il 3 Department of Psychology, Koc University, Sariyer, Istanbul, Turkey 34450; email: zaycan@ku.edu.tr Annu. Rev. Psychol. 2007. 58:479–514 Key Words First published online as a Review in Advance on October 17, 2006 culture, management, organizations, work The Annual Review of Psychology is online at http://psych.annualreviews.org Abstract This article’s doi: 10.1146/annurev.psych.58.110405.085559 Copyright c 2007 by Annual Reviews. All rights reserved 0066-4308/07/0203-0479$20.00 This article reviews research on cross-cultural organizational behavior (OB). After a brief review of the history of cross-cultural OB, we review research on work motivation, or the factors that energize, direct, and sustain effort across cultures. We next consider the relationship between the individual and the organization, and review research on culture and organizational commitment, psychological contracts, justice, citizenship behavior...

Words: 22630 - Pages: 91

Free Essay

Value Stream Mapping

...state can be Map what it really is not what you think it is! p y y What actually happens – Spaghetti Diagram Part no 3102336 V.D.F. 4295-01 4295-02 4295-03 MARKING WASH SPAG GHETTI DIAGRAM Area: RAW MAT'L • • DEBURRING BENCH • • 3 2 • FINAL INSP. • • • 2 • GRINDER 3220 2 PAINTING J&S 3148 FADAL 5139 • • BLAST • • H.T. INSP. HEAT TREAT LATHE 4400 • • 2 • DISTANCE OF PARTS INTERNAL EXTERNAL TOTAL 116 490 606 METRES F.P. STORES • •• VERT SHAPER 12008 Team: • . S.T.I. M.P.I . What actually happens – Spaghetti Diagram Goods Inwards Warehouse 1. Prod’n m/c Material store Material store Material cart 2. Prod’n  m/c Material cart Q QS Material distance  = 1,230 M QC distance  =    400 M Production Area Lead time =    5 days SIPOC Diagram Suppliers Inputs Process Outputs Customers •External External •Internal •Materials Materials •Services •Information Process •Materials Materials •Services •Information •External External •Internal Step 1 Step 2 Step 3 Step 4 Step 5 • A simple form of process map used to get an overview of a process • Can be seen as a cell of a larger map Process Mapping The map lists every step that is involved in the delivery...

Words: 2770 - Pages: 12

Free Essay

Hawthorne Study

...l0 TheIlawthorne Dxoeriments Frederick J. Roethlisberger The.e seemsto be d dsunpiion today thar se oeed d conpler ser ofideas to handle lhe codpler problens of this conplex worLd in which we l1ve. we 4sume th!! a bic !.oblen needs a bis id€ai a conplex problem needsa conplex idea for ift slution. As a r*ult, ou thinkins tends !o becone nore dd more rormous a.d huddled. Nowhere is dris noie he rhm in nattes ofhunan behavior.l. seemsto ne thar the road back to saniry-,nd here is vhere ny ey Fi ofilsracd.r frar we cm make t. ln tnowing wery clearlr the cla$ of Flenomena ro which our ides dd nelhods relatc. Now, this is deFly a way of saling, 'Do not use a sas d a hanner." A sa{ is a usetul loolpre, cisely because ir is linited md de. sigred for a certain purpoF. Do no! cnici4 the usetulnes ofa saw be.ase it dos lor make a good hannei . . . It n my sinple thsls that a hlman prcblen requnes a humd solurion. Inst, we have to leam torecocnize a hunan 1. In ]Evins a few shple dd clear ideas problen when we seeoner ed, scond, aboutthe xorld in which re live. upon rccognizbg ir, we have to lea6 to 2. In conpliatins our ideas, nor in a deal with it as such md not d if it yerc Yatuun, bD! only in Elerence ro somethins else. Too oft€n at lhe verbai thinss we can obsere, see,feel, hear, lerel se talk sl,bly about rhe inportmcc a touc!. Let u not eeftralize flon verbal denniti.$i ler !s know in lao of the huhm {actor dd too seldon at the concrcre level or behavior do we rec. {hat...

Words: 4643 - Pages: 19

Premium Essay

Report on Society

...Environment Our commitment to good environmental stewardship is shaped firstly by the need to respond appropriately to global imperatives concerning climate change, biodiversity conservation, energy use and water security; and secondly by our belief that the sustainable management of the natural environment is key to the future prosperity of all the countries where we operate. Our approach to managing environmental issues is built on the effective integration of the environment discipline into our core business and the development of appropriate policies and tools to aid their implementation. This process is underpinned by our ISO 14001 compliant management systems. Within this framework we develop holistic management solutions individually tailored to the environmental, social and economic contexts of each of our operations. This in turn means that we are sensitive to local needs and place particular emphasis on forging strategic partnerships with governments, local communities and Non-Governmental Organisations to find creative solutions to environmental challenges wherever we operate. In addition to our focus on developing effective management systems, our ongoing investment in building the capability of the environment discipline across the Family of Companies has also enabled us to respond to environmental challenges beyond the traditional mining focus area of land rehabilitation. Biodiversity, energy and water management are now specific areas of...

Words: 8578 - Pages: 35

Premium Essay

Stock Index Methodology

...DEPARTMENT OF MANAGEMENT STUDIES IIT DELHI Security Analysis & Portfolio Management – SML 873 Self Study Component – II (methodologies adopted across the globe for calculating Stock Index) By: Echo Group Russian Trading System (RTS) Stock Exchange 1. Eligibility Factors 2.1. Market Capitalization 2.2.1. A stock’s weight in an index is determined by the float-adjusted market capitalization of the stock 2.2.2. Each company’s market capitalization is capped at 15% in the RTSI and RTS2, and at 25% in the RTS Sector Indices, to restrict the weight of any one company dominating the entire index. 2.2. Liquidity: Securities that do not meet the following criteria over the three month period preceding the date of the revision are excluded from the index eligibility list 2.3.3. The average number of companies-brokers that submitted the “bid” and “ask” quotes for the security at the end of the trading session is at least two. 2.3.4. 2. The average spread between the “ask” and the “bid” prices at the end of the trading session is less than or equal to 15%, as compared to the buying price. 2.3.5. 3. The security should have two-sided quotes in the trading system at the end of the trading session for at least 90% of the trading days of a given period. 2.3.6. 4. The daily average number of transactions in this security is greater than or equal to 0.5. 2.3.7. 5...

Words: 4263 - Pages: 18

Premium Essay

Arthur

...Wharton MBA • Class of 2015 Waiver Exam Guide Table of Contents Introduction .................................................................................................................................................3 Accounting (ACCT611) Sample Placement Exam..................................................................................................................5 Sample Waiver Exam–Part 1 .........................................................................................................18 Sample Waiver Exam–Part 2 .........................................................................................................31 Sample Placement Exam Answers .................................................................................................49 Sample Waiver Exam–Part 1 Answers ..........................................................................................56 Sample Waiver Exam–Part 2 Answers ..........................................................................................60 Corporate Finance (FNCE611/612) Placement/Waiver Exam–Part 1....................................................................................................65 Placement/Waiver Exam–Part 2....................................................................................................70 Placement/Waiver Exam–Part 1 Answers.....................................................................................76 Placement/Waiver Exam–Part 2...

Words: 38181 - Pages: 153