亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? iceev.asm

?? 八核心MCU 之FPPA 80Cxx 原廠範例程序
?? ASM
字號:
//***************************************************************************
//***** 	PDK80Cxx Peocessor Application Example Project 		*************
//***************************************************************************
//	Example Name :: ICEEV					Version 1.00		
//	Module Name  :: ICEEV.ASM
//	Abstract:
//        	ICE EV Board Demonstration 
//	Environment:
//        	PADAUK FPPA(TM) IDE Tool Version : 0.500 Beta
//
//	Revision History:
//        	Aug. 07, 2006        Chamber C.P. Ling  Created                 
/////////////////////////////////////////////////////////////////////////
// Copyright (C) 2006 by PADAUK Technology Co. Ltd. All rights reserved.
//
// This code is free for personal and commercial use, providing this 
// notice remains intact in the source files and all eventual changes are
// clearly marked with comments.
//
// No warrantee of any kind, express or implied, is included with this
// software; use at your own risk, responsibility for damages (if any) to
// anyone resulting from the use of this software rests entirely with the
// user.
//
// See the official site at www.padauk.com.tw for documentation and
// the latest news.
//
// Send bug reports, bug fixes, enhancements, requests, flames, etc. to
// service@padauk.com.tw or post them at the message board at the site.
/////////////////////////////////////////////////////////////////////////
// Description:
//	ICEEV.ASM is a simple and easy code in order to understand the basic 
//	architecture of FPPA firmware. Using a Single LED(PA.1) to show internal 
//	multi-core processors control a I/O pin ineractively each otherler. 
// 
//  The counters of LED Flash indicate the action of FPPx !
//=======================================================================
//----
//--
word	RAMindex;
int		ram0;
int		ram1;
int		ram2;
int		ram3;
int		FlashCnt;
int		MCUCtrl;
//---
int		DT0;
int		DT1;
int		DT2;
int		DT3;
//
	// Program Begin
	goto	fpp0Boot ;
	goto	fpp1Boot ;
	goto	fpp2Boot ;
	goto	fpp3Boot ;
	goto	fpp4Boot ;
	goto	fpp5Boot ;
	goto	fpp6Boot ;
	goto	fpp7Boot ;

//========= start MCU0 program ============//
fpp0Boot:
	set0	clkmd.1;		// turn-off watchdog
//------Low clock switch to High clock---------------------------------------
	mov		a, 0x00;
	mov		eoscr, a;	//External OSCillator Register
						// bit-0:	1=Enable XTAL Smith trigger strong mode
						//			0=Disable XTAL Smith trigger strong mode
						// bit-1:	1=Enable XTAL Smith trigger
						//			0=Disable XTAL Smith trigger
						// bit4-2:	Option of driving strength in crystal oscillator
						// bit6-5:	00=External RC oscillator
						//			01=32KHz crystal oscillator
						//			10=4Mhz crystal oscillator
						//			11=20MHz crystal oscillator
						// bit7:	1=Enable external RC oscillator or crystal oscillator
						//			0=Disable external RC oscillator or crystal oscillator
	delay	0x40;		// internal 32KHz need delay 30m/S
						// external 20MHz need delay 1m/S
	mov		a, 0x00 ;
	mov		ihrcrh, a;	//bit-0:Internal high RC
	mov		a, 0x88;
	mov		ihrcrl, a;	//Calibrate the internal RC as 16Mhz
	delay	0x40 ;		//

	mov		a, 0x14;	// select internal High RC and make low RC still run, too !
	mov		clkmd, a; 	// Internal Low RC, Watch Dog disable,
						// bit-0:	Reset Function
						// bit-1:	1=Enable Watch Dog (default)
						//			0=Disable Watch Dog
						// bit-2:	1=Enable Internal Low RC (default)
						//			0=Disable Internal Low RC
						// bit-3:	No Used
						// bit-4:	1=Enable Internal High RC (default)
						//			0=Disable Internal High RC 
						// bit-7~5:	000=internal high RC/4
						//			001=internal high RC/2
						//			010=internal high RC
						//			011=external OSC/4
						//			100=external OSC/2
						//			101=external OSC
						//			110=internal low RC/4
						//			111=internal low RC (default)
//------Low clock switch to High clock End-----------------------------------
	delay	0x40 ;		//
	// Stack Pointer Setting for Processor-0
	mov		a, 0x60 ;
	mov		sp, a ;	
	//---	
	//-- Clear Internal RAM ---	
	mov		a, 0x7f;
	mov		lb@RAMindex, a;	
	mov		a, 0x00;
	mov		hb@RAMindex, a;
ClearRAMLoop:
	wdreset;
	idxm	RAMindex, a;
	dzsn	lb@RAMindex;	
	goto	ClearRAMLoop;	 		
	// IO setting
	mov		a, 0xfe;		// PA output, pa.0 is inputs
	mov		pac, a ;	
//	mov		a, 0x02;		// PA output, pa.1 pull-high
//	mov		paph, a ;	
	mov		a, 0x00 ;
	mov		pa, a ;			// LEDs off
	//	
	// MCU setting
	pmode	2 ;
	//--- initialize the MCU Control flag 
	clear	MCUCtrl;
	//--
	mov		a, 0x03 ;	// Enable FPP1 !!
	mov		fppen, a ;	
	//--- Enable MCU 0 Demo function
	set1	MCUCtrl.0;
FPP0_ReBoot:	
	t1sn	MCUCtrl.0;
	goto	FPP0_ReBoot;
	//---- LED PA.1 Toggle One Time ---
	mov		a, 0x01;
	mov		FlashCnt, a;
FPP0_loop:
	set1	pa.1;
	call	DelayNoAcc;
	set0	pa.1;
	call	DelayNoAcc;
	dzsn	FlashCnt
	goto    FPP0_loop
	set0	MCUCtrl.0;	// make FPP0 Hang-up into a lock loop 
	call	delaySomemS;
	set1	MCUCtrl.1;	// Enable FPP1 Demo Function
	goto	FPP0_ReBoot; // Wait FPP7 clear control flag
//========== end of MCU0 program ===========//
//--
//========== start MCU1 PROGRAM ==========//
fpp1Boot:
	mov		a, 0x64 ;
	mov		sp, a ;	
	mov		a, 0x07 ;	// Enable FPP2 !!
	mov		fppen, a ;	
FPP1_ReBoot:	
	t1sn	MCUCtrl.1;
	goto	FPP1_ReBoot;
	//---- LED PA.1 Toggle two Times ---
	mov		a, 0x02;
	mov		FlashCnt, a;
FPP1LockLoop:
	set1	pa.1;
	call	DelayNoAcc;
	set0	pa.1;
	call	DelayNoAcc;
	dzsn	FlashCnt
	goto	FPP1LockLoop
	set0	MCUCtrl.1;	// make FPP1 Hang-up into a lock loop 
	call	delaySomemS;
	set1	MCUCtrl.2;	// Enable FPP2 Demo Function
	goto	FPP1_ReBoot; // Wait FPP0 clear control flag
//========== end of MCU1 program ===========//
//--
//========== start of MCU2 program =========//
fpp2Boot:
	mov		a, 0x68 ;
	mov		sp, a ;		
	mov		a, 0x0f ;	// Enable FPP3!
	mov		fppen, a ;	
FPP2_ReBoot:	
	t1sn	MCUCtrl.2;
	goto	FPP2_ReBoot;
	//---- LED PA.1 Toggle three Times ---
	mov		a, 0x03;
	mov		FlashCnt, a;
FPP2LockLoop:
	set1	pa.1;
	call	DelayNoAcc;
	set0	pa.1;
	call	DelayNoAcc;
	dzsn	FlashCnt
	goto	FPP2LockLoop
	set0	MCUCtrl.2;	// make FPP2 Hang-up into a lock loop 
	call	delaySomemS;
	set1	MCUCtrl.3;	// Enable FPP3 Demo Function
	goto	FPP2_ReBoot; // Wait FPP1 clear control flag
