cancel
Showing results for 
Search instead for 
Did you mean: 

ref manual clarification needed: GPIO locking

lanchon
Associate III
Posted on March 22, 2008 at 06:29

ref manual clarification needed: GPIO locking

3 REPLIES 3
lanchon
Associate III
Posted on May 17, 2011 at 12:26

''5.1.6 GPIO locking mechanism

[...] it is no longer possible to modify the value of the port bit until the next reset.''

''5.2.7 Port configuration lock register (GPIOx_LCKR)

[...] it is no longer possible to modify the value of the port bit until the next reset.''

what reset? is a peripheral-local reset enough? software reset? POR?

lanchon
Associate III
Posted on May 17, 2011 at 12:26

also TIM1 locking:

''12.4.12 Using the break function

[...] The LOCK bits can be written only once after an MCU reset.''

''12.5.18 Break and dead-time register (TIM1_BDTR)

Bits 9:8 LOCK[1:0]: Lock Configuration.

[...] The LOCK bits can be written only once after the reset. Once the TIM1_BDTR register has been written, their content is frozen until the next reset.''

same question, what type of reset will clear the lock?

lanchon
Associate III
Posted on May 17, 2011 at 12:26

I tested the TIM1 lock; a peripheral reset (TIM1_DeInit()) clears it.