Ioannis,
I can't see any other problems with the program. Or, any reason why it wouldn't work with the PICDEM2+.
Which PIC are you using with the PICDEM?
<br>
Ioannis,
I can't see any other problems with the program. Or, any reason why it wouldn't work with the PICDEM2+.
Which PIC are you using with the PICDEM?
<br>
DT
Currently the 16F877. I have handy also other to try. Maybe a 18F452.
To be sure that Portb.0 is OK, I tested with a simple loop of the kind:
while portb.0=1
wend
high LED1
and worked OK. So electrically there is no problem.
PICDEM2+ is connected to ICD2 working in programmer mode only. So, there is for sure no other source of interference.
Skimask: could you post the link you mentioned? Thanks
Ioannis
Last edited by Ioannis; - 26th June 2007 at 07:57.
Hi, Ioannis
There : http://www.picbasic.co.uk/forum/showthread.php?t=6574
<< While trying to develop my project using your interrupts, I stuck on, I think for sure, stupid one. The attached sample code does not respond to PORTB.0 interrupt. Is there any mistake I 've made and can't see? >>
Thanks to PbP ... TRISB = 255 and led on PORTB.2 will work ...
BUT does your PORTB.0 change state when button ( ?) pushed ... in other words, is the pullup or pulldown resistor the OTHER side of the Pushbutton ... ( yes, I know it's a really stupid mistake ...but ...)
have a nice day
Alain
Last edited by Acetronics2; - 26th June 2007 at 11:13.
************************************************** ***********************
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 " !!!
*****************************************
Thanks Alain for the link.
About the portb I did not really understood what you meant.
I test the portb.0 independently from the Interrupts and when pressed the program really see it. Like that:
while portb.0=1
wend
high led1
If button on Portb.0 is NOT pressed the program loops in the While-wend. If pressed then the LED1 lights, showing that there is no problem in the Setup or connections.
But when trying the Interrupts nothing happens. Really annoying...
Ioannis
Hi,
For Portb.1 ...
you've declared it as an Input ... and drive a led with it ... so, it's an OUTPUT !!!
...
I think the Interrupt problem could be here ... I remember a thread explainining a Change in the I/Os disabled the Pullups ...
YESS it is !!! ... just over Fig 3.3 of the Datasheet ...
Tadaaaaaaa ..... one RTFM for you !!!
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 " !!!
*****************************************
The LED is on portb.2. Portb is set as all outputs except bit 1. See the trisb=1
So, where is the ... Tadaaa?? :-)
Ioannis
Last edited by Ioannis; - 26th June 2007 at 13:06.
Last edited by Acetronics2; - 26th June 2007 at 13:36.
************************************************** ***********************
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