| Electronic Components Datasheet Search |
|
UPD17015GS Datasheet(PDF) 44 Page - NEC |
|
|
|||||||||||||||||||||||||||||
UPD17015GS Datasheet(HTML) 44 Page - NEC |
|
44 / 120 page ![]() 44 µPD17015 10.2.3 Example of Using Basic Timer 0 A sample program follows. The following program performs process A at every one second. Example M1 MEM 0.10H ; 1 second counter LOOP: SKT1 BTM0CY ; Branches to NEXT if BTM0CY is 0. BR NEXT ADD M1, #0100B ; Adds 4 to M1. SKT1 CY ; Branches to NEXT if CY flag is 0. BR NEXT ; Performs process A if CY flag is 1. Process A NEXT: Process B ; Performs B and branches to LOOP. BR LOOP 10.2.4 Time Interval Error in Basic Timers 0 and 1 The time interval at which the BTM0CY and BTM1CY flags are detected must be shorter than the time interval at which the BTM0CY and BTM1CY flags are set. (See Section 10.2.5.) Assuming that the BTM0CY or BTM1CY flag is detected at intervals of tCHECK and set at intervals of tSET (125 or 5 ms, respectively), the relationship between tCHECK and tSET must be as follows: tCHECK < tSET Under this condition, the time interval error encountered when the BTM0CY and BTM1CY flags are detected is as follows: 0 < error < tSET Fig. 10-4 Basic Timers 0 and 1 Error Related to the Detection Time of the BTM0CY and BTM1CY Flags tSET tCHECK1 tCHECK2 tCHECK3 SKT1 BTM0CY or SKT1 BTM1CY SKT1 BTM0CY or SKT1 BTM1CY SKT1 BTM0CY or SKT1 BTM1CY SKT1 BTM0CY or SKT1 BTM1CY BTM1CY flag set pulse BTM0CY flag set pulse BTM1CY flag BTM0CY flag H L 1 0 1 2 3 4 |
|
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 |