PAK-VIa keyboard interface problem.
Archiver
Posts: 46,084
Just got the PAV-VIa in place.
Ok, I figured out the difference between pin17 (enable) and pin 18
(Enable2). I'm using pin 18, and leaving the Pin 17 not connected.
Still....embarrassed.....I don't get any serial info from the output
pin 8 of the pakVIa. But read a lot from the input pin 7. The input
7 should be receiving serial info, not transmit.
Is there anybody with some experience with this co-processor?
I will use the keyboard as manual input of numbers and letters to
the BS2p. Anybody figured out a hex conversion to ASCII?
IMode, pin2, is connected to ground for Cooked mode.
The pin13 is not going high when data is available.(strange)
This is the code so far:
Out12=0 ' Enable2 pin18
Pause 10
serout 11,84,[noparse][[/noparse]$FF] ' Pin11 is output
pause 500
'Serout 11,84,[noparse][[/noparse]$01]
Out12=1
loop:
serin 13\12,84,[noparse][[/noparse]keyin]
Debug hex2 Keyin," "
Goto loop
The debug screen show a lot of: FF 00 FF 00 FF 00, but don't respond
when I hit a key.
Ok, I figured out the difference between pin17 (enable) and pin 18
(Enable2). I'm using pin 18, and leaving the Pin 17 not connected.
Still....embarrassed.....I don't get any serial info from the output
pin 8 of the pakVIa. But read a lot from the input pin 7. The input
7 should be receiving serial info, not transmit.
Is there anybody with some experience with this co-processor?
I will use the keyboard as manual input of numbers and letters to
the BS2p. Anybody figured out a hex conversion to ASCII?
IMode, pin2, is connected to ground for Cooked mode.
The pin13 is not going high when data is available.(strange)
This is the code so far:
Out12=0 ' Enable2 pin18
Pause 10
serout 11,84,[noparse][[/noparse]$FF] ' Pin11 is output
pause 500
'Serout 11,84,[noparse][[/noparse]$01]
Out12=1
loop:
serin 13\12,84,[noparse][[/noparse]keyin]
Debug hex2 Keyin," "
Goto loop
The debug screen show a lot of: FF 00 FF 00 FF 00, but don't respond
when I hit a key.
Comments
The main thing I see wrong with your code is you have a BS2p and you are
using 84 for the baud mode. This is the correct baud mode for the BS2 but
not the BS2P. For 9600 baud on the BS2P try 240.
If you have more trouble, consider this. Assume you have everything hooked
up OK. When you power up the circuit the keyboard LEDs should "blink". If
not, the keyboard is not getting power at all (how are you powering it?)
If the LEDs do blink, try this. Make sure the PAK-Via reset pin is tied high
through a pull up resistor. Then briefly touch a ground lead to the reset
pin. When you remove the ground lead, the keyboard lights should blink
again. If they do, then you are talking to the keyboard and that is going
OK. If not, you have a problem with the PAK talking to the keyboard (for
example, the PAK is not operating for some reason or the data/clock pins are
reverse or misconnected).
If you get the blink on reset, you are 90% there. That means you just aren't
handling the BS2 to PAK communications for some reason.
Gather some more data and let me know.
Al Williams
AWC
* Up to 256 PWM outputs with the new PAK-Vc:
http://www.al-williams.com/pak5.htm
>
Original Message
> From: