See:
10k is a good value here.
{Should I mention weak pull-ups?}
Now that gets me to thinking: Here is a neat trick to get a 'push-pull' output from two PORT A pins:1: define them as analog (ADCON1)
2: TRIS them as outputs.Now, when you BSF either of them the other will automatically be cleared.
Any time you read the port you will reset the 'current value' condition for the pins.So, if you take an interrupt and read the port to see what changed it will reset the interrupt condition. This is good.
Where you get in trouble is if _another_ change in the input occurs just at the moment you are reading the port. In this case you can miss it.
But, if you know for certain that a second change on any of the inputs cannot occur before you get into your interrupt handler and read the status you will be ok.
see also:
Interested:
Comments:
Questions:
I am trying to use a pic16c74 in the Slave parrallel port mode where portd can be read and written to by another processor. I want to read the IBF input buffer full but after writting to the portD the IBF bit never goes high. Am I missing something?