12.07.2015 Views

MPLAB® C18 C 编译器函数库

MPLAB® C18 C 编译器函数库

MPLAB® C18 C 编译器函数库

SHOW MORE
SHOW LESS
  • No tags were found...

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

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

MPLAB ® <strong>C18</strong> C 编 译 器 函 数 库WriteTimer0WriteTimer1WriteTimer2WriteTimer3WriteTimer4功 能 : 向 指 定 的 定 时 器 写 入 一 个 值 。包 含 头 文 件 : timers.h原 型 : void WriteTimer0( unsigned int timer );void WriteTimer1( unsigned int timer );void WriteTimer2( unsigned char timer );void WriteTimer3( unsigned int timer );void WriteTimer4( unsigned char timer );参 数 :timer将 加 载 到 指 定 定 时 器 的 值 。说 明 : 这 些 函 数 将 值 写 入 到 相 应 的 定 时 器 寄 存 器 :Timer0: TMR0L,TMR0HTimer1: TMR1L,TMR1HTimer2: TMR2Timer3: TMR3L,TMR3HTimer4: TMR4文 件 名 :t0read.ct1read.ct2read.ct3read.ct4read.c代 码 示 例 : WriteTimer0( 10000 );DS51297C_CN 第 54 页© 2004 Microchip Technology Inc.

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

Saved successfully!

Ooh no, something went wrong!