參數(shù)資料
型號: MN103SA7D
廠商: PANASONIC CORP
元件分類: 微控制器/微處理器
英文描述: 32-BIT, MROM, MICROCONTROLLER, PQFP80
封裝: 14 X 14 MM, LEAD FREE, PLASTIC, LQFP-80
文件頁數(shù): 143/236頁
文件大小: 3095K
代理商: MN103SA7D
第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頁當(dāng)前第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頁
Chapter 8
8-bit Timer
Timer Output Function
VIII - 37
8.5.2
Setup Example
■ Timer Output Setup Example
The TM1IO pin outputs 100 KHz pulse by using timer 1. In order to output 100 KHz, select IOCLK for a count
clock source, and set 1/2 cycle (200 KHz) to the timer 1 base register.
An example setup procedure, with a description of each step is shown below.
Figure:8.5.2 Output Waveform of TM1IO pin
TM1BC starts to count down from 0x95. When an underflow occurs, the signal of theTM1IO output pin is
inverted; and, TM1BC starts to count down from 0x95 again.
Setup Procedure
Description
(1) Check the counter stopped
TM1MD (0x0000A181)
bp6: TM1LDE=0
bp7: TM1CNE=0
(1) Set the TM1LDE flag and the TM1CNE flag of the timer
1 mode register (TM1MD) to “0” to stop timer 1
counting.
(2) Set the TM1IO pin to output and mode
P3MD (0x0000A033)
bp1: P31M=1
P3DIR (0x0000A023)
bp1: P31D=1
(2) Set the P3MD flag of the port 3 mode register (P31M) to
“1” for TM1IO pin setting.
Set the P31D flag of the port 3 I/O control register
(P3DIR) to “1” for output pin setting.
(3) Set 1/2 cycle for timer output
TM1BR(0x0000A189)=0x95
(3) Set 1/2 cycle of the timer output to the timer 1 base
register (TM1BR). The setting value is 149 (0x95) due
to 200KHz. Setting value = (10MHZ
× 2/6) / 200KHz -1
(4) Select the count clock source
TM1MD(0x0000A181)
bp2-0: TM1CK2-0=000
(4) Select IOCLK to the count clock source by the TM1CK2-
0 flag of the TM1MD register.
(5) Initialize timer 1
TM1MD(0x0000A181)
bp6: TM1LDE=1
(5) Set the TM1LDE flag of the TM1MD register to “1” to
initialize timer 1. The value of the TM1BR register is
loaded to the TM1BC counter; and, output of TM1IO
changes “L”. Reset the TM1LDE flag to “0”.
(6) Start the timer operation
TM1MD (0x0000A181)
bp7: TM1CNE=1
(6) Set the TM1CNE flag of the TM1MD register to “1” to
operate timer 1.
100KHz
TMOIO output
相關(guān)PDF資料
PDF描述
MN10SA7G 32-BIT, MROM, 60 MHz, MICROCONTROLLER, PQFP80
MN195007 16-BIT, 24.576 MHz, OTHER DSP, PQFP100
MN5523A SPECIALTY MICROPROCESSOR CIRCUIT, CBGA28
MPC107APX66L0 MULTIFUNCTION PERIPHERAL, PPGA503
MPC107APX100L0 MULTIFUNCTION PERIPHERAL, PPGA503
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MN103SB9N 制造商:PANASONIC 制造商全稱:Panasonic Semiconductor 功能描述:MN103SB9N
MN103SF65GAL 制造商:PANASONIC 制造商全稱:Panasonic Semiconductor 功能描述:5V single power supply (regulator)
MN103SF65GBF 制造商:PANASONIC 制造商全稱:Panasonic Semiconductor 功能描述:5V single power supply (regulator)
MN103SF92GBL 制造商:PANASONIC 制造商全稱:Panasonic Semiconductor 功能描述:MICROCOMPUTER LSI
MN103SFB9R 制造商:PANASONIC 制造商全稱:Panasonic Semiconductor 功能描述:MN103SB9N