Why Are PIC Ports Configured as Inputs on Startup?

  • Thread starter Thread starter android5555
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the default input/output configuration of PIC microcontroller ports at startup and the rationale behind this design choice. It touches on theoretical aspects and practical implications of microcontroller behavior during initialization.

Discussion Character

  • Homework-related, Conceptual clarification, Technical explanation

Main Points Raised

  • Some participants assert that all PIC ports are configured as inputs by default upon startup, while others seek to understand the reasoning behind this design choice.
  • One participant emphasizes the importance of this configuration by presenting a scenario where a port pin is used to monitor a power supply, questioning the consequences if the pin were configured as an output instead.
  • Another participant expresses difficulty in finding information regarding the rationale for the default input configuration, indicating a gap in available resources.

Areas of Agreement / Disagreement

Participants generally agree on the default configuration of PIC ports as inputs, but the discussion remains unresolved regarding the reasons for this design choice.

Contextual Notes

Limitations include a lack of detailed explanations for the design rationale and the dependence on specific scenarios to illustrate potential issues with output configurations.

android5555
Messages
5
Reaction score
0
1. What is the default I/O configuration of all PIC ports at program computer system start-up? Why are microcontrollers designed with this standard default configuration?


3. I think all the ports are set to input to start with and then changed accordingly.
 
Physics news on Phys.org
You are correct, but haven't answered the second part of the question. Why are they designed that way?

As this is in the homework section you should have a go at it first.
 
I cannot find the answer anywhere. If I knew the second part of this question I would not have even posted it.
 
Lets say you were using one of the port pins to monitor the status of a 5V power supply rail or battery. eg I've got one of the port pins connected directly to this 5V power supply. Consider what happens if the pic powers up with that pin configured as an output?
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
3K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
3
Views
5K