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.

PIC18F4520: Analog Data Acquisition

Status
Not open for further replies.

lalit2308

Newbie level 1
Joined
Feb 23, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,288
hello everyone. . .
I need some help on my project.
I need to read analog inputs from 3 pins from port A when i receive an interrupt/trigger on pin RB0. Analog data will b converted to 10 bit digital and transmitted using UART terminal after attaching some headers. . .

Rest of the code is ready is in C, but i m facing problems invoking the interrupt function. . .
please help. . . .
 

Hi,

In main program, you need to enable global interrupts (GIE bit), enable External Interrupt (relevant INTxIE bit), set relevant INTEDGx depending on rising or falling edge that interrupt should be occur.

There should be a special function in you language to write interrupt routine, use it. Execute what ever needed inside it and at end, clear relevant flag INTxF bit.
Hope this helps you,
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top