help with pic's
help with pic's
(OP)
Hi,
i decided to get into pic programming as i need to do some interfacing with a pc. i got a book and the picstart plus
programmer. now with the exception of the 16F84 every chip i read about is discontinued when i go to the store.
i want (i think) a pic with a uart, and a simple program to send recieve chars to the pc. ie:
when a 4 digit code is pressed on a keybpad i want the code to be sent to the pc. the pc will then perform some action dependimg on which code is recieved, then sends back a reciept char to the pic which can then display a value on an lcd display.
i thought of starting small and getting the pc bit working
then adding the keypad and then the lcd.
is that a good idea?
all help appreciated.
Cheers,
Russ
i decided to get into pic programming as i need to do some interfacing with a pc. i got a book and the picstart plus
programmer. now with the exception of the 16F84 every chip i read about is discontinued when i go to the store.
i want (i think) a pic with a uart, and a simple program to send recieve chars to the pc. ie:
when a 4 digit code is pressed on a keybpad i want the code to be sent to the pc. the pc will then perform some action dependimg on which code is recieved, then sends back a reciept char to the pic which can then display a value on an lcd display.
i thought of starting small and getting the pc bit working
then adding the keypad and then the lcd.
is that a good idea?
all help appreciated.
Cheers,
Russ





RE: help with pic's
RE: help with pic's
Start with a block diagram. How are you going to drive the LCD? Direct from the PIC or with an LCD driver? How many I/Os does it need?
You only need to send and receive data to the PC one byte at a time. So do you really need a UART? You can generate a serial stream in the PIC and pass it to the PC with just a transistor. You can pass the reply back with just a resistor. That only needs two pins. But you will need a chip with a timer interrupt.
Are you going to scan the keypad by wiring it as a matrix? That would save I/Os.
When you have got the answers you will be in a position to 'pick a PIC' and start programming - a section at a time.
RE: help with pic's
HTH!