//========== end of MCU2 program ===========//
//---
//========== start of MCU3 program =========//
fpp3Boot:
	mov		a, 0x6C ;
	mov		sp, a ;	
	mov		a, 0x1f ;	// Enable FPP4 !!
	mov		fppen, a ;	
FPP3_ReBoot:	
	t1sn	MCUCtrl.3;
	goto	FPP3_ReBoot;
	//---- LED PA.1 Toggle four Times ---
	mov		a, 0x04;
	mov		FlashCnt, a;
FPP3LockLoop:
	set1	pa.1;
	call	DelayNoAcc;
	set0	pa.1;
	call	DelayNoAcc;
	dzsn	FlashCnt
	goto	FPP3LockLoop
	set0	MCUCtrl.3;	// make FPP3 Hang-up into a lock loop 
	call	delaySomemS;
	set1	MCUCtrl.4;	// Enable FPP4 Demo Function
	goto	FPP3_ReBoot; // Wait FPP2 clear control flag
//========== end of MCU3 program ===========//
//--
//========== start of MCU4 program =========//
fpp4Boot:
	mov		a, 0x70 ;
	mov		sp, a ;	
	mov		a, 0x3f ;	// Enable FPP5 !!
	mov		fppen, a ;	
FPP4_ReBoot:	
	t1sn	MCUCtrl.4;
	goto	FPP4_ReBoot;
	//---- LED PA.1 Toggle five Times ---
	mov		a, 0x05;
	mov		FlashCnt, a;
FPP4LockLoop:
	set1	pa.1;
	call	DelayNoAcc;
	set0	pa.1;
	call	DelayNoAcc;
	dzsn	FlashCnt
	goto	FPP4LockLoop
	set0	MCUCtrl.4;	// make FPP4 Hang-up into a lock loop 
	call	delaySomemS;
	set1	MCUCtrl.5;	// Enable FPP5 Demo Function
	goto	FPP4_ReBoot; // Wait FPP3 clear control flag
//========== end of MCU4 program ===========//
//--
//========== start of MCU5 program =========//		
fpp5Boot:
	mov		a, 0x74 ;
	mov		sp, a ;	
	mov		a, 0x7f ;	// Enable FPP6 !!
	mov		fppen, a ;	
FPP5_ReBoot:	
	t1sn	MCUCtrl.5;
	goto	FPP5_ReBoot;
	//---- LED PA.1 Toggle six Times ---
	mov		a, 0x06;
	mov		FlashCnt, a;
FPP5LockLoop:
	set1	pa.1;
	call	DelayNoAcc;
	set0	pa.1;
	call	DelayNoAcc;
	dzsn	FlashCnt
	goto	FPP5LockLoop
	set0	MCUCtrl.5;	// make FPP5 Hang-up into a lock loop 
	call	delaySomemS;
	set1	MCUCtrl.6;	// Enable FPP6 Demo Function
	goto	FPP5_ReBoot; // Wait FPP4 clear control flag
//========== end of MCU5 program ===========//
//--
//========== start of MCU6 program =========//
fpp6Boot:
	mov		a, 0x78 ;
	mov		sp, a ;	
	mov		a, 0xff ;	// Enable FPP7, now all FPPx is running !!
	mov		fppen, a ;	
FPP6_ReBoot:	
	t1sn	MCUCtrl.6;
	goto	FPP6_ReBoot;
	//---- LED PA.1 Toggle seven Times ---
	mov		a, 0x07;
	mov		FlashCnt, a;
FPP6LockLoop:
	set1	pa.1;
	call	DelayNoAcc;
	set0	pa.1;
	call	DelayNoAcc;
	dzsn	FlashCnt
	goto	FPP6LockLoop
	set0	MCUCtrl.6;	// make FPP6 Hang-up into a lock loop 
	call	delaySomemS;
	set1	MCUCtrl.7;	// Enable FPP7 Demo Function
	goto	FPP6_ReBoot; // Wait FPP5 clear control flag
//========== end of MCU6 program ===========//
//--
//========== start of MCU7 program =========//
fpp7Boot:
	mov		a, 0x7C ;
	mov		sp, a ;	
