Attachment 'ej_pinio.c'
Download 1 #include <pic/p16f877a.h>
2
3 #define FOSC_HZ 20000000
4
5 #include <pinio.h>
6 #include <delayms.h>
7
8 int main (void)
9 {
10 delayms(100);
11
12 while(TRUE)
13 {
14 delayms(50);
15 output_high(PIN_C2);
16 delayms(50);
17 output_low(PIN_C2);
18
19 if(input(PIN_A4)==1) output_high(PIN_B7);
20 else output_low (PIN_B7);
21 }
22 return 0;
23 }
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.