Here is the current schematic.....any thoughts?
kittmaster
Posts: 77
I think I'll create a daughter board for the PS/2 connections and the audio through the 16 data lines to the headers.
Up to this point does anyone see anything out of place?
To understand the USB/RS232 thing >
In the run mode it will be receiving data from my 8051 controller via serial stream. When the run/program relay is activated, it will have two choices via a user switch to be programmed via usb or rs232.
Any comments or thoughts here?
thanks
Post Edited (kittmaster) : 12/21/2007 3:29:35 PM GMT
Up to this point does anyone see anything out of place?
To understand the USB/RS232 thing >
In the run mode it will be receiving data from my 8051 controller via serial stream. When the run/program relay is activated, it will have two choices via a user switch to be programmed via usb or rs232.
Any comments or thoughts here?
thanks
Post Edited (kittmaster) : 12/21/2007 3:29:35 PM GMT
Comments
Everything is exactly as the demo board shows it based on the schematic, except for my new programming setup, but each of those blocks is from the datasheet schematics.
Here is what the board should look like when its done.
I will be shrinking the design once I actually get it to work. This will be done on my CNC routers to save money. When ready, then I sent the whole lot of boards to fab.
I don't want to spend money on fab boards without 100% functionality.
The program I'm using is Ultiboard by electronics workbench/NI
(2) I should recommend a manual reset switch as well. I never do, so I need more hard power-on resets than I expected
The reset is active low, but the alternative serial circuit has a DC blocking capacitor between the reset pin and the source PNP transistor. Now in normal run mode, that transistor should be on, charging the cap to 3.3v, leaving a high there so the propeller can run normally, and pull low to reset the prop.
With blocking cap there, once the cap charges, it should also be 3.3v volts? So what is the point in having a DC blocking cap on a DC line for an IC that needs the transistion? Is this suppossed to stop random noise from resetting the device? Because .1uf isn't that much of a delay.
Also while looking at the USB section, I noticed my PNP transistor didn't have a collector resistor, so I put in 4.7K on the collector to 3.3v and the collector to the reset pin, I'm assuming this is correct because it will need to be pulled up for the logical high.
I will post my new schematic changes as soon as I finish them, but in theory does the above sound right? or am i missing something?
I would prefer not to have an ECO for something I can nail down right now......[noparse]:)[/noparse]
Oh, and I added a tactile switch connected to ground to the reset pin of the prop to ground so that when with the usb or the serial is connected the active high, when the switch is pressed it grounds the pin and current will flow through the 4.7K collector resistors of either the usb or serial programming section.......hence the question for above.
I'll get schematics up asap if this is confusing.
Thanks
The cap works as a differenciator, it is pulld high by the internal pull-up as well.
So don't change anything!
You see.. These are the problems when taking over the schematics from another person's designs
Its funny you should say it that way, I've scanned the datasheet and there is zero mention of any of the term open collector as a phrase or words, and I purposedly looked to see about that.
But if you look at the datasheet "alternative serial port connection" section, that collector of the transistor has a pull up, while anything USB (BM or RQ) series has no pull up resistors at all. Clearly a confusing situation.
So clearly there is STILL a conflict. If I follow either method, it would dictate to me that one section will work correctly but not the other, or both sections will work.......so why two seperate sets of hardware setup if they both do the same job? Smile shoot?
I guess I'm questioning why the serial port needs a pull up yet the USB does not on the reset line but yet both use a 2N3904 transistor to do the deed. It is VERY confusing.
thanks for the tip on the open collector, I guess that is just something that others have stepped on a landmine and figured out the hard way. I do think it should be documented since it is not in the datasheet, which is typically the bible for any device and typically trumps any and all other docs.
[noparse]:)[/noparse]
Chris
What do you mean "the serial port neds a pull-up"? Can it be that you refer to R30? That has little to do with the reset but provodes negative voltage for the XMIT line.
R17 in the USB schematic - on the other hand - is a kind of "pull-down", as the following transistor is an inverter.
There are many possibilitoes to do these things, I myself know of four different - though similar - schematics for "near RS 232 simulation".
now switch to USB, the PropDemoDschem.pdf shows the collector directly tied to the reset pin with no pull up (as you mentioned there is an internal pullup).
So we have two completely different circuits USB and serial port. In my application, my relays will switch in one OR the other.
So my confusion is that the differentiator with acting pull up has a pull up value that is being charged through the .1 cap. Why is this the 4.7K resistor needed in the serial port if there is already an internal to do the job?
It is meant to pull down the XMIT signal into the negative region to please some PCs. You can leave it out if you want.
When I said "marginally" I was thinking of that it will NOT be an good idea to have the cap open in the air when there is no PC connected.
The 4k7 will also reduce sporadious resets from loaded fingertips...
The datasheet description for BOEn describes Reset in the terms deSilva says here. Given a board ( without programming interface connected ) with Reset being a push button to Vss is usually enough to suggest the line is active-low, multi-drop wired-or / open collector compatible.
But I know now how to handle it, I'll most likely be building it this weekend. Thanks all for responding.
If Reset is an output and it can be externally shorted to Vss to cause a Reset I don't see how it could be considered to be anything other then used with open-collectors. Maybe I'm just too familiar with micros which have open-collector reset systems.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
JMH