On Sun, 23 Aug 2015 16:51:01 -0700 (PDT), you wrote: >hi guys i am wanting to build a new type of metal detector which in it >self is quite complex task starting with little bits c/c++ code and tying >to keep it simple i need to wirite 7 values of either on or off to 1 gpio >but infact need to a total of 7 gpio's all as one cycle so i have set >patern of on or off values across the 7 gpios after that patern is >executed is anthoner fixed pattern is done 7 times which the whole thing >keeps repeating the pattern below shows the state of the switches s57-s64 >the gpio's need to be turn on in that order to turn the transistors on if >some could hep i would be greatful
*if* you can write these 8 values as a single byte then it's just a lookup table with an index. That should get the entire 8 bits change at one time. This can happen in some processors, and not in others. I don't know this particular processor at all, so I can't say that this is possible. it's a possibility, but you need to look at the processor documentation to see if it can be done. Again, I do *not* know this processor at all, but it can be done in other processors depending on how the I/O ports are mapped. Your best bet is to look at the documentation on the GPIO pins and how they can be changed. Harvey > > >S57 S58 S59 S60 S61 S62 S63 S64 onoffoffonn/aonn/aoff > > >onoffoffonn/aoffn/aon >offononoffonn/aoffn/a? > > > > > > > > >offononoffoffn/aonn/a > > > > > > > > >offoffononononoffoff >offoffonononoffoffon >offoffononoffononoff+ -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
