What's the difference between SIENF and IENF

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

What's the difference between SIENF and IENF

653件の閲覧回数
lydiaj5000
Contributor I

I have a GPIO interrupt working on an LCP11Uxx. There are two registers SIENF and IENF that seem to do the same thing. They both set a bit in IENF. The datasheet says writing to IENF sets an interrupt, and writing to SIENF just writes to IENF. I tested it in the debugger, and it's true.

If I can write directly to IENF, what is the purpose of SIENF?

0 件の賞賛
返信
1 返信

429件の閲覧回数
carstengroen
Senior Contributor II

Have a look in the Users Manual:

pastedImage_1.png

Using IENF you can both set and reset the enable interrupt (writing 0 or 1) in the SIENF you can only enable the interrupt (writing 1), writing a 0 to one of the bits in SIENF has no effect (so you can't by mistake, disable any interrupts that are enabled somewhere else, by setting its bit to 0 in SIENF)

0 件の賞賛
返信