Did anyone find an assembly language routine to read a PS/2 mouse that can be easily modified to work on a PIC 16F628A? The 2 from EPE magazine didn’t work for me. Can you write to an input port before changing it to an output port? He did that numerous times. Can you do that?
START MOVLW 0xFF
MOVWF PORTA ;PORTA is input, stayed at 00000000 ?
CLRF PORTB ; PORTB was clear and is input, wouldn't have changed
SENDCOMMAND CLRF PARITY
BCF PORTA , 01 ; set clk low for at least 100us (1)
BSF STATUS , RP0
BCF TRISA , 01 ; set clk as output
BCF STATUS , RP0
I have been searching for 3 days and found a lot of info but not a useable routine. If anyone has a good link, please post it.
Thank you
Clyde