/********************************************************************************** * Program Name:loop speed test * Author :atsushi hasegawa * Date : 2006-12-21 * explanation :test program for 102 loop speed * * JAPANROBOTECH C-Language Development Environment **********************************************************************************/ #include "JRT102.h" // Hardware definition #include "RoboDesigner.h"// RoboDesigner Hardware definition #include "TiCollaLib.h" // Library definition #include "vectors.h" // Interruption vector definition #include "initialize.h" // Ininitalize #include "interrupt.h" // Interruption /*--------------------------------------------------------------------------------*/ /* Variable declaration */ /*--------------------------------------------------------------------------------*/ #define LED CN7 //LED-CN matching dword i; /*--------------------------------------------------------------------------------*/ /* Prototype declaration */ /*--------------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------------*/ /* main */ /*--------------------------------------------------------------------------------*/ void main(void) { init(); //Initialization while(1){ LED=1; //LED on for(i=0;i<=1000000;i++){ COPCTL = 0; } LED=0; //LED off for(i=0;i<=100000;i++){ COPCTL = 0; } COPCTL = 0; } }