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.

3.3 Programming.Programming is the main key to controlling the all process in system design. Inorder to processing data from ADC, display the result obtained by the hardware andcontrols the signal flow of the system. Two different programs were used, which isassembly language as machine programming and Visual Basic programming as interfacesoftware. Each program operates separately, but they interact with each other through theRS232 communication port.3.<strong>3.1</strong> Assembly Language Programming<strong>The</strong> 8052 assembler language is a set of mnemonics specific to the 8051 family ofmicrocontrollers. To be able to program in this language using the mnemonics requires athorough knowledge of the architecture of the 8051 series microcontroller beingprogrammed. <strong>The</strong> mnemonics basically provide the tools to allow moving the data aboutthe microcontroller and activating its ports.Figure <strong>3.1</strong>0 shows the flow chart of microcontroller 8051 programming which iscloser to the hardware, and it is responsible for acquiring signals that have been convertedinto digital signal from ADC and control the motor pump using the data from sensor.23

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

Saved successfully!

Ooh no, something went wrong!