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

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

?? timer_counter.vhd

?? AVR IP CORE 可以直接用于工程的開發和 已經通過編譯和仿真
?? VHD
?? 第 1 頁 / 共 3 頁
字號:
	-- --------------------------------------------------------------------------------------------- Prescalers-- -------------------------------------------------------------------------------------------		-- Prescaler 1 for TCNT1 and TCNT2Prescaler_1:process(cp2,ireset)beginif  ireset='0'  then                 -- Reset Pre1Cnt <= (others => '0');  CK8 <= '0'; CK64 <= '0'; CK256 <= '0'; CK1024 <= '0'; EXT1RE <= '0'; EXT1FE <= '0'; EXT2RE <= '0'; EXT2FE <= '0'; EXT1Latched <= '0'; EXT2Latched <= '0';  elsif  cp2='1' and cp2'event  then -- Clock    Pre1Cnt <= Pre1Cnt+1;	 CK8 <= not CK8 and(Pre1Cnt(0) and Pre1Cnt(1)and Pre1Cnt(2));     CK64 <= not CK64 and(Pre1Cnt(0) and Pre1Cnt(1) and Pre1Cnt(2) and Pre1Cnt(3) and Pre1Cnt(4) and Pre1Cnt(5));     CK256 <= not CK256 and(Pre1Cnt(0) and Pre1Cnt(1) and Pre1Cnt(2) and Pre1Cnt(3) and Pre1Cnt(4) and Pre1Cnt(5) and Pre1Cnt(6) and Pre1Cnt(7));     CK1024 <= not CK1024 and(Pre1Cnt(0) and Pre1Cnt(1) and Pre1Cnt(2) and Pre1Cnt(3) and Pre1Cnt(4) and Pre1Cnt(5) and Pre1Cnt(6) and Pre1Cnt(7) and Pre1Cnt(8) and Pre1Cnt(9));     EXT1RE <= not EXT1RE and (EXT1SB and not EXT1Latched);     EXT1FE <= not EXT1FE and (not EXT1SB and EXT1Latched);     EXT2RE <= not EXT2RE and (EXT2SB and not EXT2Latched);     EXT2FE <= not EXT2FE and (not EXT2SB and EXT2Latched);     EXT1Latched <= EXT1SB;     EXT2Latched <= EXT2SB;    end if;end process;		TCNT1_En <= (not CS12 and not CS11 and CS10) or            -- CK             "001"            (CK8 and not CS12 and CS11 and not CS10) or    -- CK/8			 "010"			(CK64 and not CS12 and CS11 and CS10)    or    -- CK/64			 "011"			(CK256 and CS12 and not CS11 and not CS10) or  -- CK/256		 "100"            (CK1024 and CS12 and not CS11 and CS10)    or  -- CK/1024		 "101"			(EXT1FE and CS12 and CS11 and not CS10) or     -- Falling edge	 "110"            (EXT1RE and CS12 and CS11 and CS10);           -- Rising edge	 "111"			TCNT2_En <= (not CS22 and not CS21 and CS20) or            -- CK             "001"            (CK8 and not CS22 and CS21 and not CS20) or    -- CK/8			 "010"			(CK64 and not CS22 and CS21 and CS20)    or    -- CK/64			 "011"			(CK256 and CS22 and not CS21 and not CS20) or  -- CK/256		 "100"            (CK1024 and CS22 and not CS21 and CS20)    or  -- CK/1024		 "101"			(EXT2FE and CS22 and CS21 and not CS20) or     -- Falling edge	 "110"            (EXT2RE and CS22 and CS21 and CS20);           -- Rising edge	 "111"-- Prescaler 0 for TCNT0Tosc1_Rising_Edge_Detector:process(cp2,ireset)begin if ireset='0' then  --Reset  Tosc1RE <= '0';  Tosc1Latched <= '0';     elsif  cp2='1' and cp2'event  then -- Clock	Tosc1RE <= not Tosc1RE and (not Tosc1Latched and Tosc1SB);     Tosc1Latched <= Tosc1SB;	 end if;	end process;	PCK0 <= Tosc1RE when AS0='1' else '1';	Prescaler_0_Cnt:process(cp2,ireset)beginif  ireset='0'  then                   -- Reset Pre0Cnt <= (others => '0');   elsif  cp2='1' and cp2'event  then -- Clock    if PCK0='1' then                   -- Clock enable	 Pre0Cnt <= Pre0Cnt+1;	end if;	   end if;end process;					Prescaler_0:process(cp2,ireset)beginif  ireset='0'  then                   -- Reset PCK08 <= '0'; PCK032 <= '0'; PCK064 <= '0'; PCK0128 <= '0'; PCK0256 <= '0'; PCK01024 <= '0'; PCK0_Del <= '0';  elsif  cp2='1' and cp2'event  then -- Clock	 PCK08 <= (not PCK08 and(Pre0Cnt(0) and Pre0Cnt(1)and Pre0Cnt(2)) and PCK0_Del);     PCK032 <= (not PCK032 and(Pre0Cnt(0) and Pre0Cnt(1) and Pre0Cnt(2) and Pre0Cnt(3) and Pre0Cnt(4)) and PCK0_Del); 	 PCK064 <= (not PCK064 and(Pre0Cnt(0) and Pre0Cnt(1) and Pre0Cnt(2) and Pre0Cnt(3) and Pre0Cnt(4) and Pre0Cnt(5)) and PCK0_Del);     PCK0128 <= (not PCK0128 and(Pre0Cnt(0) and Pre0Cnt(1) and Pre0Cnt(2) and Pre0Cnt(3) and Pre0Cnt(4) and Pre0Cnt(5) and Pre0Cnt(6) and PCK0_Del));	 PCK0256 <= (not PCK0256 and(Pre0Cnt(0) and Pre0Cnt(1) and Pre0Cnt(2) and Pre0Cnt(3) and Pre0Cnt(4) and Pre0Cnt(5) and Pre0Cnt(6) and Pre0Cnt(7)) and PCK0_Del);     PCK01024 <= (not PCK01024 and(Pre0Cnt(0) and Pre0Cnt(1) and Pre0Cnt(2) and Pre0Cnt(3) and Pre0Cnt(4) and Pre0Cnt(5) and Pre0Cnt(6) and Pre0Cnt(7) and Pre0Cnt(8) and Pre0Cnt(9)) and PCK0_Del); 	 PCK0_Del <= PCK0;  end if;end process;					TCNT0_En <= (PCK0 and not CS02 and not CS01 and CS00) or     -- PCK            "001" !!??            (PCK08 and not CS02 and CS01 and not CS00) or    -- PCK/8		   "010"			(PCK032 and not CS02 and CS01 and CS00)or	     -- PCK/32		   "011"			(PCK064 and CS02 and not CS01 and not CS00)or    -- PCK/64		   "100"			(PCK0128 and CS02 and not CS01 and CS00)or       -- PCK/64		   "101"			(PCK0256 and CS02 and CS01 and not CS00)or       -- PCK/256		   "110"            (PCK01024 and CS02 and CS01 and CS00);           -- PCK/1024	   "111"-- --------------------------------------------------------------------------------------------- End of prescalers-- -------------------------------------------------------------------------------------------			-- I/O address decoderTCCR0_Sel  <= '1' when adr=TCCR0_Address else '0';TCCR1A_Sel <= '1' when adr=TCCR1A_Address else '0';TCCR1B_Sel <= '1' when adr=TCCR1B_Address else '0';TCCR2_Sel  <= '1' when adr=TCCR2_Address else '0';ASSR_Sel   <= '1' when adr=ASSR_Address else '0';TIMSK_Sel  <= '1' when adr=TIMSK_Address else '0';TIFR_Sel   <= '1' when adr=TIFR_Address else '0';TCNT0_Sel  <= '1' when adr=TCNT0_Address else '0';TCNT2_Sel  <= '1' when adr=TCNT2_Address else '0';OCR0_Sel   <= '1' when adr=OCR0_Address else '0';OCR2_Sel   <= '1' when adr=OCR2_Address else '0';TCNT1H_Sel <= '1' when adr=TCNT1H_Address else '0';TCNT1L_Sel <= '1' when adr=TCNT1L_Address else '0';OCR1AH_Sel <= '1' when adr=OCR1AH_Address else '0';OCR1AL_Sel <= '1' when adr=OCR1AL_Address else '0';OCR1BH_Sel <= '1' when adr=OCR1BH_Address else '0';OCR1BL_Sel <= '1' when adr=OCR1BL_Address else '0';ICR1AH_Sel <= '1' when adr=ICR1AH_Address else '0';ICR1AL_Sel <= '1' when adr=ICR1AL_Address else '0';		-- --------------------------------------------------------------------------------------------- Timer/Counter0-- --------------------------------------------------------------------------------------------- Attention !!! This model only emulates the asynchronous mode of TCNT0. -- Real TCNT0 of ATmega103/603 operates with two separate clock sources.Counter_0:process(cp2,ireset)beginif  ireset='0'  then                                      -- Reset TCNT0 <= (others => '0');    elsif  cp2='1' and cp2'event  then                      -- Clock    if (TCNT0_En or TCNT0_Clr or TCNT0_Ld_Imm)='1' then   -- Clock enable	 TCNT0 <= TCNT0_In;	end if;	   end if;end process;				Counter_0_Inc:process(cp2,ireset)beginif  ireset='0'  then                                      -- Reset  	TCNT0_Inc <= '0';    elsif  cp2='1' and cp2'event  then                      -- Clock	 TCNT0_Inc <= (not TCNT0_Inc and(TCNT0_En and not TCNT0_Ld_Imm))or(TCNT0_Inc and not(TCNT0_Ld_Imm));	   end if;end process;				TCNT0_In <= TCNT0_Imm_In    when TCNT0_Ld_Imm = '1' else -- Immediate value (from dbus_in or TCNT0_Tmp)            (others => '0') when TCNT0_Clr ='1'	else     -- Synchronous clear (for OCR)			TCNT0-1 when TCNT0_Cnt_Dir='1' else			 -- Decrement (for PWM)			TCNT0+1;									 -- Icrement (for counter and PWM)				TCNT0_Imm_In <= TCNT0_Tmp when (TCN0UB and not TCN0UB_Tmp and PCK0 and AS0)='1' else dbus_in;TCNT0_Clr <= TCNT0_Cmp_Out and CTC0 and not PWM0;TCNT0_Cmp_Out <= '1' when (TCNT0=OCR0 and OCR0/=x"00" and TCNT0_Inc='1') else '0';TCNT0_Ld_Imm <= (TCNT0_Sel and iowe and not AS0) or (TCN0UB and not TCN0UB_Tmp and PCK0 and AS0);		TCCR0_Control:process(cp2,ireset)beginif ireset='0' then                  -- Reset TCNT0_Cnt_Dir <= '0';  TCR0UB_Tmp <= '0'; OCR0UB_Tmp <= '0'; TCN0UB_Tmp <= '0';  ASSR <= (others => '0');  elsif cp2='1' and cp2'event then  -- Clock   TCNT0_Cnt_Dir <= (not TCNT0_Cnt_Dir and(TCNT0(7) and TCNT0(6) and TCNT0(5) and TCNT0(4) and TCNT0(3) and TCNT0(2) and TCNT0(1) and not TCNT0(0) and TCNT0_En and PWM0)) or           -- 0xFE   (TCNT0_Cnt_Dir and not ((not TCNT0(7) and not TCNT0(6) and not TCNT0(5) and not TCNT0(4) and not TCNT0(3) and not TCNT0(2) and not TCNT0(1) and TCNT0(0)and TCNT0_En) or not PWM0));	-- 0x01      TCR0UB_Tmp <= (not TCR0UB_Tmp and (TCCR0_Sel and iowe and AS0))or   				 (TCR0UB_Tmp and not PCK0);   OCR0UB_Tmp <= (not OCR0UB_Tmp and (OCR0_Sel and iowe and AS0))or                 (OCR0UB_Tmp and not PCK0);   TCN0UB_Tmp <= (not TCN0UB_Tmp and (TCNT0_Sel and iowe and AS0))or   				 (TCN0UB_Tmp and not PCK0);     TCR0UB <= (not TCR0UB and (TCCR0_Sel and iowe and AS0))or   		    (TCR0UB and not (not TCR0UB_Tmp and PCK0));  OCR0UB <= (not OCR0UB and (OCR0_Sel and iowe and AS0))or            (OCR0UB and not (not OCR0UB_Tmp and PCK0));  TCN0UB <= (not TCN0UB and (TCNT0_Sel and iowe and AS0))or   			(TCN0UB and not (not TCN0UB_Tmp and PCK0));    AS0    <= (not AS0 and(ASSR_Sel and iowe and dbus_in(3)))or             (AS0 and not(ASSR_Sel and iowe and not dbus_in(3)));		     end if;end process;						-- Temp registers of TCNT0-- This register is used only when TCNT0 operates in the asynchronous modeTCNT0_Temp_Control:process(cp2,ireset)beginif  ireset='0'  then                                      -- Reset TCCR0_Tmp <= (others => '0');   elsif  cp2='1' and cp2'event  then                      -- Clock    if (TCCR0_Sel and iowe and AS0)='1' then              -- Clock enable	 TCCR0_Tmp <= dbus_in;	end if;	   end if;end process;				-- This register is used only when TCNT0 operates in the asynchronous modeTCNT0_Temp_CNT:process(cp2,ireset)beginif  ireset='0'  then                                      -- Reset TCNT0_Tmp <= (others => '0');   elsif  cp2='1' and cp2'event  then                      -- Clock    if (TCNT0_Sel and iowe and AS0)='1' then              -- Clock enable	 TCNT0_Tmp <= dbus_in;	end if;	   end if;end process;				TCNT0_Temp_Compare:process(cp2,ireset)beginif  ireset='0'  then                                      -- Reset OCR0_Tmp <= (others => '0');   elsif  cp2='1' and cp2'event  then                      -- Clock    if (OCR0_Sel and iowe )='1' then     -- Clock enable ??!! was "and (AS0 or PWM0)"	 OCR0_Tmp <= dbus_in;	end if;	   end if;end process;				-- Main registers of TCNT0TCNT0_Control:process(cp2,ireset)beginif  ireset='0'  then                                      -- Reset TCCR0 <= (others => '0');   elsif  cp2='1' and cp2'event  then                      -- Clock    if ((TCCR0_Sel and iowe and not AS0)or		(TCR0UB and not TCR0UB_Tmp and PCK0 and AS0))='1' then              -- Clock enable	 TCCR0(6 downto 0) <= TCCR0_In(6 downto 0);	end if;	   end if;end process;				TCCR0_In <= TCCR0_Tmp when (TCR0UB and not TCR0UB_Tmp and PCK0 and AS0)='1' else dbus_in;TCNT0_Compare:process(cp2,ireset)beginif  ireset='0'  then                                      -- Reset OCR0 <= (others => '0');   elsif  cp2='1' and cp2'event  then                      -- Clock    if  ((((OCR0_Sel and iowe and not AS0)or                              -- Synchronous non PWM mode 		(OCR0UB and not OCR0UB_Tmp and PCK0 and AS0))and not PWM0)or      -- Asynchronous non PWM mode		(TCNT0(7) and TCNT0(6) and TCNT0(5) and TCNT0(4) and TCNT0(3) and TCNT0(2) and TCNT0(1) and TCNT0(0) and PWM0 and TCNT0_En)) -- Reload OCR0 with new value when TCNT0=0xFF (for PWM)		 ='1' then     -- Clock enable ??!!	  OCR0 <= OCR0_In;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人一区二区三区视频在线观看| 日本美女一区二区三区视频| 欧美变态tickle挠乳网站| 色94色欧美sute亚洲线路一久| 不卡在线观看av| 97精品国产露脸对白| 99国产精品久| 欧洲精品中文字幕| 欧美乱熟臀69xxxxxx| 日韩一区二区三区四区五区六区| 制服.丝袜.亚洲.中文.综合| 在线不卡的av| 亚洲精品在线免费播放| 欧美高清在线一区二区| 亚洲欧美日韩国产综合在线| 中文字幕一区二区三区蜜月 | 青青草伊人久久| 日本成人在线网站| 国产一区二区调教| 91在线国产福利| 欧美在线观看视频在线| 91精品国产高清一区二区三区蜜臀| 91精品国产丝袜白色高跟鞋| 久久综合一区二区| 日本人妖一区二区| 国产一区不卡精品| 91九色最新地址| 日韩欧美在线观看一区二区三区| 久久午夜色播影院免费高清| 亚洲色图19p| 蜜臀a∨国产成人精品| 国产夫妻精品视频| 欧美日韩国产影片| 日本一区二区电影| 男男gaygay亚洲| www.欧美日韩| 欧美成人a∨高清免费观看| 国产精品家庭影院| 久久成人av少妇免费| 97se狠狠狠综合亚洲狠狠| 日韩午夜电影在线观看| 欧美国产日韩a欧美在线观看| 亚洲国产综合91精品麻豆| 美国十次综合导航| 色8久久人人97超碰香蕉987| 欧美va亚洲va在线观看蝴蝶网| 综合久久一区二区三区| 蜜桃视频第一区免费观看| 91色视频在线| 中文一区在线播放| 久久99久国产精品黄毛片色诱| 91福利视频久久久久| 久久久九九九九| 九九精品一区二区| 欧美视频在线不卡| 综合网在线视频| 成人免费看黄yyy456| 精品国精品自拍自在线| 午夜激情一区二区三区| 色噜噜狠狠成人网p站| 中文字幕欧美日本乱码一线二线| 老司机免费视频一区二区三区| 欧美在线观看你懂的| 国产精品水嫩水嫩| 国产精品18久久久久久vr| 日韩一区国产二区欧美三区| 亚洲福利一区二区| 欧美少妇性性性| 一区二区三区**美女毛片| 99久久伊人网影院| 中文字幕制服丝袜成人av | 亚洲国产精品精华液2区45| 青青国产91久久久久久| 91精品国产91久久综合桃花| 亚洲图片欧美综合| 欧美性色黄大片| 亚洲一区中文在线| 欧美日韩国产综合视频在线观看| 亚洲一区在线电影| 欧美精品xxxxbbbb| 日韩专区欧美专区| 精品久久久久久久久久久久久久久 | 国产成人av电影在线| 国产亚洲午夜高清国产拍精品 | 一本大道av伊人久久综合| 自拍偷拍亚洲激情| 欧美中文字幕一区二区三区 | 国产精品久久精品日日| 暴力调教一区二区三区| 亚洲蜜臀av乱码久久精品蜜桃| 色悠悠久久综合| 婷婷久久综合九色国产成人| 91精品欧美综合在线观看最新| 日韩电影在线观看网站| 欧美电视剧在线观看完整版| 久久国产日韩欧美精品| 国产欧美综合色| 欧洲视频一区二区| 久久aⅴ国产欧美74aaa| 国产精品色噜噜| 日本高清不卡一区| 麻豆高清免费国产一区| 国产午夜精品久久| 欧美专区在线观看一区| 狠狠色丁香久久婷婷综合_中| 国产区在线观看成人精品| 91浏览器入口在线观看| 蜜臀久久99精品久久久久久9| 精品国产乱码久久久久久蜜臀| 国产69精品一区二区亚洲孕妇| 亚洲精品一二三| 精品免费国产一区二区三区四区| 成人丝袜18视频在线观看| 偷窥国产亚洲免费视频| 国产欧美日韩卡一| 欧美性受xxxx| 波多野结衣中文字幕一区| 日韩高清一级片| **性色生活片久久毛片| 日韩一区二区三区在线视频| 大尺度一区二区| 久久超碰97中文字幕| 亚洲一区在线电影| 国产精品丝袜在线| 欧美mv日韩mv亚洲| 欧美性xxxxxx少妇| 成人福利电影精品一区二区在线观看| 婷婷综合久久一区二区三区| 中文字幕日韩欧美一区二区三区| 欧美一卡2卡三卡4卡5免费| 色综合天天综合网国产成人综合天| 久久99久久久久| 日韩黄色小视频| 一区二区欧美国产| 一区二区三区自拍| 成人欧美一区二区三区视频网页 | 国产伦精品一区二区三区免费迷| 亚洲激情在线激情| 18欧美亚洲精品| 国产精品久久久久毛片软件| 精品少妇一区二区三区在线视频| 欧美日韩一区三区| 欧美亚洲另类激情小说| 91网址在线看| 97久久精品人人澡人人爽| 成人国产电影网| 成人成人成人在线视频| 国产成人av一区二区三区在线 | 欧美一区二区三区影视| 56国语精品自产拍在线观看| 在线一区二区三区四区| 91首页免费视频| 色视频成人在线观看免| 91福利资源站| 欧美亚洲日本国产| 欧美美女激情18p| 欧美一区二区三区的| 日韩亚洲欧美综合| 精品国产123| 国产欧美一区二区在线| 18涩涩午夜精品.www| 一区二区三区四区精品在线视频| 亚洲精选免费视频| 午夜在线电影亚洲一区| 爽爽淫人综合网网站| 免费看欧美美女黄的网站| 国内精品第一页| 成人激情小说网站| 91福利精品视频| 日韩色在线观看| 国产日韩欧美一区二区三区综合| 国产精品午夜免费| 亚洲狠狠爱一区二区三区| 轻轻草成人在线| 粉嫩av亚洲一区二区图片| 91免费视频大全| 337p亚洲精品色噜噜| 欧美精品一区在线观看| 国产精品国产自产拍高清av| 亚洲综合一二区| 国内精品自线一区二区三区视频| 丁香婷婷综合激情五月色| 91免费版pro下载短视频| 欧美久久久一区| 久久久www成人免费无遮挡大片| 国产精品欧美一区喷水| 天天av天天翘天天综合网| 国产伦精品一区二区三区视频青涩| 91啪亚洲精品| 欧美不卡激情三级在线观看| 中文字幕五月欧美| 国内一区二区视频| 欧美在线综合视频| 国产午夜精品美女毛片视频| 免费在线欧美视频| 一本久道久久综合中文字幕| 中文字幕在线不卡国产视频| 欧美午夜片在线观看| 91老师国产黑色丝袜在线| 日韩你懂的在线播放|