QP state machine frameworks for M16C QDK™ Renesas R8C/Tau-NC30 Document Revision A August 2008 Copyright © Quantum Leaps, LLC www.quantum-leap
QDK™ R8C/Tau-NC30 www.state-machine.com/m16c An example run of the DPP application is shown in Figure 1. The three user LEDs should start blink-ing.
QDK™ R8C/Tau-NC30 www.state-machine.com/m16c Figure 5 Screen shot from the QSPY output. timestamp QS trace record command-line options used data lost
QDK™ R8C/Tau-NC30 www.state-machine.com/m16c 3 The Vanilla QP Port The “vanilla” port shows how to use QP on a “bare metal” M16C/R8C-based system wit
QDK™ R8C/Tau-NC30 www.state-machine.com/m16c #include "qep_port.h" /* QEP port */ #include
QDK™ R8C/Tau-NC30 www.state-machine.com/m16c 3.3 ISRs in the Non-preemptive “Vanilla” Configuration The NC30 compiler supports writing interrupts in
QDK™ R8C/Tau-NC30 www.state-machine.com/m16c 3.4 QP Idle Loop Customization in QF_onIdle() The cooperative “vanilla” kernel can very easily detect th
QDK™ R8C/Tau-NC30 www.state-machine.com/m16c 4 The QK Port The QP port with the preemptive kernel (QK) is remarkably simple and very similar to the “
QDK™ R8C/Tau-NC30 www.state-machine.com/m16c (4) The macro QK_ISR_EXIT() is designed to be called upon the exit from an ISR programmed in C. The macro
QDK™ R8C/Tau-NC30 www.state-machine.com/m16c } Listing 8 QK_onIdle() callback for R8C Copyright © Quantum Leaps, LLC. All Rights Reserved. 16 of 26
QDK™ R8C/Tau-NC30 www.state-machine.com/m16c 5 Board Support Package The Board Support Package (BSP) for R8with the non-preemptive Vanilla kernel is
Table of Contents 1 Introduction... 1 1.1 What’s
QDK™ R8C/Tau-NC30 www.state-machine.com/m16c 5.2 Linker Options Used 5.2.1 Specifying Program Sections The HEW IDE allows to specify very precisely a
QDK™ R8C/Tau-NC30 www.state-machine.com/m16c 5.2.2 Specifying Stack and Heap Sizes This QDK-M16C/R8C does not use the heap1 uses only the Interrupt St
QDK™ R8C/Tau-NC30 www.state-machine.com/m16c cm13 = 1; /* Xin Xout */ cm15 = 1;
QDK™ R8C/Tau-NC30 www.state-machine.com/m16c 5.6 Assertion Handling Policy in Q_onAssert() As described in Chapter 6 of [PSiCC2], all QP components u
QDK™ R8C/Tau-NC30 www.state-machine.com/m16c 6 The Quantum Spy (QS) Instrumentation This QDK demonstrates how to use the QS software tracing instrume
QDK™ R8C/Tau-NC30 www.state-machine.com/m16c * b5 NCH Data output select bit * b6 CKPOL Clock polarity selected,TX
QDK™ R8C/Tau-NC30 www.state-machine.com/m16c (4) The l_nTimerA1Underflows variable is used to count the number of underflows (transitions 0x0000 ->
QDK™ R8C/Tau-NC30 www.state-machine.com/m16c 7 Related Documents and References Document Location [PSiCC2] “Practical UML Statecharts in C/C++, Sec
QDK™ R8C/Tau-NC30 www.state-machine.com/m16c 8 Contact Information Quantum Leaps, LLC 103 Cobble Ridge Drive Chapel Hill, NC 27516 USA +1 866 450 L
1 Introduction This QP™ Development Kit (QDK) describes how to use QP™ event-driven platform with the Re-nesas R8C processors, the Renesas N
QDK™ R8C/Tau-NC30 www.state-machine.com/m16c The actual hardware/software used to validate this QDK is described below (see Figure 1): 1. Renesas R8C
QDK™ R8C/Tau-NC30 www.state-machine.com/m16c 2 Getting Started This section describes how to install, build, and use the QDK-R8C-NC30_TAU based two e
QDK™ R8C/Tau-NC30 www.state-machine.com/m16c | | | | +-make_r8c.bat - make script for building the QP libraries for R8C target | | | | +-qep_port
QDK™ R8C/Tau-NC30 www.state-machine.com/m16c 2.2 Building the QP Libraries All QP components are deployed as libraries that you statically link to yo
QDK™ R8C/Tau-NC30 www.state-machine.com/m16c 2.3 Building the Examples The examples included in this QDK are based on the standard Dining Philosopher
QDK™ R8C/Tau-NC30 www.state-machine.com/m16c 1. Connect the E8 debugger to the TAU board with the provided ribbon cable as described in the Quick St
Comments to this Manuals