novski Posted February 28, 2013 Report Share Posted February 28, 2013 Is there a possibility to let the DIN and/or the DOUT react inverse? Background: Usual DOUT LED is lit by switching HIGH on the Output O0-7 of the HC595 Shiftregister. I wold need a possibility to switch to LOW so i can inverse the Polarity and Connect the Cathode towards the Shiftregister and the Anode to the 5V supply. And the same for DIN. Connecting the Resistor Network to GND and switching the Supply "VD" towards the Inputs I0-7 of the HC165 Shiftregister wold inverse the reaction. So it wold be nice to have a possibility to inverse the reactions in Software... is that possible in some way? Thanks novski Quote Link to comment Share on other sites More sharing options...
ilmenator Posted February 28, 2013 Report Share Posted February 28, 2013 For the buttons you could modify the standard hook to only check for releases and skip the button presses. Instead of this void APP_DIN_NotifyToggle(u32 pin, u32 pin_value) { // only check for button presses and skip releases if (pin_value == 0x01) return; switch (pin) { .... you would then write something like void APP_DIN_NotifyToggle(u32 pin, u32 pin_value) { // only check for releases and skip button presses if (pin_value == 0x00) return; switch (pin) { .... The same could probably be done for the LEDs, just set the DOUT state to be 1 for all outputs, e.g. during the init phase, and then switch to 0 individually if needed. Quote Link to comment Share on other sites More sharing options...
novski Posted February 28, 2013 Author Report Share Posted February 28, 2013 AH. OK. Thanks Ilmenator. I hoped it wold give a easy MIOS File browser way.. But i will set up the toolchain and try that. (i recently had to change my Mac and since that wonderful NG with Filebrowser is working so fine i didn't needed it until now..) :phone: Quote Link to comment Share on other sites More sharing options...
novski Posted February 28, 2013 Author Report Share Posted February 28, 2013 I just thought about the ability to stay in the usual NG app system and to stay easy upgradeable.. It wold be nice if there wold be a way to change the Hardware instead of the Software... Is a shift register always the same or is there a possibility to find a register that works inverse? Quote Link to comment Share on other sites More sharing options...
ilmenator Posted February 28, 2013 Report Share Posted February 28, 2013 Well then simply add a 74HC04 8bit inverter, one for each DOUT block of eight. The same could be done with the DINs. Quote Link to comment Share on other sites More sharing options...
novski Posted February 28, 2013 Author Report Share Posted February 28, 2013 well, isn't out there in the world of components a shift-register with integrated 74HC04??? :D Quote Link to comment Share on other sites More sharing options...
ilmenator Posted February 28, 2013 Report Share Posted February 28, 2013 Do the search, Luke! Quote Link to comment Share on other sites More sharing options...
novski Posted February 28, 2013 Author Report Share Posted February 28, 2013 :yes: Quote Link to comment Share on other sites More sharing options...
kpete Posted February 28, 2013 Report Share Posted February 28, 2013 Since you are driving LED's, and if you are using the Dout board from SmashTV, you can just remove the resistor networks and insert the uln2803 darlington driver chip. It will invert the signal for you. This link show how to insert the new IC's. http://mbhp.avishowtech.com/mbhp_doutR5.html You will have to put external resistors in series with the LED's. As far as inverting the inputs, maybe TK already has a solution for you. I don't know for sure but I believe I saw this added to Midio128 about a few months ago. Another hardware solution might be to just insert 1 inverter in series with each SO and SI serial data lines going to/from your core processor. I would vote for the software solution but thats because software doesn't intimidate me. Pete Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.