WatchandScoring

所属分类:单片机开发
开发工具:C/C++
文件大小:306KB
下载次数:16
上传日期:2009-05-30 21:01:05
上 传 者sherlockxlg
说明:  用松下MN101C开发的小程序,实现时钟(闹钟)和计分器等功能
(Panasonic MN101C with the development of small procedures, the realization of the clock (alarm clock) and function points, etc.)

文件列表:
Watch\101c49k.h (30796, 2003-10-02)
Watch\boot49k.asm (3278, 2003-04-25)
Watch\boot49k.lst (10253, 2008-05-26)
Watch\boot49k.rf (5370, 2008-05-26)
Watch\CC101C.LIB (294688, 2004-09-03)
Watch\def.h (654, 2003-06-18)
Watch\DFMakeMsg.log (298, 2008-05-29)
Watch\int.c (7807, 2008-05-29)
Watch\int.h (531, 2003-04-20)
Watch\INT.rf (24559, 2008-05-29)
Watch\lcd.c (1501, 2007-06-16)
Watch\lcd.h (322, 2007-06-16)
Watch\LCD.rf (10738, 2008-05-27)
Watch\OP00.b20 (30116, 2007-06-16)
Watch\OP00.lst (92476, 2008-05-28)
Watch\OP04.lst (199449, 2008-05-29)
Watch\OP08.lst (199569, 2008-05-29)
Watch\OP0c.lst (199339, 2008-05-28)
Watch\OP0c.q20 (46378, 2007-06-18)
Watch\OP0g.lst (93925, 2008-05-27)
Watch\OP0k.lst (196809, 2008-05-27)
Watch\OP0o.lst (94807, 2008-05-29)
Watch\OP0s.lst (199846, 2008-05-29)
Watch\sample.c (21251, 2008-05-29)
Watch\Sample.dfp (43944, 2008-06-11)
Watch\Sample.dft (48832, 2008-06-11)
Watch\Sample.ex (37739, 2008-05-29)
Watch\sample.h (583, 2008-05-27)
Watch\Sample.mak (5922, 2003-09-12)
Watch\Sample.map (70797, 2008-05-29)
Watch\SAMPLE.rf (57522, 2008-05-29)
Watch (0, 2008-05-29)

********** About MN101CF49K Starter Kit Sample Program ********** * Specifications of the Operation - The LED connnected between P10 and P17 is, in turn, lighted on every 0.2 sec. - The LED with corresponded bit is lighted on, when toggle switch connected between P40 and P47 is switched on. - The time period after activation and Copyright are shown at the bottom line of the LCD display panel. - The message "Welcome to MN101CF49K StarterKit" is shown at the top line of the LCD display panel. - The LCD display is scrolled towords left every 0.2 sec. - The LCD display panel is scrolled-on and scrolled-off alternatively when IRQ1 button is pushed. - The clock in the LCD display panel is stopped and restarted alternatively when IRQ0 button is pushed. - Interrupt occurs every 1 ms when timer 0 is used for 1 ms timer for waits. - Interrupt occurs every 0.2 s when timer 1 is used for 0.2 s timer for LED and LCD scrolls. - Interrupt occurs every 1 sec when timer 6 is used for 1 sec base timer. - The data input from TXD on serial port 0 enables local echo to RXD at serial port 0 (19200bps). In addition, it outputs the prompt to RXD at serial port 0 when CR code is input and StarterKit is powered on. - The data input from TXD on serial port 1 enables local echo to RXD at serial port 1 (19200bps). In addition, it outputs the prompt to RXD at serial port 1 when CR code is input and StarterKit is powered on. * Limitation of the Users Programming - Users are not allowed to use the following occupation resources for monitoring program. 1) Serial Interface 2(P03/SBO2, P04/SBI2, P05/SBT2) 2) ROM Correction 3) 0000H to 0015H, and 2700 to 27FFH in RAM area. 4) PI instruction interrupt and watchdog interrupt are processed as the illegal break. As the above reason, these interrupt processings cannot be used in the user program(Watchdog function in itselfcan be used). 5) Watchdog can be used in the user program, however, the lower limit of the watchdog timer setting (WDTC2:0) cannot be used <0:Disable(fixed)>. - IVBM bit of MEMCTR register can neither be set up and be modified (vector area = 0x04000 fixed). - Normal interrupt vector table is allocated in the non-programmable monitoring area. As branch instruction that branches into 05808H is allocated in this area beforehand, branch instruction to actual reset start routine should be stored in 05808H. - Normal interrupt vector table is allocated in the non-programmable monitoring area. As branch instructions that branch into 0580CH and later addresses are allocated in this area beforehand, branch instructions to each actual interupt processing routine should be stored in 0580CH and later addresses. - Vector indirect sub-routine call cannot be used. In assembler, we recommend you to specify the following options; -Vd for in assembler, and -Qas = -Vd in compiler. - Clock sources are shown below. X1 fosc = 20.0 MHz X2 fx = 32.768 kHz - As P15 is assigned in the CPU setting switch "BOOT", the setting is fixed to low level if it is on DEBUG side. * Note - All interrupts are disabled during the monitoring execution. If interrupts are enabled by the user program, "Interrupt enable" is set on monitoring side again at the re-execute from break. - During the monitoring program, 13 bytes maximum of user`s stack is used at break. - If undefined instruction execution interrupt is generated in the user program, the flow branches into NMI processing routine of the monitoring firstly. 1) If CPU setting switch "BOOT" is set to DEBUG, it is informed to debugger as "Illegal Instruction break" (like ICEoperation) 2) If CPU setting switch "BOOT" is set to RUN, infinite loop in the monitor and, actually, execution stop condition. - At the monitor activation, prescaler is set to enable. Set the condition accordingly by initial processing of the user program. - At the monitor activation, the programming by the software of interrupt request flag is enabled by IRWE flag of MEMCTR. Set the condition accordingly by initial processing of the user program. - When attached IO header file "101c49k.h" is used, bit field control option and -fchar-bfield -fmsb-bfield must be set in compile options. - LED9 (P17) is not lighted on MN101CF49K because this is not used as the general I/O.

近期下载者

相关文件


收藏者