參數(shù)資料
型號: MCHC908RK2CSDR2
廠商: FREESCALE SEMICONDUCTOR INC
元件分類: 微控制器/微處理器
英文描述: 8-BIT, FLASH, 4 MHz, MICROCONTROLLER, PDSO20
封裝: PLASTIC, SSOP-20
文件頁數(shù): 165/181頁
文件大?。?/td> 2384K
代理商: MCHC908RK2CSDR2
第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頁第101頁第102頁第103頁第104頁第105頁第106頁第107頁第108頁第109頁第110頁第111頁第112頁第113頁第114頁第115頁第116頁第117頁第118頁第119頁第120頁第121頁第122頁第123頁第124頁第125頁第126頁第127頁第128頁第129頁第130頁第131頁第132頁第133頁第134頁第135頁第136頁第137頁第138頁第139頁第140頁第141頁第142頁第143頁第144頁第145頁第146頁第147頁第148頁第149頁第150頁第151頁第152頁第153頁第154頁第155頁第156頁第157頁第158頁第159頁第160頁第161頁第162頁第163頁第164頁當前第165頁第166頁第167頁第168頁第169頁第170頁第171頁第172頁第173頁第174頁第175頁第176頁第177頁第178頁第179頁第180頁第181頁
Internal Clock Generator Module (ICG)
Data Sheet
MC68HC908RK2 — Rev. 5.0
84
Internal Clock Generator Module (ICG)
MOTOROLA
If the new clock period is not a binary multiple or fraction of the original, both DSTG
and DDIV may need to change according to these equations:
If DSTG2 is greater than 255:
The software required to do this is relatively simple, since most of the math can be
done before coding because the initial and final clock periods are known. An
example of how to code this in assembly code is shown in Figure 6-10. This
example is for illustrative purposes only and does not represent a valid syntax for
any particular assembler.
Figure 6-10. Code Example for Writing DDIV and DSTG
DVFACT
int
τ
2
τ
1
()
log
2
()
log
-----------------------------
=
DDIV2
DDIV1
DVFACT
+
=
DSFACT
τ
2
τ
1
()
2
DDIV2
DDIV1
()
----------------------------------------------------
=
DSTG2
DSFACT DSTG1
=
DDIV2
1
+
=
DSTG2
2
---------------------
=
;DDIV and DSTG modification code example
;Changes DDIV and DSTG according to the initial and
; desired clock period values
;Requires ICGON to be clear (disabled)
;User must previously calculate DVFACT and STFACT by
; the equations listed in the specification
;Modifies X and A registers
start
lda
icgcr
;Verify ICGON clear (this will require
cmp
#13
; CMIE,CMF,CMON,ICGON,ICGS clear and CS,ECGON,ECGS set)
lda
#dvfact ;Add the DDIV factor (calculated before
add
icgdvr
; coding by the DDIV2 equation)
sta
icgdvr
lda
#stfact ;Load the DSTG factor (calculated before coding and
; multiplied by 128 to make it 0-255 for maximum precision
ldx
icgdsr
;Load current stage register contents
mul
;Multiply factor times current value
rola
;Since factor was multiplied by 128,
rolx
; result is x6-x0:a7, so put it all in X
bcc
store
;If result is >255, rolx will set carry
rorx
; so divide result by two and
inc
; add one to DDIV
store
stx
icgdsr
;Store value
lda
icgdvr
;Test to see if DDIV too high or low
cmp
#09
;Valid range 0-9; too low is FF/FE; too high is 0A/0B
bhi
exit
;If DDIV is 0-9, you’re almost done
lda
#09
;Otherwise, maximize period and execute error code
sta
icgdvr
jmp
error
exit
jmp
enable
;Jump to code which turns on desired
;clock, clock monitor, interrupts, etc.
相關PDF資料
PDF描述
MCIMX31CJMN4D 32-BIT, 400 MHz, MICROPROCESSOR, PBGA473
MCIMX31LCVMN4D 32-BIT, 400 MHz, MICROPROCESSOR, PBGA473
MCIMX31CVMN4D 32-BIT, 400 MHz, MICROPROCESSOR, PBGA473
MCIMX31LCJMN4D 32-BIT, 400 MHz, MICROPROCESSOR, PBGA473
MCIMX31LVKN5C 532 MHz, MICROPROCESSOR, PBGA457
相關代理商/技術參數(shù)
參數(shù)描述
MCHC912B32CFUE8 功能描述:16位微控制器 - MCU 16BIT MCU W/32K FLSH RoHS:否 制造商:Texas Instruments 核心:RISC 處理器系列:MSP430FR572x 數(shù)據(jù)總線寬度:16 bit 最大時鐘頻率:24 MHz 程序存儲器大小:8 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:2 V to 3.6 V 工作溫度范圍:- 40 C to + 85 C 封裝 / 箱體:VQFN-40 安裝風格:SMD/SMT
MCHC912B32CFUE8 制造商:Freescale Semiconductor 功能描述:16-BIT MICROCONTROLLER IC
MCHC912B32MFUE8 功能描述:16位微控制器 - MCU 16B HCMOS MCU FLSH RoHS:否 制造商:Texas Instruments 核心:RISC 處理器系列:MSP430FR572x 數(shù)據(jù)總線寬度:16 bit 最大時鐘頻率:24 MHz 程序存儲器大小:8 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:2 V to 3.6 V 工作溫度范圍:- 40 C to + 85 C 封裝 / 箱體:VQFN-40 安裝風格:SMD/SMT
MCHC912B32VFUE8 功能描述:16位微控制器 - MCU 16B MCU W/32K FLSH RoHS:否 制造商:Texas Instruments 核心:RISC 處理器系列:MSP430FR572x 數(shù)據(jù)總線寬度:16 bit 最大時鐘頻率:24 MHz 程序存儲器大小:8 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:2 V to 3.6 V 工作溫度范圍:- 40 C to + 85 C 封裝 / 箱體:VQFN-40 安裝風格:SMD/SMT
MCHC912B32VFUE8 制造商:Freescale Semiconductor 功能描述:Microcontroller