- Category:
- SCM
- Tags:
-
[C/C++]
[源码]
- File Size:
- 256kb
- Update:
- 2012-11-26
- Downloads:
- 0 Times
- Uploaded by:
- Shijie
Description: /* THIS SAMPLE CODE IS PROVIDED AS IS AND IS SUBJECT TO ALTERATIONS. FUJITSU*/
/* MICROELECTRONICS ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR*/
/* ELIGIBILITY FOR ANY PURPOSES. */
/* (C) Fujitsu Microelectronics (Shanghai) Co., LTD. */
/* Date:20080320 Version:1V0 Author:Lori */
/*---------------------------------------------------------------------------
NAME: MAIN.C
FUNCTION: Change the system clock and lighten three LED
LED flicker frequency different in different clock
******************************************************************************/
#include "mb95200.h"
#define MAIN 0x00
#define SUB 0x01
#define MAIN_CR 0x02
#define SUB_CR 0x03
unsigned char switchclock = MAIN //select the start clock
unsigned char toggle_status //LED change bit
unsigned char i
/******************************************************************************
NAME: MCU initializat
To Search:
File list (Check if you may need any files):
Basic_FW_Setup-500002
.....................\Clock_Change
.....................\............\Clock_Change.dat
.....................\............\Clock_Change.prj
.....................\............\Clock_Change.wsp
.....................\............\Debug
.....................\............\.....\ABS
.....................\............\.....\...\Clock_Change.abs
.....................\............\.....\...\Clock_Change.mhx
.....................\............\.....\Clock_Change.sup
.....................\............\.....\LST
.....................\............\.....\...\Clock_Change.mp1
.....................\............\.....\OBJ
.....................\............\.....\...\Main.obj
.....................\............\.....\...\Main.stk
.....................\............\.....\...\mb95200.obj
.....................\............\.....\...\startup.obj
.....................\............\.....\...\vectors.obj
.....................\............\.....\...\vectors.stk
.....................\............\.....\...\_f2mc8fx.obj
.....................\............\.....\...\_f2mc8fx.stk
.....................\............\.....\OPT
.....................\............\.....\...\Clock_Change.opa
.....................\............\.....\...\Clock_Change.opb
.....................\............\.....\...\Clock_Change.opc
.....................\............\.....\...\Clock_Change.opl
.....................\............\.....\...\Clock_Change.opv
.....................\............\.....\SF_clcok.sup
.....................\............\scr
.....................\............\...\ioreg.txt
.....................\............\...\ioregj.txt
.....................\............\...\ioregj_a.txt
.....................\............\...\ioreg_a.txt
.....................\............\...\Main.c
.....................\............\...\mb95200.h
.....................\............\...\mb95200_a.inc
.....................\............\...\startup.asm
.....................\............\...\vectors.c
.....................\............\...\_f2mc8fx.c
.....................\............\...\_f2mc8fx.h
.....................\............\...\_f2mc8fx_a.asm
.....................\MB95200 head files
.....................\..................\ioreg.txt
.....................\..................\ioregj.txt
.....................\..................\ioregj_a.txt
.....................\..................\ioreg_a.txt
.....................\..................\mb95200.h
.....................\..................\mb95200_a.inc
.....................\..................\_f2mc8fx.c
.....................\..................\_f2mc8fx.h
.....................\..................\_f2mc8fx_a.asm
.....................\Mode_Change
.....................\...........\Debug
.....................\...........\.....\ABS
.....................\...........\.....\...\Mode_Change.abs
.....................\...........\.....\...\Mode_Change.mhx
.....................\...........\.....\LST
.....................\...........\.....\...\Main.lst
.....................\...........\.....\...\Mode_Change.mp1
.....................\...........\.....\...\Mode_Change.mpm
.....................\...........\.....\...\Mode_Change.mps
.....................\...........\.....\...\Mode_Change.mpx
.....................\...........\.....\...\vectors.lst
.....................\...........\.....\Mode_Change.sup
.....................\...........\.....\OBJ
.....................\...........\.....\...\Main.obj
.....................\...........\.....\...\Main.stk
.....................\...........\.....\...\mb95200.obj
.....................\...........\.....\...\startup.obj
.....................\...........\.....\...\vectors.obj
.....................\...........\.....\...\vectors.stk
.....................\...........\.....\...\_f2mc8fx.obj
.....................\...........\.....\...\_f2mc8fx.stk
.....................\...........\.....\OPT
.....................\...........\.....\...\Mode_Change.opa
.....................\...........\.....\...\Mode_Change.opb
.....................\...........\.....\...\Mode_Change.opc
.....................\...........\.....\...