| Electronic Components Datasheet Search |
|
D17133CS Datasheet(PDF) 142 Page - NEC |
|
|
|||||||||||||||||||||||||||||
D17133CS Datasheet(HTML) 142 Page - NEC |
|
142 / 289 page ![]() CHAPTER 13 PERIPHERAL HARDWARE 127 Figure 13-6. Reading 8-Bit Counter Count Values The timer counter value is F0H. GET DBF, TMC; Example of using reserved words DBF and TMC Data Buffer DBF3 Retained 8-bit data GET DBF, TMC b7 1 b5 1 b4 1 b3 0 b2 0 b1 0 b0 0 b6 1 b0 0 b1 0 b2 0 b3 0 b0 1 b1 1 b2 1 b3 1 b0 b1 b2 b3 b0 b1 b2 b3 DBF2 Retained DBF1 DBF0 TMC (Peripheral Address 02H) Count value (2) Program example • Measuring pulse width input from INT pin (system clock: fX=8 MHz) The following is an example of measuring generation interval of external interrupt from INT pin by using timer. At this time the pulse width from INT pin should be within the count-up time of timer. (Program example) CNTTMH MEM 0.30H ; Symbol definition of save area of count value CNTTML MEM 0.31H ; ORG 00H ; Specifies vector address of interrupt BR MAIN ; ORG 03H ; BR INTJOB ; : : : : INITIAL: INITFLG IP, NOT IPTM, NOT IPSIO ; Prohibits interrupts other than external interrupt |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |