| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
SH7708 bảng dữ liệu(PDF) 353 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
SH7708 bảng dữ liệu(HTML) 353 Page - Renesas Technology Corp |
|
353 / 633 page ![]() 335 12.3.3 Reading the Time Figure 12.3 shows how to read the time. If a carry occurs while reading the time, the correct time will not be obtained, so it must be read again. Part (a) in figure 12.3 shows the method of reading the time without using interrupts; part (b) in figure 12.3 shows the method using carry interrupts. To keep programming simple, method (a) should normally be used. Write 0 to CF in RCR1 Note: Set AF to 1 so that alarm flag is not cleared. Write 0 to CIE in RCR1 Read RCR1 and check CF Write 0 to CIE in RCR1 Carry flag = 1? No Yes Clear the carry flag Disable the carry interrupt Read counter register Write 1 to CIE in RCR1, and write 0 to CF in RCR1 Note: Set AF in RCR1 to 1 so that alarm flag is not cleared. Interrupt generated? No Yes Enable the carry interrupt Clear the carry flag Disable the carry interrupt Read counter register To read the time without using interrupts b. To use interrupts a. Figure 12.3 Reading the Time |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |