That's what reminded me I had the schematic...;o)At Post#3, I was trying to explain the same method.
That's what reminded me I had the schematic...;o)At Post#3, I was trying to explain the same method.
WoW guys & gals, im overwhelmed with the response to this, thank you all very much.
Some of your ideas I have considdered, like a diode to the B0 pin, but I dont think that would work for my app, I need to have as many pins as input as possible which i think is about 33 at most on the 18f4550 (and 2 pins could fire at the same time), I will take a closer look at some of your suggestions on my day off work, it looks like some of it involves assembler which I dont get :-(, but Im sure I will pick something out of your ideas :-), Im just wondering if just polling the pins would be fast enough @ 20mhz, I'm gonna give all your ideas a try this w/end and see what works, thx
Reading the datasheet & understanding it are two different things.
Just an afterthought,
do all pic micro ports/pins have internal pull up resistors ?, i've been looking at the 18f4550 datasheet but cant tell ?, maybe i'm just stupid or tired lol :-)'
Thanks
Last edited by Bonxy; - 11th March 2010 at 23:25.
Reading the datasheet & understanding it are two different things.
No, internal pullups applys only to portB.
Al.
All progress began with an idea
Some other PICs have pull-ups on PORTA, too. I was not aware of this fact until recently.
Edit: For example, 16F630.
What does it matter?
If one or the other interrupts, you will get into interrupt routine anyway whether two interrupts occur at the same time or not (which I think is very close to impossible !)
While you are in interrupt routine, check the status of all pins, then act based on each of their tasks.
Something like >
Code:RB0_Int: 'we are now in interrupt routine. A = 0 B = 0 C = 0 D = 0 .. .... ....... IF Pin1 = 0 THEN A = 1 ' Pin1 seems to be interrupted. IF Pin2 = 0 THEN B = 3 'Ohh, Pin2 also seems to interrupted. .... .......
Last edited by sayzer; - 12th March 2010 at 09:56.
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
I Found great tutorial USING THE PIC EXTERNAL INTERRUPT on all pin
www.precision.net.in/picbasic/PIC_INT.PDF
.
Hi, PMC
Looks your site is down ...
Could you check the link ???
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks