Line 25... |
Line 25... |
25 |
unsigned int8 LSB=0,ZK,k=0; |
25 |
unsigned int8 LSB=0,ZK,k=0; |
26 |
//unsigned int8 |
26 |
//unsigned int8 |
27 |
|
27 |
|
28 |
while(TRUE) |
28 |
while(TRUE) |
29 |
{ |
29 |
{ |
30 |
|
- |
|
31 |
|
- |
|
32 |
|
- |
|
33 |
|
- |
|
34 |
i2c_start(); //blockdatacontrol |
30 |
i2c_start(); //blockdatacontrol |
35 |
I2C_Write(0xAA); |
31 |
I2C_Write(0xAA); |
36 |
I2C_write(0x61); |
32 |
I2C_write(0x61); |
37 |
i2c_start(); |
33 |
i2c_start(); |
38 |
I2C_Write(0xAA); |
34 |
I2C_Write(0xAA); |
Line 78... |
Line 74... |
78 |
|
74 |
|
79 |
if(ZK==0x73) |
75 |
if(ZK==0x73) |
80 |
{ |
76 |
{ |
81 |
LSB=LSB-1; |
77 |
LSB=LSB-1; |
82 |
printf("Vysledne LSB %lX \r\n", LSB); |
78 |
printf("Vysledne LSB %lX \r\n", LSB); |
83 |
while(TRUE) |
79 |
while(TRUE){} |
84 |
{ |
- |
|
85 |
} |
80 |
} |
86 |
} |
- |
|
87 |
|
- |
|
88 |
else |
81 |
else |
89 |
{ |
82 |
{ |
90 |
i2c_start();//blockdata |
83 |
i2c_start();//blockdata |
91 |
I2C_Write(0xAA); |
84 |
I2C_Write(0xAA); |
92 |
I2C_write(0x44); |
85 |
I2C_write(0x44); |