Angie_MY
Junior Member level 1
well, i am trying to build a system that simulate the keyboard input.
PIC microcontroller --> P/2 port --> computer
i searched thought the internet, and i found this
it take input from keyboard and output to RS232.
https://www.electronic-engineering.ch/microchip/projects/keyboard/v1xx/keyboard_v1xx.html
i am thinking to reserve the process, microcontroller output the keyboard signal (microcontroller simulate as keyboard.)
that page i mentioned above, show that,
therefore, i am thinking to do like this
keyboard clock ==> PORTA, 1
keyboard signal ==> PORTA, 2
this will repeat continuous to send signal to computer.
would my idea work?
how fast should i set to send the signal?
Thanks.
i am very new to microcontroller, please guide me
thanks.
Added after 3 hours 40 minutes:
anyone,..?
please advise me ...
PIC microcontroller --> P/2 port --> computer
i searched thought the internet, and i found this
it take input from keyboard and output to RS232.
https://www.electronic-engineering.ch/microchip/projects/keyboard/v1xx/keyboard_v1xx.html
i am thinking to reserve the process, microcontroller output the keyboard signal (microcontroller simulate as keyboard.)
that page i mentioned above, show that,
The keyboard is free to send data to the host when both KBD data and KBD clock lines are high (idle). The serial clock is generated by the keyboard.
The transmission of data in the forward direction, i.e. keyboard to host, is done with a frame of 11 bits. The first bit is a start bit (logic 0) followed by 8 data bits (LSB first), one parity bit (odd parity) and a stop bit (logic 1). Each bit has to be read on the falling edge of the clock.
therefore, i am thinking to do like this
keyboard clock ==> PORTA, 1
keyboard signal ==> PORTA, 2
bsf PORTA, 1 ; GENERATE THE CLOCK (RAISING EGDE)
bsf PORTA, 2
or ; EITHER WILL GENERATE THE SIGNAL 0 OR 1
bcf PORTA, 2
bcf PORTA, 1 ; GENERATE THE CLOCK (FALLING EGDE)
this will repeat continuous to send signal to computer.
would my idea work?
how fast should i set to send the signal?
Thanks.
i am very new to microcontroller, please guide me
thanks.
Added after 3 hours 40 minutes:
anyone,..?
please advise me ...