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.

PORTB interrupt on change PIC16 - expert advice needed

Status
Not open for further replies.

radu

Member level 2
Member level 2
Joined
May 30, 2001
Messages
51
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
Baenre compound, MENZOBERRANZAN
Activity points
398
interrupt portb 4-7

Hi
has anyone done the 'not recommended by microchip' polling of PORTB<4:7> as a result of an interrupt on one of these <4:7> pins?
I'm trying to read synchronous serial as follows:
1. PORTB input -> floats high
2. Interrupt on change (PORTB 4 goes low) - block portb int on change
3. PORTB 5 generates clock
4. PORTB 4 clocks data in

Thanks to any takers
radu
 

portb interrupt

Why you don't use PIC with build in serial communication (Rx, Tx pins) and you dont have any problems.

With one config bit is definining which type of serial communication you use sinhronous or asinhoronous.


Mr.Cube
 

my main concern was to detect a "request to send" status and read off the same pin, but i have done it differently. i dont have an int on change on <4:7> but rather a tmr0 int which checks those lines from time to time.
works perfect
thanks though
radu
 

Pic interrupt

Radu,

Hello, for your request to send , you can use the PORTB0 interrupt and then use the serial port of the pic.

Which pic are you using?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top