I am using the DEMOJM60 kit and trying to get a keyboard interrupt from PORTA 4, to take the micro out of STOP mode. I have followed code from a 908JL8 program which works OK. I cannot cause an interrupt. Initialise code: CLR KBISC ;SETUP PORT A4 RXD INT CLR KBIES ;FALLING EDGE INCASE GLITCH WHILE PULLUP TURNS ON CLR PTADD LDA #$20 ;PULLUP R PORTA4 STA PTAPE STA KBIPE ;A4 INT enable LDA #4 ;KBISC_KBACK STA KBISC ;CLR FALSE INT ORA #2 ;KBISC_KBIE STA KBISC ;INT ON CLI STOP ....
At the start of the program I have enabled STOP mode: LDA #$20 ;ALLOW STOP MODE STA SOPT1