công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

MC9S08SH4MPJR bảng dữ liệu(PDF) 200 Page - Freescale Semiconductor, Inc

tên linh kiện MC9S08SH4MPJR
Giải thích chi tiết về linh kiện  Microcontrollers
PDF  338 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  FREESCALE [Freescale Semiconductor, Inc]
Trang chủ  http://www.freescale.com
Logo FREESCALE - Freescale Semiconductor, Inc

MC9S08SH4MPJR bảng dữ liệu(HTML) 200 Page - Freescale Semiconductor, Inc

Back Button MC9S08SH4MPJR Datasheet HTML 196Page - Freescale Semiconductor, Inc MC9S08SH4MPJR Datasheet HTML 197Page - Freescale Semiconductor, Inc MC9S08SH4MPJR Datasheet HTML 198Page - Freescale Semiconductor, Inc MC9S08SH4MPJR Datasheet HTML 199Page - Freescale Semiconductor, Inc MC9S08SH4MPJR Datasheet HTML 200Page - Freescale Semiconductor, Inc MC9S08SH4MPJR Datasheet HTML 201Page - Freescale Semiconductor, Inc MC9S08SH4MPJR Datasheet HTML 202Page - Freescale Semiconductor, Inc MC9S08SH4MPJR Datasheet HTML 203Page - Freescale Semiconductor, Inc MC9S08SH4MPJR Datasheet HTML 204Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 200 / 338 page
background image
Chapter 13 Real-Time Counter (S08RTCV1)
MC9S08SH8 MCU Series Data Sheet, Rev. 3
200
Freescale Semiconductor
Figure 13-6. RTC Counter Overflow Example
In the example of Figure 13-6, the selected clock source is the 1-kHz internal oscillator clock source. The
prescaler (RTCPS) is set to 0xA or divide-by-4. The modulo value in the RTCMOD register is set to 0x55.
When the counter, RTCCNT, reaches the modulo value of 0x55, the counter overflows to 0x00 and
continues counting. The real-time interrupt flag, RTIF, sets when the counter value changes from 0x55 to
0x00. A real-time interrupt is generated when RTIF is set, if RTIE is set.
13.5
Initialization/Application Information
This section provides example code to give some basic direction to a user on how to initialize and configure
the RTC module. The example software is implemented in C language.
The example below shows how to implement time of day with the RTC using the 1-kHz clock source to
achieve the lowest possible power consumption. Because the 1-kHz clock source is not as accurate as a
crystal, software can be added for any adjustments. For accuracy without adjustments at the expense of
additional power consumption, the external clock (ERCLK) or the internal clock (IRCLK) can be selected
with appropriate prescaler and modulo values.
/* Initialize the elapsed time counters */
Seconds = 0;
Minutes = 0;
Hours = 0;
Days=0;
/* Configure RTC to interrupt every 1 second from 1-kHz clock source */
RTCMOD.byte = 0x00;
RTCSC.byte = 0x1F;
/**********************************************************************
Function Name : RTC_ISR
Notes : Interrupt service routine for RTC module.
**********************************************************************/
0x55
0x55
0x54
0x53
0x52
0x00
0x01
RTCMOD
RTIF
RTCCNT
RTC Clock
(RTCPS = 0xA)
Internal 1-kHz
Clock Source



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


bảng dữ liệu tải về

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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