Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How can I sent data kept into the eeprom memory of pic 16f87

Status
Not open for further replies.

joselam

Newbie level 2
Joined
Jun 11, 2007
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,302
rcif+ccs

How can i sent data kept into the eeprom memory of pic 16f876 to a program of Visual basic into the Pc. I am using putc function but i cannot send nothing. In principle i send a simple "H" letter, but only obtain a message of the visual basic program which say "Send Data", do not show me "H" which i send.
Best regards.
:|

these is my code

#int_rda // Serial input interrupt
void serial_isr(void)
{
byte dummy;
if (rcif==1){ // ¿ Interrupción por recepción ?

bandera_interrupcion = 1; // salvamos para utilizarlo en la sección PC_SI_NO y si no existió

interrupción, permanecerá en cero..

rcif=0; // Sí, reponer flag.

parametros[elemento]= getc();
if(ferr) // if we have a framing error clear it by reading rcreg
dummy = rcreg; // this is just a variable dummy used to clear the rcreg after a read


if(oerr) // if we have a overrun error clear it by reseting the cren flag
{ cren = 0; cren =1;}

elemento++;


if(elemento==7){ // para limitar a 7 los caracteres de llegada, el 8vo ya no le cogería:

funciona perfectamente

finrecepcion=1;

disable_interrupts(int_RDA); // deshabilitamos interrupción de la UART.. ....
disable_interrupts(GLOBAL); // deshabilitamos interrupciones globales.

}

} // fin del if del rcif

putc('\n');
puts("H");
delay_ms(1000);
putc('\n');
}
 

I don`t like yor program... its CCS??? have you tested with a Terminal??? even simulator??? could you please post your complete program??? (some variable definitions are missing...)

{en este foro hay gente que no le gusta los comentarios en español... haber si los quitas...}
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top