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

imporatant

Please guide me.... I done small project bt not work properly....
project- i wanna 1 square wave having count 0 to 12000 which depend on external ADC and 5K Resistor pot.according vary the 5k pot then change the count pulse like pot is min position then count is 0 and pot is max positionin count is vary......

I do hardware but how to write code.....

Parents
  • I hardly ever write code by opening an editor and entering my statements. Starting from a blank slate is inefficient at best.

    Instead, I search for example code that does some basic thing, even a "hello world" example from an IDE evaluation kit is good because the project already compiles, links, loads onto a known-good target and runs.

    I wouldn't recommend starting to write software for your prototype hardware; start with an evaluation kit's simple example program, then get known good software to run on your as-yet-unproven prototype hardware. Modify the code to blink an LED as a good starting point - you did put an LED / resistor on one of the port pins of your prototype, right?

Reply
  • I hardly ever write code by opening an editor and entering my statements. Starting from a blank slate is inefficient at best.

    Instead, I search for example code that does some basic thing, even a "hello world" example from an IDE evaluation kit is good because the project already compiles, links, loads onto a known-good target and runs.

    I wouldn't recommend starting to write software for your prototype hardware; start with an evaluation kit's simple example program, then get known good software to run on your as-yet-unproven prototype hardware. Modify the code to blink an LED as a good starting point - you did put an LED / resistor on one of the port pins of your prototype, right?

Children
No data