| поискавой системы для электроныых деталей |
|
M16C/1N датащи(PDF) 93 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
M16C/1N датащи(HTML) 93 Page - Renesas Technology Corp |
|
93 / 238 page ![]() Rev.1.00 Oct 20, 2004 page 81 of 222 M16C/1N Group 12. Timers REJ09B0007-0100Z Figure 12.12 Operation example in pulse width measurement mode Count start flag "1" Measurement pulse (CNTR0 pin input) "0" "1" "0" Cleared to "0" when interrupt request is accepted, or cleared by software Conditions: A period from one rising edge to the next rising edge of measurement pulse is measured. (R0EDG=0) Cleared to "0" when interrupt request is accepted, or cleared by software Timer X=0F16 fPX Timer X contents 0F16 0D16 0F16 0E16 0D16 0C16 0B16 0916 0F16 0E16 0116 0016 0F16 0E16 Contents of read purpose buffer (Note 1) XX16 0B16 0916 Timer X reloads Timer X reloads Timer X reloads 0D16 0116 0F16 0E16 Timer X Read by software (Note 3) Effectual edge reception flag "1" "0" (Note 2) (Note 2) Cleared to "0" by software (Note 4) Timer X underflow flag "1" "0" Cleared to "0" by software (Note 5) (Note 6) Timer X interrupt request bit "1" "0" CNTR0 interrupt request bit "1" "0" 0A16 0A16 0016 0E16 Hold Note 1: If timer X is read out in pulse period measurement mode, the contents of the read purpose buffer can be read. Note 2: After an active edge of measurement pulse is input, effectual edge reception flag (TXEDG) is set to "1" when the prescaler X underflows for the second time. Note 3: The timer X should be read out before the next active edge is input after TXEDG is set to "1". If the timer X is not read before the next active edge is input, the value in the read purpose buffer remains unchanged and therefore is not updated on an active edge. Note 4: When set to "0" by software, use a MOV instruction to write "0" to the bit 6 (TXEDG) in the timer X mode register (008B16). At the same time, write "1" to the bit 7 (TXUND). Note 5: When set to "0" by software, use a MOV instruction to write "0" to the bit 7 (TXUND) in the timer X more register (008B16). At the same time, write "1" to the bit 6 (TXEDG). Note 6: If the timer X underflow flag (TXUND) and TXEDG are both set to "1". In this case, the validity of TXUND should be judged by the contents of the read purpose buffer. Note 7: When setting the timer X count start flag to "1", the timer X interrupt request bit and the effectual edge reception flag may become "1". Thus, the timer X interrupt must be enabled after setting the timer X count flag to "1" and clearing the timer X interrupt request bit and the effectual edge reception flag to "0" with inhibiting the timer X interrupt. Set to "1" by software (Note 7) Count start Timer X Dummy read (Note 3) |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |