In SX Microcontrollers, SX/B Compiler and SX-Key Tool, transistortoaster wrote: Hello, I am debugging an interrupt controlled clocked serial reveiver for an AT PS2 keyboard. My problem is that I am not getting always 11 interrupts for a 1 start +8 data +1 parity+1 stop bit frame of 11 clock cycles. I see this by my data being misaligned by 1 bit (it happens in both directions) and also the downcounter I use for the quantity of bits received not equal to 0 after 11 interrupts. QUESTION: I would like to read the WKPND_B register, but the compiler is rejecting the second line of this piece of code: mov M, #$09 ;WKPND_W get B change interrupt status register mov w, !rb How do I read WKPND_W? Or does somebody have and ISR for a PS2 keyboard I could work with? Frank ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=139679 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)