3
votes
1answer
117 views

What happens when you set a pin in the wrong direction?

All MCU's have digital pins, which you can configure to function as input or output. When you set something to 'output' which is wired as an 'input', will there be any possibilities of short-circuits ...
2
votes
3answers
370 views

Using the PICkit3 and PIC18F4550

For my microcontrollers class, I am using an advanced 8-bit microprocessor, the PIC18F4550. I am trying to program it with a PICkit 3. I have used the device datasheet and the PICkit 3 datasheet to ...
8
votes
3answers
508 views

C++ classes for I/O pin abstraction

I am looking for C++ abstractions for hardware I/O points or pins. Things like in_pin, out_pin, inout_pin, maybe open_collector_pin, etc. I surely can come up with such a set of abstractions myself, ...
11
votes
2answers
2k views

“Tristate a pin”

What does it mean to "tristate a pin" on a CMOS microcontroller?