cancel
Showing results for 
Search instead for 
Did you mean: 

PWM using TIM1 [problem with PortB.0 - TIM1_CH1N]

avi239955_st
Associate
Posted on May 25, 2010 at 12:05

PWM using TIM1 [problem with PortB.0 - TIM1_CH1N]

1 REPLY 1
avi239955_st
Associate
Posted on May 17, 2011 at 15:08

This lines was wanting:

FLASH_Unlock(FLASH_MEMTYPE_DATA);     // unlock data memory by passing the RASS key in the proper order

FLASH_ProgramOptionByte(0x4803,0x20);     // byte OPT2 resides at address x4803, write a 1 to bit 5.  This will also write to the NOPT2 complement byte

FLASH_Lock(FLASH_MEMTYPE_DATA);       // re-lock data memory