Stamp II -> PC keyboard input
Archiver
Posts: 46,084
I am attempting to send the keyboard signal for "2" to a PC keyboard input
from a Stamp II. From the data I have, the keyboard and computer
communicate using synchronous serial communication and 11 bit packets at
about 10 kHz. A single keystroke for "2" consists of a unique 11 bit
packet for "2," a short delay while the key is down (probably tens of ms),
a resend of the 11 bit packet for "2," a delay of 3 ms and an 11 bit
packet for key up. Right now, I am using shiftout with \11 and two Stamp
II output lines for clock and data.
When I connected my lines to the computer's keyboard input, the computer
began beeping loudly. I plugged in the real keyboard, and all was back to
normal with the computer. Can anyone advise me as to what the problem
might be? What is the data rate using the shiftout command? Can I adjust
it? Are there any special characteristics of the keyboard communication
protocol I need to know? What other PBASIC commands should I look into? I
can always use high and low commands with a little software timing, but
I'd rather find something simpler.
Michael
/
\
\/\/\/\/\/\/\/\/\/\/\/\/\/\ Michael L. Morgan /\/\/\/\/\/\/\/\/\/\/\/\/\/
/ Email: mlmorgan@o... | WWW: http://home.olemiss.edu/~mlmorgan/ \
\
/
from a Stamp II. From the data I have, the keyboard and computer
communicate using synchronous serial communication and 11 bit packets at
about 10 kHz. A single keystroke for "2" consists of a unique 11 bit
packet for "2," a short delay while the key is down (probably tens of ms),
a resend of the 11 bit packet for "2," a delay of 3 ms and an 11 bit
packet for key up. Right now, I am using shiftout with \11 and two Stamp
II output lines for clock and data.
When I connected my lines to the computer's keyboard input, the computer
began beeping loudly. I plugged in the real keyboard, and all was back to
normal with the computer. Can anyone advise me as to what the problem
might be? What is the data rate using the shiftout command? Can I adjust
it? Are there any special characteristics of the keyboard communication
protocol I need to know? What other PBASIC commands should I look into? I
can always use high and low commands with a little software timing, but
I'd rather find something simpler.
Michael
/
\
\/\/\/\/\/\/\/\/\/\/\/\/\/\ Michael L. Morgan /\/\/\/\/\/\/\/\/\/\/\/\/\/
/ Email: mlmorgan@o... | WWW: http://home.olemiss.edu/~mlmorgan/ \
\
/
Comments
computer so it
assumes there is a keyboard error.
Sending to the computer is easier than vice versa because you get to control
the speed. But you
still need to respond correctly. I wonder if you could hook a keyboard in
and use the Stamp to switch it out just when you go to send your character?
Then switch it back in.
Regards,
Al Williams
AWC
*Add a PS/2 keyboard or mouse to your Stamp, PIC, SX, or other micro
project: http://www.al-williams.com/awce/pak6.htm
P.S. I can't resist -- seeing your e-mail address -- letting you know that
I'm an old
Bulldog. A bit south of Oxford.
>
Original Message
> From: Michael Land Morgan [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=fdxge1V7J4LACtGPYBozLwLMb9LckBJbXHDyMfZqVcglVQ4mSLJ2BEBwKFlnxJvflXq-1BWjbLIEggvCHiqU9LaHbv2vFpUNnZm5Xg]mlmorgan@s...[/url
> Sent: Monday, April 10, 2000 11:06 PM
> To: basicstamps@egroups.com
> Subject: [noparse][[/noparse]basicstamps] Stamp II -> PC keyboard input
>
>
> I am attempting to send the keyboard signal for "2" to a PC keyboard input
> from a Stamp II. From the data I have, the keyboard and computer
> communicate using synchronous serial communication and 11 bit packets at
> about 10 kHz. A single keystroke for "2" consists of a unique 11 bit
> packet for "2," a short delay while the key is down (probably tens of ms),
> a resend of the 11 bit packet for "2," a delay of 3 ms and an 11 bit
> packet for key up. Right now, I am using shiftout with \11 and two Stamp
> II output lines for clock and data.
>
> When I connected my lines to the computer's keyboard input, the computer
> began beeping loudly. I plugged in the real keyboard, and all was back to
> normal with the computer. Can anyone advise me as to what the problem
> might be? What is the data rate using the shiftout command? Can I adjust
> it? Are there any special characteristics of the keyboard communication
> protocol I need to know? What other PBASIC commands should I look into? I
> can always use high and low commands with a little software timing, but
> I'd rather find something simpler.
>
> Michael
>
> /
\
> \/\/\/\/\/\/\/\/\/\/\/\/\/\ Michael L. Morgan /\/\/\/\/\/\/\/\/\/\/\/\/\/
> / Email: mlmorgan@o... | WWW: http://home.olemiss.edu/~mlmorgan/ \
> \
/
>
>
>
>