10.07.2015 Views

CHAPTER 3 METHODOLOGY 3.1 Overview The Water Monitoring ...

CHAPTER 3 METHODOLOGY 3.1 Overview The Water Monitoring ...

CHAPTER 3 METHODOLOGY 3.1 Overview The Water Monitoring ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix B: Assembly Language Program for <strong>Water</strong> <strong>Monitoring</strong> Systemcpu "8051.tbl"incl "8051.inc"org 0mov tmod, #00100001Bmov scon,#01010010Bmov th1,#253setb tr1clr p2.1;outputstart:call delaysetb p2.0nopclr p2.0nopnopnopsetb p2.0; setting star conversion from ADCjb p3.2,$mov a,p1; get data from ADCcjne a,#19h,xsame19jmp cm25; compare data from ADC with 19H44

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!