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
Re: interrupts converting from 16f877 to 18f452?
Posted: Sun Feb 23, 2003 10:07 pm
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?
Posted: Mon Feb 24, 2003 9:55 am
<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
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