Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

PORTB interrupt on change PIC16 - expert advice needed

Status
Not open for further replies.

radu

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
 

mrcube_ns

Advanced Member level 1
Joined
Apr 10, 2002
Messages
452
Helped
48
Reputation
96
Reaction score
34
Trophy points
1,308
Location
Europe
Activity points
3,814
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
 

radu

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
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
 

mosfet

Newbie level 3
Joined
Feb 6, 2003
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
34
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.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top