18.08.2013 Views

cache

cache

cache

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

10.3 การนับเวลาสําหรับการทํางานของโปรแกรมอื่นและ<br />

การจัดการกับขอมูลสื่อสาร<br />

และรับคา key Pad การทํางานใช Interrupt Service ของ 16 bit Timer 3 Module โดยงานที่ทําใน<br />

Interrupt Service จะประกอบดวย การนับเวลา, การอาน Key Pad และการจัดการสื่อสาร<br />

โดยที่การ<br />

นับเวลาจะกระทําใน function Rtc_Module(); การทํางานใน function นี้จะเปนการตรวจสอบตัว<br />

แปร Rtcpara.secupdate วามีคาเปน 1 หรือไมโดยเมื่อมีคาเปน<br />

1 ใหทําการเพิ่มคาตัวแปรตางดัง<br />

แสดงในภาพที่<br />

42<br />

ภาพที่<br />

42 แสดงการทํางานของ function Rtc_Module();<br />

45

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

Saved successfully!

Ooh no, something went wrong!