Hi everybody. I have a course project about the embedded systems and I must write an assembly program but I don't know very much about assembly :( Can you help me please?..


Problem S3.9
find a method to measure the input voltage uIN (0 to 5 V) by generating a sequence of output voltages uOUT and comparison (figure 3.25). The digital-to-analog converter (DAC) is capable of emitting voltages within the range 0 to 5 V. The comparator's digital output indicates which input voltage is higher. Write the correspondent assembly language program for the method you suggest. Assume that the DAC and the comparator are fast enough and only the microcontroller's execution time defines the rate.


free image hosting
Posted on 2011-09-20 17:43:34 by dream_bg

Normally I would scold a newbie for asking for code but you seem to be coming from a hardware, rather than a software, position so I feel for you.  If you know how to program in C then I suggest you start writing up the algorithm first ( even if it's pseudo-C ) and we'll go from there.
Posted on 2011-09-20 19:18:55 by p1ranha