Motorola once sc140 Manual De Usuario

Descargar
Página de 28
Abstract and Contents
iii
 
In software application development on embedded devices, optimization is critical. Optimized code 
provides not only faster processing speed but also lower power consumption and longer battery life. 
Optimized code also minimizes CPU load, enabling more applications to fit into a single chip. In selecting 
a processor for a system, it is important to understand and compare the speed of execution of different 
processors. All of these applications may require a stopwatch as a criterion for measurement. This 
application note presents the stopwatch timer application developed on the Software Development 
Platform (SDP). The stopwatch timer is implemented using the Enhanced OnCE
 resource, which is 
non-intrusive to SC140 operation, therefore, timing can be correctly measured. Two stopwatch techniques, 
with and without source code modification, are presented. This application note also explains how to port 
stopwatch applications to other SC140 based devices.
Introduction
   . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
SC140 Enhanced OnCE Stopwatch Timer Capabilities
   . . . . . . . . . . . . . . . . . . . 2
Setting Up the Stopwatch Timer Within an Application
  . . . . . . . . . . . . . . . . . . . 3
Setting Up the Stopwatch Timer Within the Debugger
 . . . . . . . . . . . . . . . . . . . . 8
Setting Up the System Clock Speed
   . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Verifying Correct Setup
 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Abstract and Contents