PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
Re: 16F877 and 18F452 RB interrupts |
Posted: Mon May 19, 2003 1:15 pm |
|
|
:=I was using the RB (pins 4-7) interrupt on an 16F877 without any problems. I needed more programming space so I went to an 18F452. I can not get the RB interrupts to function. Are there additional settings for the 18F452 that are not required for the 16F877 for the RB interrupt to work?
--------------------------------------------
In your 16F877 code, do you have something like this:
#byte port_b = 6
so that you can clear the "change" condition by reading
the port in the isr ?
ie:
#int_rb
void int_rb_isr(void)
{
char c;
c = port_b;
// etc.
}
If so, did you change the address of Port B from 6, to the
address used by the 18F452 chip, 0xF81 ?
___________________________
This message was ported from CCS's old forum
Original Post ID: 144514557 |
|