View previous topic :: View next topic |
Author |
Message |
hobby
Joined: 12 Apr 2004 Posts: 109 Location: Brussels
|
Posted: Tue Feb 12, 2019 11:21 pm Post subject: Reading 4 AT (PS2) Keyboard |
|
|
Hi,
I search how to reading 4 AT (PS2) Keyboard, it's possible with bascom ?
The reading of AT (PS2) keyboard is just send in RAW to another AT (PS2) output.
Thanks
Olivier
(BASCOM-AVR version : 2.0.8.1 ) |
|
Back to top |
|
|
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
Posted: Wed Feb 13, 2019 11:09 am Post subject: |
|
|
Hi Olivier,
just look help for PS2
JP _________________ pleasure to learn, to teach, to create |
|
Back to top |
|
|
hobby
Joined: 12 Apr 2004 Posts: 109 Location: Brussels
|
Posted: Wed Feb 13, 2019 1:34 pm Post subject: |
|
|
Hello JP,
Thanks to reply.
I have checked the help before post, for reading AT Keyboard can be use GETATKBDRAW.
But, i can create multiple CONFIG KEYBOARD like this:
CONFIG KEYBOARD = PINB.0 , DATA = PINB.1 , KEYDATA = table1
CONFIG KEYBOARD = PINB.2 , DATA = PINB.3 , KEYDATA = table2
CONFIG KEYBOARD = PINB.4 , DATA = PINB.5 , KEYDATA = table3
CONFIG KEYBOARD = PINB.6 , DATA = PINB.7 , KEYDATA = table4
Thanks
Olivier |
|
Back to top |
|
|
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
Posted: Wed Feb 13, 2019 5:43 pm Post subject: |
|
|
oups yes I inderstand
why dont you use 4 attiny 85 to scan the keyboards and to send result to a master
you need 5 pins : 2 pins for keyboard, 1 pin to enabled the keyboard (to read each one without collision) and 2 pins (or one) to transmit data TX RX. the Attiny as 5 pins available with bascom I let free B5 the reset pin .
jp
here ATtiny85 are cheaper than 45 one ??? 2.30€ and 4.50€ _________________ pleasure to learn, to teach, to create |
|
Back to top |
|
|
hobby
Joined: 12 Apr 2004 Posts: 109 Location: Brussels
|
Posted: Wed Feb 13, 2019 6:45 pm Post subject: |
|
|
OK, now i have the response, not possible.
The multiple MCU, is more complicate for my, specialy for update.
Arduino Nano cost under 2 euro, and easy to update.
But maybe, i can use this:
Code: |
Do
CONFIG KEYBOARD = PINB.0 , DATA = PINB.1 , KEYDATA = table1
var = GETATKBDRAW
send via atemu
CONFIG KEYBOARD = PINB.1 , DATA = PINB.2 , KEYDATA = table2
var = GETATKBDRAW
send via atemu
.....
Loop
|
Possible ?
Thanks
Olivier |
|
Back to top |
|
|
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
Posted: Thu Feb 14, 2019 11:27 am Post subject: |
|
|
from the help :
config keyboard is not reusable
maybe ask for the support ? _________________ pleasure to learn, to teach, to create |
|
Back to top |
|
|
hobby
Joined: 12 Apr 2004 Posts: 109 Location: Brussels
|
Posted: Thu Feb 14, 2019 4:50 pm Post subject: |
|
|
Many thanks for your help JP.
I will not bore Mark with this, I think I can find a solution without going through an MCU.
Thanks
Olivier |
|
Back to top |
|
|
|