in the transmitter part
u see the dgood pin..it is connected to valid pin in receiver...
therefore whenever i press the keypad, dgood become low which indicate valid =0...therefore it will goes out from the wait loop (in the receiver part) and display the number inside
Hey Charles, you suppose we could see a schematic? It sort of looks as if you want to send serial data from one pic to the other, hence skimasks question, but if you have everything all hardwired together, then we need to see how.
JS
dgood (portB.4) from PIC1 i connect it to valid(portB.6) from PIC2...sorry there is a mistype in the code it should be valid var portB.6 not valid var byte...then otupin(portB.7) from PIC1 is connected to keyinput(portB.5) from PIC2)/....yup i'm trying to send data serially from pic1 to pic2...any suggestion?thanx very much...
best regards
Charles
Easy skimask, Down boy, Down!
Let me take this one ...
I'm always skeptical when someone Cut&Pastes their entire program into a Post.
And, the one thing that points out a definate cause of the described problem suddenly turns into a "typo".
In the middle of a Cut&Paste? Come on!
See, I can do it too.
Ok well, my advice is to dump the keypad routine, and use this...
Matrix Keypad routine (mister_e)
http://www.picbasic.co.uk/forum/showthread.php?t=3250
Then take a look here...
How to make your own PIC network (mister_e)
http://www.picbasic.co.uk/forum/showthread.php?p=5708
Not exactly what you are doing, but the concepts are the same. Just 2 PIC's instead of many.
<br>
DT
The output my program right now when i display on the lcd is
ENTER POLARITY
1)+ 2)- 0(this zero should be number that is pressed on the keypad)
Well, I'm guessing that he's using one of them thar 17C756, or maybe not. I can't tell.
And I'm also guessing that he's using a bunch of switches, maybe even, dare I say, a telephone keypad, probably without any pullup or pulldown resistors (although there are ways around that). Again, I can't tell.
And I'm betting that the search function hasn't been used much, 'cause there's a lot of info out there on connecting 2 PICs together and using a matrix style keypad. I'm at a loss...
Oh, and I've got this car, it's making this noise. Can you help?
Back at ya...
Bookmarks