Docsity

Optimizing Power Consumption in ADuC7026 System with Microprocessor Supervisor, Exercises of Computer Science

Toggle sidebar
bg1
Spring 2012 (Morrow)
1
1. (10 points) But Who’s Supervising the Microprocessor Supervisor?
A. You are tasked with selecting a microprocessor supervisor that will be used on an ADuC7026
system. Fortunately, your possible selection universe has been narrowed significantly for you by
a management decision to use one of the Microchip microprocessor supervisors in the
MCP131X/2X series. You also learn that you can find information on these parts at
http://ww1.microchip.com/downloads/en/DeviceDoc/21985c.pdf
Select a suitable microprocessor supervisor (and any required components) for use with an
ADuC7026 system operating on +3.3V. Although the ADuC7026 has an internal POR circuit,
we want to add an external supervisor in order to obtain a power-on reset delay of at least 1s and
a manual reset input. Minimize any additional external components. You will need to select a
reset threshold voltage as appropriate for the ADuC7026. Your choice should prevent the
ADuC7026 from operating below its voltage specifications, but not be more restrictive than
necessary. If you select a part with a watchdog timer, you will need to ensure that the watchdog
timer is disabled. Be sure to specify the part number completely. Draw a schematic diagram
showing the required connections to the selected microprocessor supervisor and its connection(s)
to the ADuC7026, and any required support components. Describe the salient characteristics of
the selected microprocessor supervisor that led you to make the selection that you did, and any
additional features that it has.
B. So, just how big are these parts, anyway? Figure out how many of them could be placed in a
single layer in the same area as a US quarter coin (assuming no overlapping of any part of the
package). (Page 44 of the datasheet has the package information. You can find the area of a
quarter on your own.)
2. (15 points) Is It Nap Time Yet?
The processing requirements for an embedded system are such that the processor will be
interrupted (using IRQ0) every 1.2ms by an external circuit when it needs to perform its
computations. When the processor completes the computations, it has no other computational
requirements until the next time it is interrupted. You are tasked with determining what is the
best combination of power control operating modes and the HCLK divider (CD) in order
minimize total power consumption, while operating at a constant 3.3V supply voltage. You can
assume that the current consumption for a lower power operating mode continues during the
latency of entering a higher power mode, and that a lower power mode is entered immediately.
Assume that you have an ADuC7026 that is operating with a perfect 32.768 kHz crystal and the
1275x PLL, and that the computations require 8,000 HCLK cycles. Explain in detail how you
arrived at your answer.
Docsity.com
pf3
pf4

Partial preview of the text

Download Optimizing Power Consumption in ADuC7026 System with Microprocessor Supervisor and more Exercises Computer Science in PDF only on Docsity!

Spring 2012 (Morrow) 1

1. (10 points) But Who’s Supervising the Microprocessor Supervisor?

A. You are tasked with selecting a microprocessor supervisor that will be used on an ADuC system. Fortunately, your possible selection universe has been narrowed significantly for you by a management decision to use one of the Microchip microprocessor supervisors in the MCP131X/2X series. You also learn that you can find information on these parts at http://ww1.microchip.com/downloads/en/DeviceDoc/21985c.pdf

Select a suitable microprocessor supervisor (and any required components) for use with an ADuC7026 system operating on +3.3V. Although the ADuC7026 has an internal POR circuit, we want to add an external supervisor in order to obtain a power-on reset delay of at least 1s and a manual reset input. Minimize any additional external components. You will need to select a reset threshold voltage as appropriate for the ADuC7026. Your choice should prevent the ADuC7026 from operating below its voltage specifications, but not be more restrictive than necessary. If you select a part with a watchdog timer, you will need to ensure that the watchdog timer is disabled. Be sure to specify the part number completely. Draw a schematic diagram showing the required connections to the selected microprocessor supervisor and its connection(s) to the ADuC7026, and any required support components. Describe the salient characteristics of the selected microprocessor supervisor that led you to make the selection that you did, and any additional features that it has.

B. So, just how big are these parts, anyway? Figure out how many of them could be placed in a single layer in the same area as a US quarter coin (assuming no overlapping of any part of the package). (Page 44 of the datasheet has the package information. You can find the area of a quarter on your own.)

2. (15 points) Is It Nap Time Yet?

