nbt1987
Joined: 28 May 2010 Posts: 3
|
QEi module |
Posted: Wed Jun 23, 2010 11:40 am |
|
|
When use module QEi of PIC18f4431, disable all interrupt IC1,IC2,IC3.
But IC1Flag,IC2Flag,IC3Flag will set 1 automatically when an interrupt condition occur.
I think it don't use any instruction cycle to change its flag.
The Proteus show it true, but when I program in a real PIC, I recognize it seem not true because the delay_ms(1000) generate delay about 3 second when the encoder generate 18000 pulse/second, and it delay 1 second when the encoder stop working (0 pulse/second). I think because encoder signal made interrupt, is it true?
I use crystal 20 MHz.
please explain for me! Thanks |
|