Manual de instrucciones de Motorola ONCE SC140

Manual de instrucciones del aparato Motorola ONCE SC140

Aparato: Motorola ONCE SC140
Categoría: Equipamiento para ordenador
Fabricante: Motorola
Tamaño: 0.46 MB
Fecha de añadido: 4/11/2014
Número de páginas: 28
Imprimir el manual

Descargar

¿Cómo se utiliza?

Nuestro propósito es proporcionarte el acceso más rápido posible a los contenidos incluidos en los manuales de instrucciones del aparato Motorola ONCE SC140. Utilizando la vista previa online, puedes ver rápidamente el índice de contenidos y pasar a la página donde encontrarás la solución a tu problema con Motorola ONCE SC140.

Para tu comodidad

Si ver los manuales de instrucción de Motorola ONCE SC140 directamente en esta página no es cómodo para ti, puedes utilizar dos soluciones posibles:

  • Vista en pantalla completa – Para ver cómodamente los manuales de instrucciones (sin descargarlos en tu ordenador) puedes utilizar el modo de vista en pantalla completa. Para activar la vista del manual Motorola ONCE SC140 en pantalla completa, utiliza el botón Pantalla completa
  • Descargar al ordenador – también puedes descargar el manual de instrucciones de Motorola ONCE SC140 a tu ordenador y guardarlo en tu colección. Sin embargo, si no quieres ocupar espacio en tu dispositivo, siempre podrás descargarlo de ManualsBase.
Motorola ONCE SC140 Manual de instrucciones - Online PDF
Advertisement
« Page 1 of 28 »
Advertisement
Versión impresa

Muchas personas prefieren no leer el documento en la pantalla, sino en versión impresa. La opción de impresión también está prevista y puedes utilizarla haciendo clic en el enlace más arriba - Imprimir el manual. No tienes que imprimir el manual completo de Motorola ONCE SC140, solo las páginas que elijas. Ahorra papel.

Resúmenes

A continuación encontrarás resúmenes de los contenidos incluidos en las páginas posteriores del manual de instrucciones para Motorola ONCE SC140. Puedes utilizarlos si quieres ver rápidamente el contenido que se encuentra en la siguientes páginas del manual.

Resúmenes de contenidos
Resumen del contenido incluido en la página 1


Using the SC140 Enhanced OnCE
Stopwatch Timer
Application Note
by
Kim-Chyan Gan
and Yuval Ronen
AN2090/D
Rev. 0, 11/2000

Resumen del contenido incluido en la página 2

OnCE is a trademark of Motorola, Inc. This document contains information on a new product. Specifications and information herein are subject to change without notice. Motorola reserves the right to make changes without further notice to any products herein. Motorola makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does Motorola assume any liability arising out of the application or use of any product or circuit, and specifi

Resumen del contenido incluido en la página 3

Abstract and Contents 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

Resumen del contenido incluido en la página 4

7 Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 8 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Appendix A Complete Example of Profiling iv Using the SC140 Enhanced OnCE Stopwatch Timer 

Resumen del contenido incluido en la página 5

1 Introduction A stopwatch timer is an apparatus for measuring the exact duration of an event. Measuring time during execution of code on a Digital Signal Processor (DSP) is useful to identify opportunities for code optimization, to understand system loading, and to compare execution speeds of different processors. This application note presents techniques to implement a stopwatch timer on the StarCore, SC140, using the built-in features of the DSP’s Enhanced On-Chip Emulation (OnCE) module.

Resumen del contenido incluido en la página 6

2 SC140 Enhanced OnCE Stopwatch Timer Capabilities This section presents the features of the Enhanced OnCE stopwatch timer and the resources required for implementation. The capabilities of the implementation of the stopwatch timer are also explained. 2.1 Features The Enhanced OnCE stopwatch timer provides the following features:  A 64-bit counter, incrementing on each DSP clock cycle. The counter is less susceptible to overflow with 64-bit precision.  The stopwatch timer can be used repe

Resumen del contenido incluido en la página 7

3 Setting Up the Stopwatch Timer Within an Application This section describes the operations necessary to initialize, start, and stop the stopwatch timer within an application. The sequence of operations is shown in Figure 1. Additionally, this section presents the conversion of cycles to actual time and puts all the application code together. Finally, this section explains how to adapt the stopwatch timer code to other SC140-based devices. Initialize Stopwatch Enable Stopwatch Sequence Inst

Resumen del contenido incluido en la página 8

