If you're stuck with those drivers, what if the PIC controls power to the drivers? Do they take time to "boot up"?
Robert
If you're stuck with those drivers, what if the PIC controls power to the drivers? Do they take time to "boot up"?
Robert
Robert,
The chips are tranceivers...if you power them down they won't be able to receive either.
The PIC will never get any queries to send any data because the receiver is powered down, you might as well throw out the tranceiver all together... ;-)
Chris,
Can't say why it appears to work in some situations. Perhaps one driver is slightly "stronger" than the other (don't think so though).
/Henrik.
Hey guys,
I actually did give the power down thing a thought for a moment, but as Henrik pointed out...1 step forward, two steps back
No problem on the mysterious 887 board operation, as I'm reworking the boards now. I do, however, have one more quick question for ya Henrik... I should be ok to still run the MAX3081 on the 232 to 422 master board, correct? My thought is, I shouldn't need to (or wouldn't want to) enable or disable the Rx and Tx lines at the master... Is my thinking correct on that one?
BTW: The new boards will have the MAX3086 on 'em, of course with the sacrifice of my heartbeat led outputOh well, small price to pay.
Thanks again guys,
Chris
Hi Chris,
Lets stop and think about that for a minute....I should be ok to still run the MAX3081 on the 232 to 422 master board, correct?
Finished thinking?
If ANY one of the drivers on the bus (doesn't matter which one) is enabled it will "occupy" the bus. There can only be ONE enabled driver on the bus at any given time or they will end up fighting each other.
All receivers on all devices shouls be enabled at all times. The transmitter on each device should be enabled when, and only when, that specific device is about to put data onto the bus. If two or more transmitters are enabled at the same time there will be conflicts.
/Henrik.
EDIT: OK, hold on, brainfart on my behalf here. You're running full duplex so please disregard the above. Yes, you can keep the transmitter on the RS232<->RS422 converter enabled all the time. Doh.....
Last edited by HenrikOlsson; - 13th October 2013 at 09:22.
Cool Henrik,
I have to say that your brainfart wasn't near as big as mine! Doh, I designed, built and stuffed the boards with those 3081'sOh well, ya gotta crack a few eggs to make an omelet right... I'll check back with progress when I get the new boards whipped up.
Thanks a ton,
Chris
Have you read this?
http://www.picbasic.co.uk/forum/showthread.php?t=17282
I was able to have a master PIC talk to multiple slave PICs at 115200. The trick is to have slaves enable usart transmit only when spoken to by the master.
I assigned each slave an ID (used in the data stream). The master would wait for a reply when necessary or keep on working.
A calling-all-slaves ID can be used to have them all do something, but they can't reply.
So no need for any comm IC, just straight PIC to PIC connections.
Robert
Hey Robert,
I actually did try that trick in my posted code above, but I just revisited it just to make sure and bummer...no loveIf you can take a glance at my code above and double check the technique I used, that would be awesome. Heck, maybe I'm not using it correctly?
Thanks again,
Chris
Bookmarks