The processing requirements for an embedded system are such that the processor will be interrupted (using IRQ0) every 1.2ms by an external circuit when it needs to perform its computations. When the processor completes the computations, it has no other computational requirements until the next time it is interrupted. You are tasked with determining what is the best combination of power control operating modes and the HCLK divider (CD) in order minimize total power consumption, while operating at a constant 3.3V supply voltage. You can assume that the current consumption for a lower power operating mode continues during the latency of entering a higher power mode, and that a lower power mode is entered immediately. Assume that you have an ADuC7026 that is operating with a perfect 32.768 kHz crystal and the 1275x PLL, and that the computations require 8,000 HCLK cycles. Explain in detail how you arrived at your answer.

Spring 2012 (Morrow) 2

3. (10 points) I/O Address Decoding

Assume that a system has a 16-bit address bus with /WS and /RS control signals. There are 3 byte-wide output ports. The ports are to be logically located in the memory map in the address ranges shown below. 0x1000-0x10FF Port 0 0x1100-0x11FF Port 1 0x1200-0x12FF Port 2 0x2000-0x2FFF Write to all ports

Design decoding logic using only AND/NAND/NOT gates that will produce active-low signals (/port0, /port1, /port2) that can be used to control the output ports. The AND/NAND gates can have up to 5 inputs, and any or all inputs can be inverted.

4. (15 points) A 16-bit Shifter/Rotator Using GPIO

You are to write a program that will implement a 16-bit shifter/rotator in software. Port 1 (P1.3- P1.0) will be used as the input port for the shift clock, shift mode, and data signals. Port 3 (P3.7- P3.0) and Port 4 (P4.7-P4.0) will be used to display the last 16 bits that were received. We will assume that the input transitions will be relatively slow, so that they will never change too fast for your program to handle. You may assume that the data and mode inputs will only change on the 01 transition on the serial clock signal. The GPIO pin assignments are as follows;  P1.0 – data input to shifter  P1.2, P1.1 – shifter mode input o 2_00 – do nothing (i.e. hold current value). o 2_01 – shift left by 1. o 2_10 – shift right by 1. o 2_11 – rotate left by 1.  P1.3 – shift clock input o The input data (and the corresponding shifter operation) is to only be accepted on 1 0 transitions of the shift clock signal (i.e. the pin was read as a 1 the last time it was read, and now it is a 0).  P4.7-0, P3.7-0 – display 16 bits of the virtual shifter/rotator o The least significant bit will be in P3.0, and the most significant bit in P4.7.

Your code should be added to main.s in the Kiel uVision sample project on the course web page. All references to the GPIO MMRs should use the definitions in aduc7026.inc. Note that the definitions are setup to include a base address for a group of registers, and smaller offsets within the groups. A typical usage of these definitions would be as shown below.

LDR R7, =(IRQCON_MMR_BASE) MOV R0, #0xFFFFFFFF STR R0, [R7, # IRQEN] STR R0, [R7, # FIQEN]

To test your program, you should open windows to view the pin states of P1, P3 and P4 – you

can do so by selecting Peripherals  General Purpose Input/Output from the menu when

Spring 2012 (Morrow) 4

To what extent are U1 and U2 compatible and/or incompatible in this circuit? Show your work, and explicitly state any assumptions that you make.

7. (10 points) I/O Device Model In the generic I/O device controller model, the microprocessor’s interface to the actual I/O device is accomplished solely through transfers with three types of registers – status, control and data. Assume that you are designing the interface logic to a parking garage’s RFID (radio- frequency identification) tag scanner module, and are allocated just two 8-bit memory locations that the microprocessor can access (i.e. the device will only have one address line). The two memory locations are mapped such that the first location has an 8-bit register for status (read- only), and an 8-bit register for control (write-only). The second location has data registers (read and write). The information from the RFID scanner module that must be made available to the microprocessor includes the following;  if an RFID tag is currently being detected,  the currently detected RFID tag code (8 bytes),  the current RF power output that the scanner is using (10-1000mW),  the scanner module’s serial number (2 bytes), The scanner module has the following information requirements;  the interval at which the scanner should look for new tags (5-255 milliseconds),  whether the scanner should go into shut-down mode to conserve power (1-bit). Describe how you might organize the interface to provide access to all of the information required by or available from the scanner module. You do not have to do the actual logic design; just describe how the registers would be used from the microprocessor point of view (i.e. meaning of bits, and how multiple-step access to data would work). Explain your rationale for the choices that you make. 8. (10 points) Quiz Question Design one original quiz question operating at Bloom’s Taxonomy level 3 for any material covered in Module 4. This must test one of the educational objectives (see http://eceserv0.ece.wisc.edu/~morrow/ECE353/objectives.pdf) in a specific problem. Explicitly state which particular educational objective you are attempting to test. Provide a complete, detailed solution to your question.