Subversion Repositories svnkaklik

Rev

Rev 410 | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
6 kaklik 1
#include <16F84.h>
2
#use delay(clock=4000000)
3
#fuses XT,NOWDT
4
 
5
#DEFINE  DATA     PIN_B0      // musi byt definovan kanal DATA
6
#DEFINE  CLK      PIN_B1      // a taky hodiny CLK
7
 
8
#define  PRVNI    1000                 // nastaveni prodlevy pred zacatkem vysilani bajtu
9
#define  DRUHY    2
10
#define  TRETI    DRUHY
11
 
12
// prikazy
13
#define  RESET                   0xFF
14
#define  ENABLE_DATA_REPORTING   0xF4
15
#define  READ_DATA               0xEB
16
#define  STATUS_REQUEST          0xE9
17
#define  SET_REMOTE_MODE         0xF0
18
#define  SET_STREAM_MODE         0xEA
19
#define  GET_DEVICE_ID           0xF2
20
 
21
#DEFINE  LED_yellow      PIN_A3
22
#DEFINE  LED_red  PIN_A2
23
 
24
#DEFINE  BLIK     120            // doba rozsviceni led