Interrupt Generation throught Output bits in the B-byte
Dear Users,
I am working with an SX 28 and using the interrupt feature on byte B. As you know, you only can set the whole byte for interrupts. I have only one input bit, that should trigger this interrupt. However, due to the limited amount of ports of the SX, I also use four pins as Output ports in the B byte. Could these Output pins also trigger an interrupt, as soon as they are set high?
Thanks a lot. I appreciate any help.
Matthias
I am working with an SX 28 and using the interrupt feature on byte B. As you know, you only can set the whole byte for interrupts. I have only one input bit, that should trigger this interrupt. However, due to the limited amount of ports of the SX, I also use four pins as Output ports in the B byte. Could these Output pins also trigger an interrupt, as soon as they are set high?
Thanks a lot. I appreciate any help.
Matthias
Comments
Can I then still use interrupt disabled pins as regular Input pins?
Right now I have enabled Pin 0 as Interrupt Pin, and want to read Pin1. However, I cannot read any values (it is always 0).
Also: somehow my interrupt now starts on both rising and falling edges. I have set the register to falling edge in the start of the program: WKED_B = %11111111 .
What is wrong with that? It seems, this has changed, since I changed the encoder. I now use an US Digital E5 Kit with two Channel output and trigger Channel A on falling edge. Then I read Channel B and can find out in which direction the motor turns.
Sincerely,
Matthias
Post Edited (Matthias1) : 5/6/2009 8:22:36 PM GMT