This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

code 3-8 decoder

I have to build code for a 3-8 decoder anyone have basic structure?

Parents
  • #include <whatever processor-specific-header-you-need.h>
    
    void do_stuff(void) {
    }
    
    int main(void) {
        for (;;) {
            do_stuff();
        }
    }
    

    So - what problems do you actually see implementing a 3-to-8 decoder? You have looked at datasheets for one, so you understand how it works? And you have checked how to read pin state information and how to set pin state information? At least looked at all the available sample code? Checked what application notes a number of application engineers have spent time to write, to help people get going with their processors?

Reply
  • #include <whatever processor-specific-header-you-need.h>
    
    void do_stuff(void) {
    }
    
    int main(void) {
        for (;;) {
            do_stuff();
        }
    }
    

    So - what problems do you actually see implementing a 3-to-8 decoder? You have looked at datasheets for one, so you understand how it works? And you have checked how to read pin state information and how to set pin state information? At least looked at all the available sample code? Checked what application notes a number of application engineers have spent time to write, to help people get going with their processors?

Children