Hello all,
I'm working on a project right now using a PIC Microcontroller. More specifically, I'm using the PIC16HV785. However, I have never ever managed to get inputs to work, regardless of the MCU I use. Obviously I'm doing something wrong.... I follow example diagrams and example software, but for some reason, it doesn't work! Ouputs I have no problem with.
Are there any common downfalls? These MCUs all seem to be pretty tolerant of not using pull ups, using pull ups, using various crystals/resonators. I am using 8MHz crystal and I think 256 pre-scaler. The examples I follow are always slower crystals (not so easy to get hold of these days). Am I going too quickly for the switch input?
The other thing I am wondering, is whether it is easy to drive a 12v output without the use of a relay? The O/P from the microprocessor is 5v, but can it be passed through a few darlington pairs to drive 12v? I've also looked at using optocouples, but again, they're something I'm not familiar with.
Any advice is greatly appreciated! I have trawled the world wide wonderweb and checked that my software has the correct oscillator settings etc etc, I've used pull up resistors, not used pull up resistors, changed the MCU, started over again! I think I hold a high percentage of the world's copper reserves just in vero-board!
Thanks!
I'm working on a project right now using a PIC Microcontroller. More specifically, I'm using the PIC16HV785. However, I have never ever managed to get inputs to work, regardless of the MCU I use. Obviously I'm doing something wrong.... I follow example diagrams and example software, but for some reason, it doesn't work! Ouputs I have no problem with.
Are there any common downfalls? These MCUs all seem to be pretty tolerant of not using pull ups, using pull ups, using various crystals/resonators. I am using 8MHz crystal and I think 256 pre-scaler. The examples I follow are always slower crystals (not so easy to get hold of these days). Am I going too quickly for the switch input?
The other thing I am wondering, is whether it is easy to drive a 12v output without the use of a relay? The O/P from the microprocessor is 5v, but can it be passed through a few darlington pairs to drive 12v? I've also looked at using optocouples, but again, they're something I'm not familiar with.
Any advice is greatly appreciated! I have trawled the world wide wonderweb and checked that my software has the correct oscillator settings etc etc, I've used pull up resistors, not used pull up resistors, changed the MCU, started over again! I think I hold a high percentage of the world's copper reserves just in vero-board!
Thanks!