Thanks Darrel.
I know it was a pretty naive question but I am debugging some code and if the value was moved, it would have explained the problem!
Type: Posts; User: scopit; Keyword(s):
Thanks Darrel.
I know it was a pretty naive question but I am debugging some code and if the value was moved, it would have explained the problem!
Hi there
This may be a dumb qestion but I am teaching myself and learning the hard way so please be kind to me!
If I use the MOVF to move the contents of a register in RAM to W....does the PIC...
Thanks Dave you were right. I removed the pull up and in the process found a dry joint. This may have been the source of the issue in the first place, but was causing the intermittent behaviour.
...
Thanks Dave, I'll check the voltages again but from your post, the problem may be on the logic low.
Here's the latest!
I have upped the PSU voltage and checked all the connections.With a pull up resistor the optical encoder output switches between 1.3 and 4.4 volts.
It will trigger the...
Hi Bill
The plug pack is switchable, I'll up it to 7.5 & 9v and see if it makes a difference.
I suspect the problem is between the receiver and the PIC as the input to RB0 is clamped at 1.65V....
Seems it wasn't a solution :(
It is now in that frustrating state of intermittent
Alain
I took your advice and increased the TX diode current. At the same time I tried a weak pull up on the output of the optical encoder. This seems to have done the trick and the interrupt is now...
This was because I could not get the interrupts to work at first. I didn't know if there was a problem to use INTCON and so I changed it. I did the same with OPTION....it was just desperation I spent...
Alain
Thanks for the input on the Tx diode. I have checked the output of the opto encoder and the pin is toggling so I am assuming the diode is working.
I am using screw terminals to wire up the...
Hi Alain
I don't have a good schematic tool but I hope the attached picture from the HOA2001 datasheet helps. I have added some comments on the connections.
Thanks.
Scopit
Hi Jerson,
Thanks for the welcome and the suggestion. RB0 is set to an input and I can connect the pin to 5V and trigger the interrupt routine manually. I have also tried enabling the internal pull...
Hi everyone
I'm new to the forum and on my first PIC project. I have built my own JDM2 programmer and test board. I have tried searching the forum but so far I haven't found an answer to my problem....