18.08.2013 Views

cache

cache

cache

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.

การคํานวนคาอุณหภูมิจาก Parameter.AdcBuffer[] และการคําวนวนหาคาควบคุมจะ<br />

กระทําใน Main Program ของ MCU เนื่องจากการเปนการทํางานที่ใช<br />

Cycle ของ MCU เปนจํานวน<br />

มาก แตมีคาบในการคํานวนแตและครั้งยาวนานคือ<br />

มีการคํานวนคาอุณหภูมิใหมทุกๆ 1 วินาที และ<br />

มีการคํานวนคาควบใหมทุกๆ 5 วินาที ภาพที่<br />

50 แสดงการทํางานของโปรแกรมใช Main Program<br />

ของ MCU ภายใน Function OperateFunc(); จะทําการอานคา Adc จากตัวแปรParameter.Adcbuff[]<br />

ของAdc แตละชองมาทําการคํานวหาคาอุณหภูมิ<br />

52

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

Saved successfully!

Ooh no, something went wrong!