參數(shù)資料
型號: MPC555
廠商: Motorola, Inc.
元件分類: 32位微控制器
英文描述: Highly Integrated, Low-Power, 32-Bit Microcontroller
中文描述: 高度集成,低功耗,32位微控制器
文件頁數(shù): 26/32頁
文件大小: 219K
代理商: MPC555
Application Note
AN1778
26
MOTOROLA
Load this line into the MDASM status/control register
(MDASMSCR):
write -w 0x30605E = 0x0002
Obtaining
Measurements
in the MDASM
Data Register
After capturing the data for one of the PWM channels, the value from the
register can be read and the period and frequency of the wave can be
calculated.
When the MDASM detects a rising edge, it will write the value of the
MMCSM counter to the DATA A register for the MDASM channel. Upon
detection of the next rising edge (one period later), the MDASM will
move the first counter value into DATA B register and write the new
value to register A. In
Setting Up the MDASM Bus Counter
, the
MMCSM was programmed to run at 10 MHz or to count at 100 ns
intervals. The subtraction of register B from register A will be the number
of MMCSM counts during one complete period of the input waveform.
Type this line into the SDS command window:
read -l 0x306058
Using the -l command ensures that the contents of the two MDASM data
registers are read at once so that nothing is miscounted due to the time
it takes to read the data out of memory on two successive reads.
SDS will return eight hexadecimal characters in one longword, using the
snapshot here:
SingleStep> read -l 0x306058
(0x306058)
00306058 ABCBABC9 00028002
.
.
.
.
.
.
.
.
.
NOTE:
The user’s values may be different from these, since these are values
read from a free-running counter.
The longword ABCBABC9 contains the contents of the two data
registers. DATA A contains ABCB, with ABC9 in DATA B. Subtracting
register B from register A (B – 9 in hex), the answer is 2. To calculate the
frequency, multiply by 100 ns and take the reciprocal to get 5 MHz.
相關(guān)PDF資料
PDF描述
MPC561 RISC MCU Including Peripheral Pin Multiplexing with Flash and Code Compression Options
MPC561MZP56 RISC MCU Including Peripheral Pin Multiplexing with Flash and Code Compression Options
MPC562 RISC MCU Including Peripheral Pin Multiplexing with Flash and Code Compression Options
MPC562MZP56 RISC MCU Including Peripheral Pin Multiplexing with Flash and Code Compression Options
MPC563 RISC MCU Including Peripheral Pin Multiplexing with Flash and Code Compression Options
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MPC5553 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:Microcontroller Data Sheet
MPC5553_07 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:Microcontroller Data Sheet
MPC5553AVF112 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:Microcontroller
MPC5553AVF112R2 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:Microcontroller
MPC5553AVF132 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:Microcontroller