FPP7_ReBoot:	
	t1sn	MCUCtrl.7;
	goto	FPP7_ReBoot;
	//---- LED PA.1 Toggle eight Times ---
	mov		a, 0x08;
	mov		FlashCnt, a;
FPP7LockLoop:
	set1	pa.1;
	call	DelayNoAcc;
	set0	pa.1;
	call	DelayNoAcc;
	dzsn	FlashCnt
	goto	FPP7LockLoop
	set0	MCUCtrl.7;	// make FPP7 Hang-up into a lock loop 
	call	delaySomemS;
	set1	MCUCtrl.0;	// Enable FPP0 Demo Function
	goto	FPP7_ReBoot; // Wait FPP6 clear control flag
//========== end of MCU7 program ===========//
//--
delaySomemS:                        // 
        mov     a, 0x28 ;
        mov     DT3, a ;
dloop6:        
		mov		a, 0x80 ;
        mov     DT2, a ;
dloop7:
        delay   0xCA ;
        dzsn    DT2 ;
        goto    dloop7 ;
        dzsn    DT3 ;
        goto    dloop6 ;
        ret	

DelayNoAcc:                  // 		
        clear   DT0;
NoAcc_loop6:        
        clear   DT1;
NoAcc_loop7:
        dzsn    DT1 ;			// 2*255 us = 510us + 2us = 512 us
        goto    NoAcc_loop7 ;	// 
        dzsn    DT0 ;			// 512 * (255*2us) + 2 us = 261.122 ms
        goto    NoAcc_loop6 ;
        ret	
        

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人午夜视频在线| 欧美性极品少妇| 在线观看不卡视频| 污片在线观看一区二区| 国产偷v国产偷v亚洲高清| 日韩欧美国产一二三区| 欧美videossexotv100| 久久这里只有精品首页| 国产亚洲1区2区3区| 亚洲欧洲另类国产综合| 亚洲欧美激情在线| 一区二区三区在线观看网站| 亚洲美女在线国产| 无吗不卡中文字幕| 国内成人免费视频| 99久久精品免费看| 欧美三级日韩在线| 日韩欧美一区二区免费| 精品乱人伦一区二区三区| 久久精品综合网| 日韩美女精品在线| 国产成人综合亚洲91猫咪| 粉嫩在线一区二区三区视频| 波多野结衣亚洲一区| 欧美在线影院一区二区| 精品日韩一区二区| 亚洲欧洲精品一区二区三区不卡| 一区二区三区在线播| 美女脱光内衣内裤视频久久网站| 国产传媒日韩欧美成人| 欧美日韩中文一区| 久久久久久久精| 一区二区激情视频| 国产成人精品亚洲日本在线桃色| 91黄色小视频| 国产香蕉久久精品综合网| 亚洲激情图片qvod| 国产综合成人久久大片91| 91视频.com| 久久综合色综合88| 亚洲成人一二三| 成人国产精品免费| 日韩欧美aaaaaa| 亚洲伊人色欲综合网| 福利91精品一区二区三区| 欧美日韩一区二区三区视频| 日本一区二区免费在线观看视频 | 国产色产综合色产在线视频| 亚洲日本欧美天堂| 国产精品一区二区三区乱码| 欧美日韩aaaaa| 亚洲精品免费播放| 成人激情黄色小说| 久久久久国产精品麻豆ai换脸| 亚洲综合免费观看高清完整版| 国产传媒日韩欧美成人| 精品毛片乱码1区2区3区| 亚洲国产中文字幕| 91久久一区二区| 亚洲三级小视频| 9人人澡人人爽人人精品| 精品日韩欧美一区二区| 日本不卡高清视频| 欧美高清视频在线高清观看mv色露露十八| 国产精品国产三级国产aⅴ原创| 国产一区二区三区蝌蚪| 精品国产乱子伦一区| 免费在线观看一区二区三区| 欧美日本一道本| 五月综合激情婷婷六月色窝| 欧美偷拍一区二区| 亚洲最新视频在线观看| 在线观看日韩av先锋影音电影院| 国产精品毛片大码女人| 成人免费视频app| 日韩一区在线看| 在线免费观看视频一区| 亚洲综合激情网| 欧美日韩一卡二卡| 婷婷一区二区三区| 欧美一区二区精美| 卡一卡二国产精品 | 图片区日韩欧美亚洲| 欧美三级三级三级爽爽爽| 亚洲电影你懂得| 欧美一二三四在线| 国产在线观看一区二区| 日本一区二区视频在线| 99国内精品久久| 一区二区三区加勒比av| 欧美日韩一卡二卡三卡| 美腿丝袜亚洲综合| 欧美精品一区二区在线观看| 国产91精品入口| 亚洲色图视频免费播放| 欧美午夜寂寞影院| 麻豆久久一区二区| 国产精品色呦呦| 欧美三级中文字| 国产伦精品一区二区三区免费迷 | 99久久婷婷国产精品综合| 亚洲精品成人精品456| 欧美一区永久视频免费观看| 黑人精品欧美一区二区蜜桃| 亚洲欧洲日产国码二区| 欧美人伦禁忌dvd放荡欲情| 国产精品一区二区三区四区| 综合av第一页| 欧美大片一区二区| 91在线porny国产在线看| 秋霞国产午夜精品免费视频| 欧美极品xxx| 欧美一区午夜精品| 91在线观看高清| 久久精品国产澳门| 亚洲精品乱码久久久久久日本蜜臀| 69堂国产成人免费视频| 99精品久久99久久久久| 久久9热精品视频| 亚洲精品国产视频| 国产性色一区二区| 日韩欧美国产小视频| 日本久久电影网| 懂色av一区二区三区免费看| 日韩在线一二三区| 一区二区三区中文在线观看| 久久九九久精品国产免费直播| 欧美日韩精品一区二区三区蜜桃 | 日韩欧美亚洲国产另类| 91视频免费观看| 国产精品一区二区久久不卡| 视频一区在线播放| 一区二区三区四区在线播放| 国产女人aaa级久久久级| 日韩欧美一区电影| 欧美视频精品在线观看| 91热门视频在线观看| 成人午夜又粗又硬又大| 国产又粗又猛又爽又黄91精品| 日韩高清一区二区| 亚洲一区二区美女| 一区二区三区在线播放| 国产精品国产三级国产专播品爱网| 久久免费精品国产久精品久久久久| 欧美精品久久一区| 欧美巨大另类极品videosbest | 日韩av在线免费观看不卡| 亚洲一区二区三区四区在线| 亚洲欧美日韩一区二区三区在线观看 | 成人综合在线网站| 国产精品一区二区x88av| 国产一区二区免费看| 国产一区三区三区| 久久精品99国产精品日本| 久久国产尿小便嘘嘘| 极品少妇一区二区| 国产乱一区二区| 成人性生交大合| av在线不卡网| 色综合激情久久| 欧美最猛黑人xxxxx猛交| 欧美综合在线视频| 日韩一区二区影院| xf在线a精品一区二区视频网站| 精品久久久久久久人人人人传媒 | 日本乱人伦一区| 欧美在线不卡一区| 日韩一区二区在线观看| 久久亚洲一区二区三区明星换脸| 久久久不卡影院| 亚洲视频狠狠干| 午夜视频一区二区| 久久99精品国产91久久来源| 成人综合婷婷国产精品久久| 色综合中文字幕国产 | 久久99精品久久久久久| 国产精品亚洲а∨天堂免在线| 成人不卡免费av| 欧美日韩国产另类不卡| 26uuu精品一区二区| 一区在线观看免费| 日韩国产在线观看一区| 国产精品一区二区久久不卡| 日本精品视频一区二区三区| 日韩一级成人av| 亚洲欧洲精品一区二区三区 | 亚洲精品久久嫩草网站秘色| 亚洲成人av一区二区三区| 国产一区二区影院| 日本大香伊一区二区三区| 精品电影一区二区| 亚洲综合一二区| 国产高清不卡一区二区| 欧美理论片在线| 亚洲人成网站精品片在线观看| 蜜桃视频一区二区三区在线观看| 99久久亚洲一区二区三区青草| 日韩久久免费av| 亚洲第一av色| 色av成人天堂桃色av|