530
HTTP/1.1 200 OK
Date: Sat, 18 Jun 2005 20:11:41 GMT
Server: Apache/1.3.26 (Unix) Debian GNU/Linux mod_perl/1.26 mod_ssl/2.8.9 OpenSSL/0.9.6g PHP/4.1.2
Last-Modified: Thu, 07 Sep 2000 23:34:16 GMT
ETag: "95c9a4-530-39b825f8"
Accept-Ranges: bytes
Content-Length: 1328
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Content-Type: text/x-csrc

// filename  COP12.C  
// add this file so that handle COP  
// COP reset could have been disabled by writing COPCTL=0;
// In this module however, COP is active
// Consequently, this module will create a TOF thread
//   to keep the active COP from generating a COP reset
// Last modified 8/17/00 by Jonathan W. Valvano
 
// Copyright 2000 by Jonathan W. Valvano, valvano@uts.cc.utexas.edu 
//    You may use, edit, run or distribute this file 
//    as long as the above copyright notice remains 


//******** TOFhandler ***************
// called when TCNT rolls over from $FFFF to 0
// at 500ns counting, interrupts every 32ms
#pragma interrupt_handler TOFhandler
void TOFhandler(void){
   TFLG2=0x80;           // TOF interrupt acknowledge
   PORTT^=0x40;          // toggle bit 6
   COPRST=0x55;          // make COP happy 
   COPRST=0xAA;
}
#pragma abs_address:0xffde
void (*TOF_vector[])() = { TOFhandler };
#pragma end_abs_address

//***
0

