Attachment 'ej_memory.c'
Download 1 #include <pic/p16f877a.h>
2 #define FOSC_HZ 20000000
3 #include <uart.h>
4 #include <delayms.h>
5 #define I_HAVE_BANK0
6 #define I_HAVE_BANK1
7 #include <memory.h>
8 int main (void)
9 {
10 BYTE x;
11 delayms(250);
12 uart_open(SET_9600_8N1);
13 x=memory_bank0(); //bytes libres en el Banco 0
14 uart_putc(x);
15 x=memory_bank1(); //bytes libres en el Banco 1
16 uart_putc(x);
17 delayms(100);//retardo para dar tiempo a que se envie el ultimo caracter
18 uart_close();
19 return 0;
20 }
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.