Hi,
If I configure a port to be either pullup/pulldown, does it save the condition on the next powerup, ie having a pullup/pulldown before the microntroller code can run through port configuration?
Thanks
Carl
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
If I configure a port to be either pullup/pulldown, does it save the condition on the next powerup, ie having a pullup/pulldown before the microntroller code can run through port configuration?
Thanks
Carl
In the users guide, the register descriptions contain the initial values and the condition under which they are initialized (PUC/POR/BOR):
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| ID1 | ID0 | MC1 | MC0 | unused | TACLR | TAIE | TAIFG |
| rw-(0) | rw-(0) | rw-(0) | rw-(0) | rw-(0) | rw-(0) | rw-(0) | rw-(0) |
You see, that all bits in this example are read/write, and are initialized to 0 at POR (without brackets: PUC, with curly brackets: BOR)
**Attention** This is a public forum