Initializing the stopwatch timer consists of setting up the Address Event Detection Channel (EDCA). The role of EDCA in the stopwatch timer implementation is to trigger the commencement of the cycle countdown. The Enhanced OnCE supports six EDCAs. The implementation presented in this application note uses EDCA1, though this choice is arbitrary. Set up of the EDCA requires initializing the following four registers:  The 32-bit EDCA reference value register A (EDCA1_REFA).  The 32-bit EDCA r

Resumen del contenido incluido en la página 9

32-bits of the flag variable’s address are used. Thus, EDCA1_MASK is set to 0xffffffff, meaning all address bits will be compared. 3.2 Starting the Stopwatch Timer The C code to start the stopwatch timer is shown in Code 2. Code 2. C Code to Start the Stopwatch Timer #include “EOnCE_registers.h” void EOnCE_stopwatch_timer_start() { WRITE_IOREG(ECNT_VAL,MAX_32_BIT); /* Countdown will start at (2**32)-1 */ WRITE_IOREG(ECNT_EXT,0); /* Extension will count up from zero */ WRITE_I

Resumen del contenido incluido en la página 10

3.2.2 Counter Registers ECNT_VAL is a countdown counter, and ECNT_EXT is a countup counter. ECNT_VAL is decremented on each occurrence of an event, as specified in the control register. ECNT_EXT is incremented each time there is an underflow in ECNT_VAL. For maximum cycle counting capacity, the stopwatch timer implementation initializes ECNT_VAL to the largest possible value which is 4294967295, or 0xffffffff. ECNT_EXT is initialized to zero. 3.3 Stopping the Stopwatch Timer The C code t

Resumen del contenido incluido en la página 11

