Selectable events
dnalor
Posts: 222
in Propeller 2
In the propeller 2 documentation there is tabel with these selectable events:
What am I missing?
%000_00_00AA = this cog reads LUT address %1111111AA %000_00_01AA = this cog writes LUT address %1111111AA %000_00_10AA = odd/even companion cog reads LUT address %1111111AA %000_00_11AA = odd/even companion cog writes LUT address %1111111AA %000_01_LLLL = hub lock %LLLL rises %000_10_LLLL = hub lock %LLLL falls %000_11_LLLL = hub lock %LLLL changes %001_PPPPPP = INA/INB bit of pin %PPPPPP rises %010_PPPPPP = INA/INB bit of pin %PPPPPP falls %011_PPPPPP = INA/INB bit of pin %PPPPPP changes %10x_PPPPPP = INA/INB bit of pin %PPPPPP is low %11x_PPPPPP = INA/INB bit of pin %PPPPPP is highThe last two do not make sense to me. These are not events. A Pin is high or low. If it changes I have a event.
What am I missing?
Comments
The problem was that sometimes when you'd be configuring an interrupt for a smart pin INA/INB event, the INA/INB bit would already be high and would not go low again until you acknowledged the smart pin. So, there needed to be an interrupt source that would stay 'on' until the smart pin was acknowledged, which would happen in the interrupt service routine.
So these events are triggered, when INA/INB states are newly set (regardless of the previous state) in smart pin mode.
I think I understand now.
Thank you.