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.

PIC18 & Interrupt Problem

Status
Not open for further replies.

Sobakava

Full Member level 6
Joined
Mar 27, 2002
Messages
350
Helped
8
Reputation
16
Reaction score
8
Trophy points
1,298
Activity points
3,342
pic18 interrupt routin

CCS 3.148:

I am porting a 16F877 code to 18F452 but
it seems my program has problems with
interrupts.

Only RB0 EXT0 interrupt enabled. I send
"ISR" string for debugging from serial port
at the start of #INT_EXT.

Program sends ISR string continuously
even the RB0 is connected to GND and there is
no level change.

What's wrong?
 

pic18 low interrupt

Maybe this can help you.
PIC17CXXX to PIC18CXXX Migration: **broken link removed**

You can try to look here as well. Migrating Designs from PIC16C74A/74B to PIC18C442: **broken link removed**

PIC16 to PIC18 Code Conversion Techniques:
**broken link removed**
**broken link removed**

Copied from 00726a.pdf:
External Interrupts
For the PIC17CXXX, the INT interrupt had its own vector
address. In the PIC18CXXX, it is part of the peripheral
interrupts vector address. This means that the INT
interrupt code will need to be moved into the general
peripheral interrupt service routine (ISR), and this routine
will need to add a check for the INT interrupt
source.
The PIC18CXXX family has some enhancements for
the external interrupts. First, there are now three external
interrupt pins, as opposed to one pin in the
PIC17CXXX family. Second, enhancements to the
architecture of the interrupt logic allows additional
capability (High/Low priority). These enhancements
are discussed in the section “Architectural Enhancements”
.
 

interrupts external in pic18

This might not be right but if RB0 is connected to a switch. then you will have to implement a protocol to debounce it otherwise rattling of the switch is sufficient enough to to send your program in ISR all the time.
 

pic18 int_ext

RB0 is connected to another chip in my system and the other
chip generated interrupt if data is ready. PIC16F877 is success
with same hardware...
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top