Code 4. C Code for Clock-Cycle-to-Time Conversion typedef enum { EONCE_SECOND, EONCE_MILLISECOND, EONCE_MICROSECOND } tunit; unsigned long Convert_clock2time(unsigned long clock_ext, unsigned long clock_val, short option) { unsigned long result; switch(option) { case EONCE_SECOND: result= clock_ext*MAX_32_BIT/CLOCK_SPEED + clock_val/CLOCK_SPEED; break; case EONCE_MILLISECOND: result= clock_ext*MAX_32_BIT/(CLOCK_SPEED/1000)

Resumen del contenido incluido en la página 12

3.6 Adapting Stopwatch Timer Code to Other SC140 Devices The stopwatch timer implementation controls the Enhanced OnCE by writing to its memory-mapped registers. The addresses of these registers are determined in the memory map of the device in which the SC140 core is embedded. The offset between the base address of the memory-mapped peripherals and the addresses of the Enhanced OnCE registers is the same across SC140-based devices. Therefore, when adapting the stopwatch timer code for a

Resumen del contenido incluido en la página 13

Figure 4. Finding the Starting Address in the Debugger After finding the starting address, the event detector can be setup. The procedures are outlined in these steps: 1. Choose EOnCE > EOnCE Configurator > EDCA1. 2. Click PC in the “Bus Selection” box. 3. Enter the address of the first instruction in the measured code into the “Comparator A Hex 32-bits” box. 4. Click Enable in the “Enabled after Event On” box. Figure 5 on page -10 shows the event detection settings after performing these st

Resumen del contenido incluido en la página 14

Figure 5. Event Detection Settings 4.1.2 Setting Up the Event Counter The event counter is configured to the same mode as described in Section 3.2.1, “Event Counter Control,” on page -5, except this time the configuration is made using the debugger windows: 1. Choose EOnCE > EOnCE Configurator > Counter. 2. Click Core Clock in the “What to count” box. 3. Click EDCA1 in the “Enable after Even On” box. 4. Type “0xffffffff” in the “Event Counter Value (Hex 32 bits)” box. 5. Check the box in the

Resumen del contenido incluido en la página 15

Figure 6. Event Counter Settings 4.2 Stopping the Stopwatch Timer Stopping the stopwatch timer is achieved by halting execution of the application at a breakpoint. Set up the breakpoint at the point in the application at which timing should stop to achieve the desired affect. After the breakpoint is in place, the debugger can be instructed to run the application. When execution of the application reaches the breakpoint, the value of the stopwatch timer counters can be retrieved by opening

Resumen del contenido incluido en la página 16

Figure 7. Event Counter Dialog Box When Debugger Halts at Breakpoint 5 Setting Up the System Clock Speed Every SC140-based device contains a Phase Lock Loop (PLL) block, which controls the operating frequency of the device. The frequency of the device is governed by the frequency control bits in the PLL control register, as defined in Equation 2. MFN  - --- --- --- -- - Fext × MFI +  MFD --- -- --- --- --- -- --- --- --- --- -- --- --- --- --- -- --- --- --- - - Fdevice = Eqn. 2 PODF × P

Resumen del contenido incluido en la página 17

Figure 8. Programming Model of PCTL0 Figure 9. Programming Model of PCTL1 5.1 Setting Up the PLL in Software The clock frequency of the SC140 can be set up either in software or in hardware. This section describes how to set the SC140 in the Software Development Platform (SDP) to operate at 300 MHz using these two alternatives. The C code to set up the PLL to 300 MHz is shown in Code 6. Code 6. C Code to Set Up the PLL to 300 MHz #include “EOnCE_registers.h” void PLL_setup_300MHz() { a

Resumen del contenido incluido en la página 18

With these configurations, the Fchip is calculated as expressed in Equation 3. 0  -- - 50MHz × 24 +  1 - --- --- -- --- --- --- --- -- --- --- --- -- --- --- --- -- - Fchip== 300Mhz Eqn. 3 41 × The PLL should be configured so that the resulting PLL output frequency is in the range specified in the device’s technical data sheet. 5.2 Setting Up the PLL in Hardware During the assertion of hardware reset, the value of all the PLL hardware configurations pins are sampled into the clock contro

Resumen del contenido incluido en la página 19

In EE_CTRL, the EE1DEF field is set to 00, which signifies output signal when detected by EDCA1. The remaining fields in EE_CTRL are irrelevant because they are not used. Code 7 shows the setup code for EE control registers. Code 7. EOnCE_LED_init() void EOnCE_LED_init() { *((long *)EE_CTRL) &= ~(3<<2); /* Toggle EE1 when event1 happens */ } 6.1.2 Toggling EE1 The initialization previously discussed the set up of EE1 to toggle each time an event is detected by EDCA1. The same channel is als

Resumen del contenido incluido en la página 20

Code 9. Testing Code #include #include "EOnCE_stopwatch.h" #ifdef COMPILER_BETA_1_BUG extern long ECNT_VAL; #else #include "EOnCE_registers.h" #endif void PLL_setup_300MHz() { asm("move.l #$80030003,PCTL0"); asm("move.l #$00010000,PCTL1"); } void main(){ unsigned long clock_ext,clock_val,clock_cycle,cycle_req; unsigned long time_sec; extern unsigned long CLOCK_SPEED; PLL_setup_300MHz(); EOnCE_stopwatch_timer_init(); /* Setup to event


Manuales de instrucciones similares
# Manual de instrucciones Categoría Descargar
1 Motorola CME-12D60 Manual de instrucciones Equipamiento para ordenador 3
2 Motorola MCU DT128 Manual de instrucciones Equipamiento para ordenador 3
3 Motorola MC68HC05RC8 Manual de instrucciones Equipamiento para ordenador 0
4 Motorola MCU CMD912x Manual de instrucciones Equipamiento para ordenador 0
5 Motorola HC12 Manual de instrucciones Equipamiento para ordenador 202
6 Motorola MCU DG128 Manual de instrucciones Equipamiento para ordenador 1
7 Motorola MVME3100 Manual de instrucciones Equipamiento para ordenador 6
8 Motorola MVME956UM2 Manual de instrucciones Equipamiento para ordenador 0
9 Motorola 68HC12BC32 Manual de instrucciones Equipamiento para ordenador 1
10 Motorola MCU 68HC912 Manual de instrucciones Equipamiento para ordenador 10
11 Motorola MPC8260 Manual de instrucciones Equipamiento para ordenador 5
12 Motorola MVME162 Manual de instrucciones Equipamiento para ordenador 26
13 Motorola PrPMC800/800ET Processor PMC Module Manual de instrucciones Equipamiento para ordenador 0
14 Motorola 68HC12B32 Manual de instrucciones Equipamiento para ordenador 9
15 Motorola MVME5100 Series Manual de instrucciones Equipamiento para ordenador 36
16 Sony MSAKIT-PC4A Manual de instrucciones Equipamiento para ordenador 2
17 Sony MRW62E-S1 2694866142 Manual de instrucciones Equipamiento para ordenador 5
18 Philips MATCH LINE 9596 Manual de instrucciones Equipamiento para ordenador 17
19 Sony 64GB SDHC Class 10 Memory Card Readers SF32UY Manual de instrucciones Equipamiento para ordenador 1
20 Philips PSC702 Manual de instrucciones Equipamiento para ordenador 1