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 CCS Technical Support

interrupts converting from 16f877 to 18f452?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
j@qmail.com
Guest







interrupts converting from 16f877 to 18f452?
PostPosted: Sun Feb 23, 2003 9:51 pm     Reply with quote

I am converting an application from the 16f877 to the 18f452. I am using the 3.146 compiler.

I assume that all I have to change is to use a different include for the different chip and then recompile recompile the program. However, rda and timer0 interrupts do not appear to be working when the application is moved to the 18f452.

Before I start digging into the data sheets and writing test programs, is there anything else with respect to interrupts I need to be aware of when switching to the 18f452 chip?

Jay
___________________________
This message was ported from CCS's old forum
Original Post ID: 12045
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

Re: interrupts converting from 16f877 to 18f452?
PostPosted: Sun Feb 23, 2003 10:07 pm     Reply with quote

Timer0 is a 16bit timer on the 18F's. Also the 18's have priority interrupts. You might check the regs to make sure something is not set incorrectly.

:=I am converting an application from the 16f877 to the 18f452. I am using the 3.146 compiler.
:=
:=I assume that all I have to change is to use a different include for the different chip and then recompile recompile the program. However, rda and timer0 interrupts do not appear to be working when the application is moved to the 18f452.
:=
:=Before I start digging into the data sheets and writing test programs, is there anything else with respect to interrupts I need to be aware of when switching to the 18f452 chip?
:=
:=Jay
___________________________
This message was ported from CCS's old forum
Original Post ID: 12048
j@qmail.com
Guest







Re: interrupts converting from 16f877 to 18f452?
PostPosted: Mon Feb 24, 2003 9:55 am     Reply with quote

<font face="Courier New" size=-1>:=Timer0 is a 16bit timer on the 18F's. Also the 18's have priority interrupts. You might check the regs to make sure something is not set incorrectly.

Thanks! I switched to timer2. Timer2 works exactile the same on both chips. The rda problem is fixed too. Everything works great now!!

Jay</font>
___________________________
This message was ported from CCS's old forum
Original Post ID: 12057
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