參數(shù)資料
型號: MB89P195P-101
元件分類: 微控制器/微處理器
英文描述: 8-BIT, MROM, 4.2 MHz, MICROCONTROLLER, PDIP28
封裝: 0.600 INCH, 0.100 INCH PITCH, PLASTIC, DIP-28
文件頁數(shù): 54/256頁
文件大小: 1811K
代理商: MB89P195P-101
第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頁第182頁第183頁第184頁第185頁第186頁第187頁第188頁第189頁第190頁第191頁第192頁第193頁第194頁第195頁第196頁第197頁第198頁第199頁第200頁第201頁第202頁第203頁第204頁第205頁第206頁第207頁第208頁第209頁第210頁第211頁第212頁第213頁第214頁第215頁第216頁第217頁第218頁第219頁第220頁第221頁第222頁第223頁第224頁第225頁第226頁第227頁第228頁第229頁第230頁第231頁第232頁第233頁第234頁第235頁第236頁第237頁第238頁第239頁第240頁第241頁第242頁第243頁第244頁第245頁第246頁第247頁第248頁第249頁第250頁第251頁第252頁第253頁第254頁第255頁第256頁
MB89190/190A series
Chapter 7 8-/16-bit Timer/Counter
7-27
7.
12 ProgramExamplesfor8-/16-bitTimer/Counter
Examples of programs for the 8-/16-bit timer/counter are shown.
T Example program for interval timer function
Processing specification
– Only timer 1 is used in the 8-bit mode to generate a 20-ms interval timer interrupt repeatedly.
– A square wave that is reversed after the elapse of the interval timer is output to the TO pin.
– The T1DR register value that gives an interval time of 20 ms when the original oscillation (FC) is 4.2
MHz (1 instruction cycle = 4/FC) is shown below. The internal count clock 512 tINST is assumed to
be the count clock.
T1DR register value = 20 ms/(512
× 4/4.2 MHz) 1 = 40.0 (28
H)
Coding example
T2CR
EQU
0018
H
; Address of timer 2 control register
T1CR
EQU
0019
H
; Address of timer 1 control register
T2DR
EQU
001A
H
; Address of timer 2 data register
T1DR
EQU
001B
H
; Address of timer 1 data register
T1IF
EQU
T1CR:7
; Definition of timer 1 interrupt request flag bit
ILR1
EQU
007C
H
; Address of interrupt level setting register
INT_V
DSEG
ABS
ORG
FFF4
H
IRQ3
DW
WARI
; Interrupt vector setting
ENDS
;---------- Main program ---------------------------------------------------------------------
CSEG
;[CODE SEGMENT]
; Stack pointer (SP) assumed initialized
:
CLRI
; Interrupt disabled
MOV
ILR1, #10111111B
; Interrupt level set to 2
MOV
T2CR, #00000010B
; Timer 2 interrupt request flag cleared, interrupt request
output disabled, other than 16-bit mode set, operation
stopped
MOV
T1CR, #00011000B
; Timer 1 interrupt request flag cleared, square wave
initial value “L”, 512 t
INST
selected, operation stopped
MOV
T1DR, #28H
; Value (interval time) to be compared to counter value set
MOV
T1CR, #00111000B
; Output L level to square wave
output pin (TO)
MOV
T1CR, #11111001B
; Timer 1 interrupt request output enabled, counter cleared,
and timer started
SETI
; CPU interrupt enabled
:
;---------- Interrupt program ----------------------------------------------------------------
WARI
CLRB
T1IF
; Interrupt request flag cleared
PUSHW
A
XCHW
A,T
PUSHW
A
:
Processing by user
:
POPW
A
XCHW
A,T
POPW
A
RETI
ENDS
; --------------------------------------------------------------------------------------------
END
相關PDF資料
PDF描述
MB89P195APF-201 8-BIT, OTPROM, 4.2 MHz, MICROCONTROLLER, PDSO28
MB89P195AP-201 8-BIT, OTPROM, 4.2 MHz, MICROCONTROLLER, PDIP28
MB89P195PF-100 8-BIT, OTPROM, 4.2 MHz, MICROCONTROLLER, PDSO28
MB89P558A-201PFV 8-BIT, OTPROM, 12.5 MHz, MICROCONTROLLER, PQFP100
MB89P558A-201PFT 8-BIT, OTPROM, 12.5 MHz, MICROCONTROLLER, PQFP100
相關代理商/技術參數(shù)
參數(shù)描述
MB89P195PF-101 制造商:FUJITSU 制造商全稱:Fujitsu Component Limited. 功能描述:8-bit Proprietary Microcontroller
MB89P1A 制造商:FUJITSU 制造商全稱:Fujitsu Component Limited. 功能描述:8-bit Proprietary Microcontroller
MB89P475 制造商:FUJITSU 制造商全稱:Fujitsu Component Limited. 功能描述:8-bit Proprietary Microcontroller
MB89P475-101PFM 制造商:FUJITSU 制造商全稱:Fujitsu Component Limited. 功能描述:8-bit Proprietary Microcontroller
MB89P475-101PFV 制造商:FUJITSU 制造商全稱:Fujitsu Component Limited. 功能描述:8-bit Proprietary Microcontroller