Re: PIC, Keyboard, and USART
- From: "Abstract Dissonance" <Abstract.Dissonance@xxxxxxxxxxx>
- Date: Thu, 23 Mar 2006 15:50:49 -0600
"David L. Jones" <altzone@xxxxxxxxx> wrote in message
news:1143148600.704232.321890@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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.
Why is this? Wouldn't the auto baud rate detect and interrupts work? I will
look at it though and see... I'm not to familiar with the different methods.
I was thinking that each time the clock pulsed it would trigger an interrupt
and you could read the data off the data line and store it... or something
like that.
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!
Sure ;)
Dave :)
Thanks,
Jon
.
- Follow-Ups:
- Re: PIC, Keyboard, and USART
- From: David L. Jones
- Re: PIC, Keyboard, and USART
- References:
- PIC, Keyboard, and USART
- From: Abstract Dissonance
- Re: PIC, Keyboard, and USART
- From: David L. Jones
- PIC, Keyboard, and USART
- Prev by Date: Re: Simple circuit to generate 12VDC from a 9v battery?
- Next by Date: Re: PIC, Keyboard, and USART
- Previous by thread: Re: PIC, Keyboard, and USART
- Next by thread: Re: PIC, Keyboard, and USART
- Index(es):
Relevant Pages
|
Loading