![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| I am referring to Peatman’s book on PIC uCs. He says that when the RB0/INT pin is used as an interrupt input, it is automatically configured as a Schmitt trigger input, triggering on the input edge regardless of the rise (or fall) time. What do you mean by this? Even among the RA0 – RA4 pins, RA0 – RA3 are TTL while RA4 is Schmitt trigger. What’s the difference b/w them? RB0 is infact TTL / ST ?! Please help | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| WHy wudnt it be more reliable, with the i/p changing slowly, if it is configured as TTL. As far as I know, Schmitt trigger helps when there are many fluctuations in the i/p as it crosses near the threshold. But if the i/p is changing monotonically, TTL & Schmitt trigger make no difference. Let me know if I'm wrong... | |
| |
| | (permalink) | |
| Quote:
So, if you have an input of 2.5V - what is the output?, high or low?, and is it 100% guaranteed to ALWAYS be exactly the same. In fact, the switching point is so vague that you can use CMOS gates as an analogue amplifier!. For a schmitt trigger input, and I'm just assuming values again!, the pin doesn't read HIGH until the input reaches say 3V, then it actually SNAPS to be high, rather than a vague change. If the pin then drifts downwards, it won't go LOW until say 2V, when again it again SNAPS low. The difference between the two switching points is called hysteresis. As I said before, there's plenty on information on the net, try http://hyperphysics.phy-astr.gsu.edu...c/schmitt.html for one example. | ||
| |
| | (permalink) | |
| Thanks a lot, Nigel. I got your point. So if rise or fall time is too long, had the pin been configured as TTL, there would be an ambiguity regarding the precise timing of the interrupt when the i/p is between 0.8V & 3.5V (VIL & VIH). However I didn't get this point of yours. Quote:
| ||
| |
| | (permalink) | |
| Quote:
However, there's different degrees of 'linear', you wouldn't want to use them for a high quality audio preamp?. | ||
| |