What's the difference between SIENF and IENF

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

What's the difference between SIENF and IENF

777 次查看
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 回复

553 次查看
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 项奖励
回复