This
older thread? The one where after 10 messages you finally explained your project on
msg #11...
Context is important, for actually understanding your questions. You're not doing yourself any favors by starting a new thread.
But to quickly answer, your best (not easiest, but best) path is to re-wire your project so the 8 data pin are all on the same native port, or at least one pins from 2 ports instead of scatted across 3 of them. From the wording of your question, and understanding from the old thread that you're trying to emulate a 8 bit bus device for retro computing, it really sounds like you do understand rearranging your hardware is the way to go, but you're trying to talk yourself out of needing to do that?
Yes, that older thread. I didn't really want to bother people with my learning, but by about the 10th message in, I realized I was going to need more help than I thought, since I didn't really understand what I was seeing. I started the new thread because the old thread really no longer had anything to do with what I was originally asking about. I thought about breaking the original thread right when I changed topics (as you say, 11 messages in), but by the time I realized I should have done that, it was a bit late.
As far as rearranging my pins (maybe using pins 38,37,36,35,12,11,10,9, which would all be port C), I *could* do that, but that means another two week turn around to the PCB fab, and since I really have no *assurance* that that's going to work, I'm trying to figure out if there's a way to get the existing PCB to work using software changes alone. It's very *close* to working, with apparently only one strange behavior left now, which seems to be some strange artifact related to behavior of reading the bus the very first time.
If I'm going to redo the PCB, I probably will just add an octal latch, and then have the Teensy work with the latch instead of trying to read off the bus directly, which would recreate what I *thought* the Z80 did when WAIT* was asserted... but honestly it would be nice not to have to make another trip back through the fabbing process, at least not until I get a prototype working.
I guess what you're saying is that nobody is probably going to be very willing to help me until I simplify the problem perhaps.