Make sure your code fits on the 16F628.
I also have the Lab-X1 and U2 USB programmer. This is what I use for in-circuit debugging:
http://www.sparkfun.com/tutorials/104
Robert
Make sure your code fits on the 16F628.
I also have the Lab-X1 and U2 USB programmer. This is what I use for in-circuit debugging:
http://www.sparkfun.com/tutorials/104
Robert
Thanks for this. I went to the Sparkfun address but didn't find the info I wanted regarding the schematic you posted. RX and Tx connect to ? Is there any software that goes with it or do I just use the Microcode Studio debugger as usual? The Lab X1 uses this chip and a 75176 IC as well. Is that needed? (looks like it's only there for 485 comm).
Bob
The RX and TX pins on your PIC (C6 and C7), refer to the datasheet. The Lab X1 is wired for this already.
That's what I use.
I look at the schematic for the Lab X1 and can't come up with a reason why it wouldn't work. I had made that circuit way back when I started with a U2 serial programmer; didn't have the Lab X1 then.
I probably just got in the habit of using my old thing-a-ma-bob.
I don't know the 75176 chip but it isn't connected to the RS485 connector for nothing. I'm guessing JP4 comes into play (this is only conjecture at this point). I haven't had to check RS232 on the Lab X1 yet.
Robert
From LabX1.txt:
I don't have an SN75176 on my Lab X1. So unless you put one in, you should be set to go (my programming PC is not available right now)RS232
... PORTC.6 and PORTC.7 are shared with the RS485 driver. Only one of the two
interfaces, RS232 or RS485, should be installed at a time.
...
RS485
...To enable RS485 communications, remove the MAX232 from its socket and install an RS485 driver IC. Pin compatible ICs include the MAX485 and SN75176, among others....JP4 controls the receive enable (/RE) line. This line is normally grounded to allow the received data to always appear on PORTC.7....
Last edited by Demon; - 5th March 2012 at 02:21.
Thanks Robert, this is really helpful.
Now that I look at the LabX1 schematic, I'm thinking I don't even have to make this little circuit which I could whip up quickly. I should be able to grab the two signals (Tx and Rx) right off the LabX1 board, at least where the LabX1 is close to my project.
Another question: Is there a USB version for this? The LabX1 has serial input and your schematic shows a DB9 which I assume is serial interface as well. Pretty well none of my new computers have serial or parallel connections anymore, in fact I had to buy a serial PCI card for my computer just to run the debugger.
MeLabs has adapters here (thanks to Bruce for finding this link in another thread):
http://store.melabs.com/prod/adapters/ICD210A.html
But then you have to get one of their ICD programmers to do the USB interfacing; that makes our USB U2 programmer obsolete. I don't know if this will work with MCS+, it only talks about MPLAB.
As far as I know, our USB U2 programmer doesn't do in-circuit debugging (couldn't find any reference last time I checked).
Robert
EDIT: I do remember reading of USB-serial adapters, just never looked them up.
Bookmarks