-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtest_086.c
33 lines (29 loc) · 1.38 KB
/
test_086.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
void test_086(void)
{
Direct_L=(BIT_L0 | BIT_L1 | BIT_L2 | BIT_L3 | BIT_L4 | BIT_L5 | BIT_L6 | BIT_L7);
Direct_H=(BIT_H0);
DDRE=3;
PORTE=2;
Port_L=(BIT_L0 | BIT_L2 | BIT_L4 | BIT_L6);
Port_H=(BIT_H7 | BIT_H6 | BIT_H5 | BIT_H4 | BIT_H3 | BIT_H2 | BIT_H1 | BIT_H0);
delay_ms(1);
res &= ((Pin_L==(BIT_L0 | BIT_L2 | BIT_L4 | BIT_L6)) && (Pin_H==(BIT_H7 | BIT_H5 | BIT_H3 | BIT_H1 | BIT_H0)) && (PINE==2));
Port_L=(BIT_L1 | BIT_L3 | BIT_L5 | BIT_L7);
delay_ms(1);
res &= ((Pin_L==(BIT_L1 | BIT_L3 | BIT_L5 | BIT_L7)) && (Pin_H==(BIT_H6 | BIT_H4 | BIT_H2 | BIT_H0)) && (PINE==6));
Direct_L=0;
Direct_H=(BIT_H7 | BIT_H6 | BIT_H5 | BIT_H4 | BIT_H3 | BIT_H2 | BIT_H1 | BIT_H0);
DDRE=7;
PORTE=0;
Port_L=(BIT_L0 | BIT_L1 | BIT_L2 | BIT_L3 | BIT_L4 | BIT_L5 | BIT_L6 | BIT_L7);
Port_H=(BIT_H7 | BIT_H5 | BIT_H3 | BIT_H1 | BIT_H0);
delay_ms(1);
res &= ((Pin_L==(BIT_L0 | BIT_L2 | BIT_L4 | BIT_L6)) && (Pin_H==(BIT_H7 | BIT_H5 | BIT_H3 | BIT_H1 | BIT_H0)) && (PINE==0));
Port_H=(BIT_H6 | BIT_H4 | BIT_H2 | BIT_H0);
PORTE=4;
delay_ms(1);
res &= ((Pin_L==(BIT_L1 | BIT_L3 | BIT_L5 | BIT_L7)) && (Pin_H==(BIT_H6 | BIT_H4 | BIT_H2 | BIT_H0)) && (PINE==4));
Port_L=0;
Port_H=0;
PORTE=0;
}