在线时间4 小时
UID155410
ST金币0
蝴蝶豆0
注册时间2009-10-21
初级会员
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2010-4-29 00:16:38
|
显示全部楼层
a0a.1 0b0c
回复:請問STM8S interrupt priority 如何調整?
依據RM0016 page 91:
Level 0 can not be programmed (I1_x=1, I0_x=0). In this case, the previously stored value is
kept. For example: if previous value is CFh, and programmed value equals 64h, the result is
44h.
這表示什麼意思呢?
是否我將 TIM4 interrupt priority 設為Level 1 即可 ? 因原本所有interrupt
priority均為 Level 3. 調降TIM4 interrupt priority 即可.
//ITC->ISPR2 = 0xCF; // EXTI PortD (INT06)= Level 2 (00)
ITC->ISPR6 = 0x7F; // TIM4 (INT23) = Level 1 (01)
|
|