I thought about the 16 also but couldn't imagine what I would test with all those yet!
I barely hit 6 while playing around with an accelerometer + gyro, DT's INT's, test points, etc..![]()
I thought about the 16 also but couldn't imagine what I would test with all those yet!
I barely hit 6 while playing around with an accelerometer + gyro, DT's INT's, test points, etc..![]()
Louie
I've been doing my testing and research in the kitchen using my laptop this winter; it keeps me closer to the family.
Problem is my laptop has the wrong sex serial connector so I can't use the same cables I've been using on the desktop PC downstairs. Of course I always forget to buy an adapter and was forced to use an LCD to debug.
And this is where things got tangled with this project; all my pins are busy except RX1/TX1 which will be used for comms. No problem, I pulled out another breadboard that has an LCD and will display there. Wrong, can't figure out why data isn't sent properly.
The Saleae confirmed that the message leaves the master just fine so it's 50% solved (picture above). The data is lost as soon as I connect the slave PIC. The sad part is that I had all my breadboards talking together just fine last summer but I'm apparently too dense to figure this one out. Yes, I was using these same PIC models too, argh....
Robert
![]()
I spent all afternoon and then some yesterday trying to get these talking.
Had them working in 5 minutes after posting. LOL
I gave up and did the equivalent of stopping and asking for directions; I looked at my code from last summer real close and noticed this comment:
I can't remember where I got this (didn't notice in the manual if it was there), but that was the problem.Code:'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ' RX must be input or else USART disrupted x 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Robert
EDIT: Now I remember, it was from the datasheet:
For all modes of EUSART operation, the TRIS control
bits corresponding to the RXx/DTx and TXx/CKx pins
should be set to ‘1’. The EUSART control will
automatically reconfigure the pin from input to output, as
needed.
Last edited by Demon; - 21st January 2014 at 04:20.
Not related totally, but I absolutely LOVE my Saleae Logic.
I just used it again today to determine some Infra Red codes from a remote transmitter. I don't use it all that often, but it has helped solve some otherwise very troublesome problems.
Ken
Neat. Can you provide details how you did it?
It's one of those things on my To Do Whenever list.
Robert
Sure - not much to it actually.
What I want to do is determine what the hand held IR remote sends to one of those programmable , scrolling led
signs that you can put in the rear window of your car, or whatever. All I I want to do is to start any already
programmed message, using a PIC instead of the hand-held remote.
I breadboarded a TSSOP type infra red receiver, and connected a single Saleae channel to the output. Then just
pushed any button on a hand-held TV remote for a moment, and captured the pattern. From there it was easy to
duplicate the pattern, using a short program turning a single output off and on, using pauseus delays to match
what the remote sends out. The PIC output pin will be connected to an IR transmitter, to "talk to" the sign.
I have written a simple test program to do this, coupling a PIC to a simple IR transmitter.
I haven't finished this project yet, still waiting for the scrolling sign. However, I have been able to easily duplicate
some transmission patterns from a TV remote, so the next step should be relatively easy. I only plan on "cloning"
a couple of different transmissions, not the entire keyboard, although with enough patience that could be done.
I know there are some perhaps simpler hardware solutions to this, to "learn" what the transmitter sends out, but
this is was a drop-dead simple answer (for me).
I must have several obsolete remotes lying around in the basement. What exactly do I want to scavenge out of them? Is it only that clear LED-looking-thing that is necessary?
Robert
Bookmarks