Re: PIC, Keyboard, and USART



Abstract Dissonance wrote:
I'm going to try to program a simple keyboard translator using the PIC2455
which has a built in EUSART. At this point I just want to get the keyboard
codes into the pic and I just want to run this by you guys to make sure I'm
on the right track.

1. Setup hardware. Basicaly just have to connect the Data and Clock lines to
the EUSART pins on the pic
2. Enable the USART on the pic for Asynchronous mode and enable auto baud
rate dection(to make it easy).

No. You will need *synchronous* slave mode which uses the external
clock from the keyboard.

3. Read the RCREG in the interrupt and do whatever with it(like make an LED
blink on certain codes).

Is that basicaly all I have to do? Do I need to use pullups or anything
when connecting the lines or even use transistors to source/sink more
current?

Yes, use pullup resistors.

(I'm running the keyboard off a 5V supply that can source up to .5mA or so)

The keyboard takes a lot more than 0.5mA!

Dave :)

.



Relevant Pages

  • Re: PIC, Keyboard, and USART
    ... which has a built in EUSART. ... Basicaly just have to connect the Data and Clock lines ... clock from the keyboard. ... blink on certain codes). ...
    (sci.electronics.basics)
  • Re: PIC, Keyboard, and USART
    ... which has a built in EUSART. ... codes into the pic and I just want to run this by you guys to make sure ... Are you talking about a PC keyboard? ... Yes, Ofcourse... ...
    (sci.electronics.basics)
  • Re: PIC, Keyboard, and USART
    ... which has a built in EUSART. ... codes into the pic and I just want to run this by you guys to make sure I'm ... Are you talking about a PC keyboard? ...
    (sci.electronics.basics)
  • RE: SendKeys.Send Problem
    ... I've read your following comments and wrote some codes. ... I am not familiar with the german keyboard, so it is hard for me say the ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.windowsforms)
  • RE: SendKeys.Send Problem
    ... I've read your following comments and wrote some codes. ... I am not familiar with the german keyboard, so it is hard for me say the ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.windowsforms)

Loading