30.10.2014 Views

o_195h4n6al16jb186b1b2qs7fgssa.pdf

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

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

3.7.1 Individual Functions<br />

CloseTimer1<br />

CloseTimer2<br />

CloseTimer3<br />

CloseTimer4<br />

CloseTimer5<br />

Description: This function turns off the 16-bit timer module.<br />

Include: timer.h<br />

Prototype: void CloseTimer1(void);<br />

void CloseTimer2(void);<br />

void CloseTimer3(void);<br />

void CloseTimer4(void);<br />

void CloseTimer5(void);<br />

Arguments: None<br />

Return Value: None<br />

Remarks: This function first disables the 16-bit timer interrupt and then turns<br />

off<br />

the timer module. The Interrupt Flag bit (TxIF) is also cleared.<br />

Source File: CloseTimer1.c<br />

CloseTimer2.c<br />

CloseTimer3.c<br />

CloseTimer4.c<br />

CloseTimer5.c<br />

Code Example: CloseTimer1();<br />

CloseTimer23<br />

CloseTimer45<br />

Description: This function turns off the 32-bit timer module.<br />

Include: timer.h<br />

Prototype: void CloseTimer23 (void)<br />

void CloseTimer45 (void)<br />

Arguments: None<br />

Return Value: None<br />

Remarks: This function disables the 32-bit timer interrupt and then turns off the<br />

timer module.The Interrupt Flagbit (TxIF) is also cleared.<br />

CloseTimer23turns off Timer2 and disables Timer3 Interrupt.<br />

CloseTimer45turns off Timer4 and disables Timer5 Interrupt.<br />

Source File: CloseTimer23.c<br />

CloseTimer45.c<br />

Code Example: CloseTimer23();<br />

ConfigIntTimer45<br />

Mô tả: Chức năng này cấu hình 32-bit giờ gián đoạn.<br />

Bao gồm: timer.h<br />

Prototype: void ConfigIntTimer23 (int config);<br />

làm mất hiệu lực ConfigIntTimer45 (int config);<br />

Lập luận: config Thơi gian gián đoạn ưu tiên và bật / tắt thông tin<br />

quy định dưới đây:<br />

Tx_INT_PRIOR_7<br />

Tx_INT_PRIOR_6<br />

Tx_INT_PRIOR_5<br />

Tx_INT_PRIOR_4<br />

Tx_INT_PRIOR_3<br />

Tx_INT_PRIOR_2<br />

Tx_INT_PRIOR_1<br />

Tx_INT_PRIOR_0<br />

Tx_INT_ON<br />

Tx_INT_OFF<br />

Trở lại giá trị: Không<br />

Bình luận: Chức năng này sẽ xóa sạch các 32-bit Cờ ngắt (TXIF) bit và sau đó<br />

đặt<br />

gián đoạn ưu tiên và cho phép / vô hiệu hóa ngắt.<br />

Source File: ConfigIntTimer23.c<br />

ConfigIntTimer45.c<br />

Mã số Ví dụ: ConfigIntTimer23 (T3_INT_PRIOR_5 & T3_INT_ON);<br />

OpenTimer1<br />

OpenTimer2<br />

OpenTimer3<br />

OpenTimer4<br />

OpenTimer5<br />

Mô tả: Chức năng này cấu hình các mô-đun bộ đếm thời gian 16-bit.<br />

Bao gồm: timer.h<br />

Prototype: void OpenTimer1 (int config,<br />

unsigned int thời gian)<br />

làm mất hiệu lực OpenTimer2 (unsigned int config,<br />

unsigned int thời gian)<br />

làm mất hiệu lực OpenTimer3 (unsigned int config,<br />

unsigned int thời gian)<br />

làm mất hiệu lực OpenTimer4 (unsigned int config,<br />

unsigned int thời gian)<br />

làm mất hiệu lực OpenTimer5 (unsigned int config,

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

Saved successfully!

Ooh no, something went wrong!