Nigel Goodwin said:
Pull-UP is the giveaway, it's pulls UP to the positive rail, as opposed to a pull-DOWN which goes to ground.
Gotcha. Sounds obvious now, but it always does after you understand it, eh? ~_^
Nigel Goodwin said:
No, they are both logic inputs, it's just that the schmitt trigger inputs include hysterisis - but that's a hardware thing, which can be useful at times, it doesn't affect the software at all.
Ah, OK I understand why there are Schmitt triggers there now. (Just had to wiki hysteresis.) With that, I see why the ST won't do any good against debouncing. However, I think my problem, if indeed one exists, is a little different than the debouncing used in your tutorial.
The circuit I'm replicating is written up in the attachment - the microcontroller sends three bytes along the DATA line, then takes 'snapshots' of the values at PORTA for the fourth and PORTB for the fifth. In this case, a bounced switch wouldn't bother the microcontroller's operation, as long as it stops bouncing by the time the snapshot is taken. I'm only worried about the case where it bounces right at that moment, in which case the button would act as if it were not pressed.
I'm a little stumped as to how to solve this problem, if indeed it needs to be solved. With those conditions in mind, should I be worried about bounce? If so, would you have any ideas on where to start coding to fix it? My current code's fairly light as is.
Thank you so much! I'm always amazed with how helpful and insightful the users of this forum are. ^_^