V
vinodstanur
Guest
Nižšie je môj RC-5 dekódovanie kódu pre PIC16F84.
PHP:
/ * TARGET mikrokontroléry PIC16F84 * / / * kompilátor - High Tech C * / # include # define _XTAL_FREQ 4e6 # define nás __delay_us # define ms __delay_ms unsigned char BUF, príznak, __CONFIG (0x3FFA), RC5 neplatné interrupt () / / dekódovanie RC5 v ISR {INTF = 0; if (RB0 == 0) {nás (100), ak (RB0 == 0) {nás (100), ak (RB0 == 0) {nás (889); if (RB0 == 1) {nás (889), ak (RB0 == 0) {ms (10.632), BUF = 0; for (int a = 0;