CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

INT_RDA & PIC16F628 & ver 2.717

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
kben
Guest







INT_RDA & PIC16F628 & ver 2.717
PostPosted: Sat Apr 19, 2003 1:29 am     Reply with quote

I posted this a long time ago, and moved on to other projects.
However, I have never been able to get the hardware uart ISR to work with ver 2.717 & a pic16f628. I read through every post on this forum and none address this problem directly. I did download the new example files and *.h files, but the new file
(1/4/2001) for the 16f628 is the exact same as the old one (7/21/2000). I would be very happy if anyone could explain to me what the proper procedure is to get this working. It's not my hardware or my code, it is some kind of bug in ver 2.717 of the compiler, and I am not sure how to fix it.
INT_RDA is 0x8C20, and Global is 0x0BC0
Thanks in Advance
___________________________
This message was ported from CCS's old forum
Original Post ID: 13803
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

Re: INT_RDA & PIC16F628 & ver 2.717
PostPosted: Sat Apr 19, 2003 8:07 am     Reply with quote

:=I posted this a long time ago, and moved on to other projects.
:=However, I have never been able to get the hardware uart ISR to work with ver 2.717 & a pic16f628. I read through every post on this forum and none address this problem directly. I did download the new example files and *.h files, but the new file
:=(1/4/2001) for the 16f628 is the exact same as the old one (7/21/2000). I would be very happy if anyone could explain to me what the proper procedure is to get this working. It's not my hardware or my code, it is some kind of bug in ver 2.717 of the compiler, and I am not sure how to fix it.
:=INT_RDA is 0x8C20, and Global is 0x0BC0
:=Thanks in Advance


Hi:

I´m not sure if somebody still have that old PCM version to test your code.

CURRENT SOFTWARE VERSION : 3.152

Post your code and we will try to help you.

Best wishes

Humberto
___________________________
This message was ported from CCS's old forum
Original Post ID: 13817
_________________
Humberto
kben
Guest







Re: INT_RDA & PIC16F628 & ver 2.717
PostPosted: Sat Apr 19, 2003 2:26 pm     Reply with quote

:=:=I posted this a long time ago, and moved on to other projects.
:=:=However, I have never been able to get the hardware uart ISR to work with ver 2.717 & a pic16f628. I read through every post on this forum and none address this problem directly. I did download the new example files and *.h files, but the new file
:=:=(1/4/2001) for the 16f628 is the exact same as the old one (7/21/2000). I would be very happy if anyone could explain to me what the proper procedure is to get this working. It's not my hardware or my code, it is some kind of bug in ver 2.717 of the compiler, and I am not sure how to fix it.
:=:=INT_RDA is 0x8C20, and Global is 0x0BC0
:=:=Thanks in Advance
:=
:=
:=Hi:
:=
:=I´m not sure if somebody still have that old PCM version to test your code.
:=
:=CURRENT SOFTWARE VERSION : 3.152
:=
:=Post your code and we will try to help you.
:=
:=Best wishes
:=
:=Humberto
///////////////////////////////
//Code Sample
#device PIC16F628
#include "C:\PROJECTS\DEFS\16f628.h"

#fuses xt,nowdt,noprotect,put,nobrownout,nolvp
#use delay (clock=4000000)
#use rs232 (baud=9600, rcv=PIN_B1, xmit=PIN_B2, parity=N, bits=8,ERRORS)

void flashled();

char c;

////////////////////////////////////////
#INT_RDA // Commented out for NON INT_RDA
void serial_isr(){ // Commented out for NON INT_RDA
c = getc(); // Commented out for NON INT_RDA
} // Commented out for NON INT_RDA
////////////////////////////////////////

main ()

{

enable_interrupts(INT_RDA); // Commented out for NON INT_RDA
enable_interrupts(GLOBAL); // Commented out for NON INT_RDA

flashled();
puts("\r\n Starting Test ...\r\n");

while(1){

delay_ms(2000); // Commented out for NON INT_RDA
// c=getc(); // Commented out for INT_RDA
puts("\r\n In Loop ...\r\n");

putc(++c); // add 1 to c and display it
c = 'Y'; // assign char c a known value when using INT_RDA
} // if I don't press a key 'Z' will display
}

void flashled() {
int i;
for(i=0;i<=8;i++) {
output_low(PIN_A4);
delay_ms(200);
output_high(PIN_A4);
delay_ms(200);
}
}
// End Code Sample
///////////////////////////////
This example works fine with the c=getc() NON INT_RDA code.
If I uncomment the INT_RDA rtns, it just conitually displays
In Loop ...
Z
So it is acting like it never get the INT_RDA when a
key is pressed on the keyboard.
Thanks in advance for any suggestions.
___________________________
This message was ported from CCS's old forum
Original Post ID: 13826
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group