Loading

Cabinet Lock Controller

January 13, 2015| Papers Haven

Cabinet Lock Controller

Scenario

AlockCo, the leading cabinet lock maker has hired you as a new development engineer to provide

digital locks for the company to complement their current key locks. They have sourced a Pic

development board, the McLab1, which is the same as Board 1 within the PICSIM simulator and wish

for you to develop a lock for the company using this board. You will use the PICSIM software to verify

your code.

The managing director, coming from a mechanical engineering does not fully understand the

differences between differing standard, realtime and distributed operating systems, so has asked for a

report on what these are and how they could be used within the business for future lock

development.

Task 1) 80% split as 30% for program design, 50% for program implementation

Create an assembly application for the pic microcontroller to operate a digital lock on a filing cabinet.

You should design your application using an appropriate method (flowchart/pseudo code) and then

implement this on PICSIM board 1. The specification of what is required is as follows:

 You will use two buttons (RA1 and RA2) to cycle up and down the 16 codes available, and use a

third button (RA3) to select that code. You will display the code as an LED bit pattern on portB

(bits 0:3)

 If the code is incorrect you will increase a counter which is also shown on portB (bits 6:7), but

only if the lock is closed, if it is already open then you will not increase the counter.

 On the third unsuccessful code you will permanently lock the device, so your input buttons stop

working. (to restart the lock you will need to use the RESET button)

 If the code is OK when selected you will open the lock (shown by turning on the RA0 LED), if

there have been any unsuccessful attempts, then this counter will be cleared.

 To close the lock, you will need to set the correct code then press the OK button again, also

turning off RA0.

 If the lock is open, you can change the code by selecting a new code using the up and down

buttons then pressing RA4.

You should provide the details of any assumptions made.

Task 2) 20%

Provide a short report (maximum 3 pages including references) to the managing director that answers

the following questions:

What are the differences between the following operating systems (max 1.5 pages)

 General Purpose Operating System

 Real-time Operating System

 Distributed Operating System

What advantages would there have been to utilising a Real Time Operating System in this project?

Would there be additional costs resulting from the implementation of Real Time Operating Systems?

In the future the company would like to include computer network connectivity to the lock controller.

What would be the impact of not using operating systems to complete this task?

Recommended reading

Ramesh S. Gaonkar, ‘Microprocessor Architecture, Programming, and Applications with the 8085’, 2002

Prentice Hall fifth edition.

Fredrick M. Cady, ‘Microcontrollers and Microcomputers’, 1997 Oxford University Press, Inc.

Donald P. Leach and Albert P. Malvino, ‘Digital Principles and Applications’, 1994 McGraw-Hill fifth

edition.

Lin, W.C.’Microprocessors: Fundamental and Applications’

Douglas V. Hall ‘Microprocessors and Interfacing: Programming and Hardware’

 Information regarding academic misconduct:

http://www.ljmu.ac.uk/studysupport/81924.htm

 Information on study skills:

http://www.ljmu.ac.uk/studysupport/

 Information regarding referencing:

http://www.ljmu.ac.uk/studysupport/69049.htm

Click the button below to order this paper.

 

order-now-button-redmoney_back


 

PLACE THIS ORDER OR A SIMILAR ORDER WITH US TODAY AND GET AN AMAZING DISCOUNT

get-your-custom-paper
Categories: Uncategorized
Support