Subversion Repositories svnkaklik

Rev

Rev 213 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 213 Rev 214
Line 1... Line 1...
1
//********* Robot Camerus pro IstRobot 2007 ************
1
//********* Robot Camerus pro IstRobot 2007 ************
2
//"$Id: camerus.c 213 2007-03-23 14:36:21Z kakl $"
2
//"$Id: camerus.c 214 2007-03-23 14:55:54Z kakl $"
3
//*****************************************************
3
//*****************************************************
4
 
4
 
5
#include ".\camerus.h"
5
#include ".\camerus.h"
6
 
6
 
7
#USE FAST_IO (C)     // Brana C je ve FAST_IO modu, aby slo rychle cist z kamery
7
#USE FAST_IO (C)     // Brana C je ve FAST_IO modu, aby slo rychle cist z kamery
Line 31... Line 31...
31
 
31
 
32
#define CASMIN 6           // Rozsah radku snimace
32
#define CASMIN 6           // Rozsah radku snimace
33
#define CASMAX 192
33
#define CASMAX 192
34
#define CASAVR ((CASMAX+CASMIN) / 2)
34
#define CASAVR ((CASMAX+CASMIN) / 2)
35
 
35
 
36
#define OFFSETO   0x9A //0x9F         // Vystredeni serva pro objeti prekazky
36
#define OFFSETO   0x9F //0x9F         // Vystredeni serva pro objeti prekazky
37
 
37
 
38
#byte INTCON      = 0x0B         // Interrupt configuration register
38
#byte INTCON      = 0x0B         // Interrupt configuration register
39
   #bit GIE       = INTCON.7
39
   #bit GIE       = INTCON.7
40
   #bit PEIE      = INTCON.6
40
   #bit PEIE      = INTCON.6
41
   #bit TMR0IE    = INTCON.5
41
   #bit TMR0IE    = INTCON.5