參數(shù)資料
型號: M38837G6HP
元件分類: 微控制器/微處理器
英文描述: 8-BIT, MROM, 4 MHz, MICROCONTROLLER, PQFP80
封裝: 12 X 12 MM, 0.50 MM PITCH, PLASTIC, LQFP-80
文件頁數(shù): 64/81頁
文件大?。?/td> 766K
代理商: M38837G6HP
Rev.1.00
Oct 26, 2004
page 67 of 79
3883 Group
NOTES ON PROGRAMMING
Processor Status Register
The contents of the processor status register (PS) after a reset are
undefined, except for the interrupt disable flag (I) which is “1”. Af-
ter a reset, initialize flags which affect program execution. In
particular, it is essential to initialize the index X mode (T) and the
decimal mode (D) flags because of their effect on calculations.
Interrupts
The contents of the interrupt request bits do not change immedi-
ately after they have been written. After writing to an interrupt
request register, execute at least one instruction before perform-
ing a BBC or BBS instruction.
Decimal Calculations
To calculate in decimal notation, set the decimal mode flag (D)
to “1”, then execute an ADC or SBC instruction. After executing
an ADC or SBC instruction, execute at least one instruction be-
fore executing a SEC, CLC, or CLD instruction.
In decimal mode, the values of the negative (N), overflow (V),
and zero (Z) flags are invalid.
Timers
If a value n (between 0 and 255) is written to a timer latch, the fre-
quency division ratio is 1/(n+1).
Multiplication and Division Instructions
The index X mode (T) and the decimal mode (D) flags do not af-
fect the MUL and DIV instruction.
The execution of these instructions does not change the con-
tents of the processor status register.
Ports
The contents of the port direction registers cannot be read. The
following cannot be used:
The data transfer instruction (LDA, etc.)
The operation instruction when the index X mode flag (T) is “1”
The instruction with the addressing mode which uses the value
of a direction register as an index
The bit-test instruction (BBC or BBS, etc.) to a direction register
The read-modify-write instructions (ROR, CLB, or SEB, etc.) to
a direction register.
Use instructions such as LDM and STA, etc., to set the port direc-
tion registers.
PWMs
The PWM starts from "H" level after the PWM enable bit is set to
enable and "L"level is temporarily output from the PWM pin.
The length of this "L"level output is as follows:
A/D Converter
The comparator uses capacitive coupling amplifier whose charge
will be lost if the clock frequency is too low.
Therefore, make sure that f(XIN) is at least on 500 kHz during an
A/D conversion.
Do not execute the STP or WIT instruction during an A/D conver-
sion.
Instruction Execution Time
The instruction execution time is obtained by multiplying the pe-
riod of the internal clock
φ by the number of cycles needed to
execute an instruction.
The number of cycles required to execute an instruction is shown
in the list of machine instructions.
The period of the internal clock
φ is twice of the XIN period in high-
speed mode.
n+1
f(XIN)
(s) (Count source selection bit ="0", where n is the value set in the prescaler)
2(n+1)
f(XIN)
(s) (Count source selection bit ="1", where n is the value set in the prescaler)
相關(guān)PDF資料
PDF描述
M38B49MFH-XXXXFP 8-BIT, MROM, 4.2 MHz, MICROCONTROLLER, PQFP80
M38B49MFH-XXXXFP 8-BIT, MROM, 4.2 MHz, MICROCONTROLLER, PQFP80
M38B57MC-XXXFP 8-BIT, MROM, 4.19 MHz, MICROCONTROLLER, PQFP80
M38B59MFH-XXXXFP 8-BIT, MROM, MICROCONTROLLER, PQFP80
M38B57MCH-XXXXFP 8-BIT, MROM, MICROCONTROLLER, PQFP80
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
M3883-BK001 制造商:Alpha Wire 功能描述:
M3883-BK002 制造商:Alpha Wire 功能描述:
M3883-BK005 制造商:Alpha Wire 功能描述:
M3883-BK199 制造商:Alpha Wire 功能描述:
M3883-BLACK-100 制造商:Alpha Wire 功能描述: