- which osc speed do you use? - i have a 16f876 with 4M
'628 @ 20 MHz
- have you defined a shift_pauseus? - i try it . around 40us seems best
I used 50 uS
- how long do you wait until you send the release code (F0) after the button press comand? - i don't wait
In my particular application, I sent a 'make' code at keydown and a 'break' code at keyup. So the waiting time was up to the buttonpusher.
- how looks your hardware setup? - 2 transistors at portc with pull up works at best. nod good because i get different chars... when i only take pullups instead the transisitors, after connect the keyboard it wouldn't be initialized.
Just a pair of 4K7 pullup resistors on clock and data. The pins on my pic are set to be inputs (high impedence) unless I'm transmitting.
- what are you doing at the booting from the pc?
My project doesn't so far parse all of the boot communication which takes place, because it's only used after Windows has totally started.
I'd started to send copies of the incoming data out to a terminal program so I could see what was being said, but didn't spend much time there due to other projects.
However, one of the documents mentioned earlier in this thread has a fairly detailed description of the commands and responses that will be flying around on a properly configured system.
Sorry I can't help much more.
John
Bookmarks