Page 1 of 1

MOD54415 data bus addressing

Posted: Tue Sep 03, 2013 8:59 am
by jediengineer
Hi all,

Does anyone have any info on how to program the databus addressing pins (J1-32 to J1-47)? I'm attempting to connect a 32:1 mux and wanted to use 5 address bits rather than using gpio. I didn't see any sample programs though - at least none that I recognized. If anyone could help, that would be appreciated. Also, if this is a bad idea, just tell me. Thanks!

Re: MOD54415 data bus addressing

Posted: Tue Sep 03, 2013 9:49 am
by dciliske
Long story short, unless you need extremely low latency access to the MUX, this is going to be way more effort than it's worth. The reason there's no example program for this is because every instance where you'd really want to use the Flexbus is going to require lots of mucking around with the various parameters of the FlexBus module, and their all pretty much unique.

Just write a function that will deassert the enable/clock line for the MUX, decode the MUX selection into GPIO drive requests, and reassert the enable/send the clock strobe. This will be much easier.

If you still feel like doing this, you'll need to read up on chapter 20 of the reference manual.

-Dan

Re: MOD54415 data bus addressing

Posted: Tue Sep 03, 2013 10:38 am
by jediengineer
Eh, I was afraid of that... Thanks Dan!