娇小w搡bbbb搡bbb,《第一次の人妻》,中国成熟妇女毛茸茸,边啃奶头边躁狠狠躁视频免费观看

; Description: Receive IR Remote control NEC code
list p=12C508A, f=INHX8M, r=DEC, b=8, C=80
__config (_MCLRE_OFF & _CP_ON & _WDT_OFF & _IntRC_OSC)
__idlocs H'0001'

INDF equ 0x00
TMR0 equ 0x01
PCL equ 0x02
STATUS equ 0x03
FSR equ 0x04
OSCCAL equ 0x05
GPIO equ 0x06

Bit7 equ 0x07
Bit6 equ 0x06
Bit5 equ 0x05
Bit4 equ 0x04
Bit3 equ 0x03
Bit2 equ 0x02
Bit1 equ 0x01
Bit0 equ 0x00

W equ 0x00
F equ 0x01

; STATUS Register
GPWUF equ Bit7
PA0 equ Bit5
NOT_TO equ Bit4
NOT_PD equ Bit3
Z equ Bit2
DC equ Bit1
C equ Bit0

; GPIO Register
bIRDataIn equ Bit0
bSystemPowerOut0 equ Bit1

; Configuration Bits
_MCLRE_ON equ 0x0fff
_MCLRE_OFF equ 0x0fef
_CP_ON equ 0x0ff7
_CP_OFF equ 0x0fff
_WDT_ON equ 0x0fff
_WDT_OFF equ 0x0ffb
_LP_OSC equ 0x0ffc
_XT_OSC equ 0x0ffd
_IntRC_OSC equ 0x0ffe
_ExtRC_OSC equ 0x0fff

; Macro Definition
PowerDownSystem MACRO
bcf GPIO, bSystemPowerOut0
ENDM

PowerUpSystem MACRO
bsf GPIO, bSystemPowerOut0
ENDM

; General Purpose Register
DelayCounter1 equ 0x07
DelayCounter2 equ 0x08

AddrCode equ 0x10
AddrCodeNot equ 0x11
DataCode equ 0x12
DataCodeNot equ 0x13

Result equ 0x14
PowerState equ 0x15
ButtonTemp equ 0x16

Bit equ 0x17
GetBitCounter equ 0x18
GetBitCountLo equ 0x19
GetBitCountHi equ 0x1A
PausecountLo equ 0x1B
PausecountHi equ 0x1C
errorflag equ 0x1D
; Constant Definition
cPowerOn equ 0xFF
cPowerOff equ 0x00
cPowerHi equ 0x82
cPowerLo equ 0x7D
cAddressHi equ 0xF0
cAddressLo equ 0x0F
;==============================================================================
org 0000h
movwf OSCCAL
goto main
;------------------------------------------------------------------------------
; Function: pDelay1ms
; Overview: This is a very accurate 1ms delay for a 4MHz clock.
;------------------------------------------------------------------------------
pDelay1ms:
movlw .198
movwf DelayCounter1
nop
nop
tagDelay1ms_01:
nop
nop
decfsz DelayCounter1, F
goto tagDelay1ms_01
retlw 0x00
;------------------------------------------------------------------------------
; Function: pDelay250ms
; Overview:
;------------------------------------------------------------------------------
pDelay250ms:
movlw .250
movwf DelayCounter2
tagDelay250ms_01:
call pDelay1ms
decfsz DelayCounter2, F
goto tagDelay250ms_01
retlw 0x00

;------------------------------------------------------------------------------
; Function: pGetBit
; Overview:
;------------------------------------------------------------------------------
pGetBit:
tagBitStart:
clrf errorflag
clrf GetBitCountLo
clrf GetBitCountHi

tagBitWait:
btfss GPIO, bIRDataIn
goto tagBitWait

tagBitLoop:
incfsz GetBitCountLo, F
goto tagBitNext
incf GetBitCountHi, F
movlw .3
subwf GetBitCountHi,W
btfsc STATUS,C
goto errorret
tagBitNext:
btfsc GPIO, bIRDataIn
goto tagBitLoop

movlw .1
subwf GetBitCountHi, W
btfsc STATUS, Z
goto tagBitIsOne

tagBitIsZero:
movlw 0x00
movwf Bit
goto tagBitDone
tagBitIsOne:
movlw 0xff
movwf Bit
goto tagBitDone

tagBitDone:
retlw 0x00
errorret:
bsf errorflag,Bit0
retlw 0x00
;------------------------------------------------------------------------------
;==============================================================================
; Program Main Entry.
;==============================================================================
main:
movlw B'11000111'
option

movlw B'11111101'
tris GPIO

;PowerUpSystem
movlw B'11111111'
movwf GPIO

movlw cPowerOn
movwf PowerState

initial:
clrf AddrCode
clrf AddrCodeNot
clrf DataCode
clrf DataCodeNot

doIrCheck:
btfsc GPIO, bIRDataIn
goto doIrCheck

;================================================
;call pGetBit
leaderWait:
btfss GPIO, bIRDataIn
goto leaderWait
call pGetBit
pauseWait:
;btfsc GPIO, bIRDataIn
;goto pauseWait
movf GetBitCountLo,W
movwf PausecountLo
movf GetBitCountHi,W
movwf PausecountHi
movlw 0x02
subwf PausecountHi,W
btfss STATUS,Z
;btfss PausecountHi,Bit1
goto doIrCheck
;btfsc GPIO,bIRDataIn
;goto

;================================================
AddrBit0:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto AddrBit0Zero

AddrBit0One:
bsf AddrCode, Bit0
goto AddrBit1

AddrBit0Zero:
bcf AddrCode, Bit0
;------------------------------------------------
AddrBit1:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto AddrBit1Zero

AddrBit1One:
bsf AddrCode, Bit1
goto AddrBit2

AddrBit1Zero:

bcf AddrCode, Bit1
;------------------------------------------------
AddrBit2:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto AddrBit2Zero

AddrBit2One:
bsf AddrCode, Bit2
goto AddrBit3

AddrBit2Zero:
bcf AddrCode, Bit2
;------------------------------------------------
AddrBit3:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto AddrBit3Zero

AddrBit3One:
bsf AddrCode, Bit3
goto AddrBit4

AddrBit3Zero:
bcf AddrCode, Bit3
;------------------------------------------------
AddrBit4:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto AddrBit4Zero

AddrBit4One:
bsf AddrCode, Bit4
goto AddrBit5

AddrBit4Zero:
bcf AddrCode, Bit4
;------------------------------------------------
AddrBit5:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto AddrBit5Zero

AddrBit5One:
bsf AddrCode, Bit5
goto AddrBit6

AddrBit5Zero:
bcf AddrCode, Bit5
;------------------------------------------------
AddrBit6:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto AddrBit6Zero

AddrBit6One:
bsf AddrCode, Bit6
goto AddrBit7

AddrBit6Zero:
bcf AddrCode, Bit6
;------------------------------------------------
AddrBit7:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto AddrBit7Zero

AddrBit7One:
bsf AddrCode, Bit7
goto AddrNotBit0

AddrBit7Zero:
bcf AddrCode, Bit7
;++++++++++++++++++++++++++++++++++++++++++++++++
AddrNotBit0:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto AddrNotBit0Zero

AddrNotBit0One:
bsf AddrCodeNot, Bit0
goto AddrNotBit1

AddrNotBit0Zero:
bcf AddrCodeNot, Bit0
;------------------------------------------------
AddrNotBit1:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto AddrNotBit1Zero

AddrNotBit1One:
bsf AddrCodeNot, Bit1
goto AddrNotBit2

AddrNotBit1Zero:

bcf AddrCodeNot, Bit1
;------------------------------------------------
AddrNotBit2:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto AddrNotBit2Zero

AddrNotBit2One:
bsf AddrCodeNot, Bit2
goto AddrNotBit3

AddrNotBit2Zero:
bcf AddrCodeNot, Bit2
;------------------------------------------------
AddrNotBit3:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto AddrNotBit3Zero

AddrNotBit3One:
bsf AddrCodeNot, Bit3
goto AddrNotBit4

AddrNotBit3Zero:
bcf AddrCodeNot, Bit3
;------------------------------------------------
AddrNotBit4:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto AddrNotBit4Zero

AddrNotBit4One:
bsf AddrCodeNot, Bit4
goto AddrNotBit5

AddrNotBit4Zero:
bcf AddrCodeNot, Bit4
;------------------------------------------------
AddrNotBit5:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto AddrNotBit5Zero

AddrNotBit5One:
bsf AddrCodeNot, Bit5
goto AddrNotBit6

AddrNotBit5Zero:
bcf AddrCodeNot, Bit5
;------------------------------------------------
AddrNotBit6:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto AddrNotBit6Zero

AddrNotBit6One:
bsf AddrCodeNot, Bit6
goto AddrNotBit7

AddrNotBit6Zero:
bcf AddrCodeNot, Bit6
;------------------------------------------------
AddrNotBit7:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto AddrNotBit7Zero

AddrNotBit7One:
bsf AddrCodeNot, Bit7
goto DataBit0

AddrNotBit7Zero:
bcf AddrCodeNot, Bit7
;++++++++++++++++++++++++++++++++++++++++++++++++
DataBit0:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto DataBit0Zero

DataBit0One:
bsf DataCode, Bit0
goto DataBit1

DataBit0Zero:
bcf DataCode, Bit0
;------------------------------------------------
DataBit1:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto DataBit1Zero

DataBit1One:
bsf DataCode, Bit1
goto DataBit2

DataBit1Zero:

bcf DataCode, Bit1
;------------------------------------------------
DataBit2:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto DataBit2Zero

DataBit2One:
bsf DataCode, Bit2
goto DataBit3

DataBit2Zero:
bcf DataCode, Bit2
;------------------------------------------------
DataBit3:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto DataBit3Zero

DataBit3One:
bsf DataCode, Bit3
goto DataBit4

DataBit3Zero:
bcf DataCode, Bit3
;------------------------------------------------
DataBit4:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto DataBit4Zero

DataBit4One:
bsf DataCode, Bit4
goto DataBit5

DataBit4Zero:
bcf DataCode, Bit4
;------------------------------------------------
DataBit5:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto DataBit5Zero

DataBit5One:
bsf DataCode, Bit5
goto DataBit6

DataBit5Zero:
bcf DataCode, Bit5
;------------------------------------------------
DataBit6:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto DataBit6Zero

DataBit6One:
bsf DataCode, Bit6
goto DataBit7

DataBit6Zero:
bcf DataCode, Bit6
;------------------------------------------------
DataBit7:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto DataBit7Zero

DataBit7One:
bsf DataCode, Bit7
goto DataNotBit0

DataBit7Zero:
bcf DataCode, Bit7
;++++++++++++++++++++++++++++++++++++++++++++++++
DataNotBit0:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto DataNotBit0Zero

DataNotBit0One:
bsf DataCodeNot, Bit0
goto DataNotBit1

DataNotBit0Zero:
bcf DataCodeNot, Bit0
;------------------------------------------------
DataNotBit1:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto DataNotBit1Zero

DataNotBit1One:
bsf DataCodeNot, Bit1
goto DataNotBit2

DataNotBit1Zero:

bcf DataCodeNot, Bit1
;------------------------------------------------
DataNotBit2:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto DataNotBit2Zero

DataNotBit2One:
bsf DataCodeNot, Bit2
goto DataNotBit3

DataNotBit2Zero:
bcf DataCodeNot, Bit2
;------------------------------------------------
DataNotBit3:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto DataNotBit3Zero

DataNotBit3One:
bsf DataCodeNot, Bit3
goto DataNotBit4

DataNotBit3Zero:
bcf DataCodeNot, Bit3
;------------------------------------------------
DataNotBit4:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto DataNotBit4Zero

DataNotBit4One:
bsf DataCodeNot, Bit4
goto DataNotBit5

DataNotBit4Zero:
bcf DataCodeNot, Bit4
;------------------------------------------------
DataNotBit5:
call pGetBit
btfsc errorflag,Bit0
goto doIrCheck
btfss Bit, Bit7
goto DataNotBit5Zero

[1] [2]
關(guān)鍵字:PIC12C508A  控制模型  12C508A 引用地址:用PIC12C508A控制模型源程序

上一篇:PIC16C712功能、特點、應(yīng)用領(lǐng)域與替代16C711方法、注意事項
下一篇:16c54四位LED時鐘顯示程序

推薦閱讀

華俊彪,馬鞍山恒瑞智能科技有限公司(以下簡稱恒瑞智能科技)董事長。在昆山商海闖蕩打拼多年,練就了特有的敏銳商業(yè)嗅覺,精明、務(wù)實的他,將企業(yè)經(jīng)營得風(fēng)生水起。9月中旬,躺在病床上的華俊彪迫不及待地與華夏幸福簽訂了協(xié)議,決定將企業(yè)搬遷至和縣產(chǎn)業(yè)新城。9月底,剛出院的他,顧不上休息,第一時間便出現(xiàn)在和縣產(chǎn)業(yè)新城,馬不停蹄地調(diào)研新廠區(qū)周邊環(huán)...
  近日,在位于北京的信通院實驗室,中興通訊V2X-OBU(車載單元,V2X意為Vehicle to Everything,指在自動駕駛框架下汽車將與所有的道路參與者進行通信)完成了包含三大部分的V2X協(xié)議一致性(PC5接口安全、網(wǎng)絡(luò)層和消息層的協(xié)議一致性)測試用例共66條,實驗結(jié)果全部通過。這標(biāo)志著,中興通訊V2X-OBU通過了最關(guān)鍵的一個里程碑,已為10月上海“四跨”互...
繼上周 Verizon宣布其推動5G部署及技術(shù)創(chuàng)新的相關(guān)進展后,Verizon、愛立信和Qualcomm Technologies, Inc.聯(lián)合進行了全球首次峰值速率高達5.06Gbps的5G連接演示,繼續(xù)推動5G技術(shù)向前發(fā)展。利用5G毫米波頻譜和載波聚合(這一技術(shù)可將頻譜上多個信道聚合,為無線網(wǎng)絡(luò)數(shù)據(jù)傳輸帶來更高效率),上述三家公司聚合八個獨立信道實現(xiàn)了數(shù)千兆比特速率。 Verizon終...
集微網(wǎng)消息,10月22日,國內(nèi)EDA、濾波器行業(yè)的領(lǐng)軍企業(yè)芯和半導(dǎo)體的年度用戶大會XTUG(Xpeedic Technology Users Group)正式召開。會議期間,芯和半導(dǎo)體高級副總裁代文亮博士發(fā)表了主題演講,并宣布芯和EDA 2021版本正式發(fā)布。代文亮首先介紹了芯和推出的建模、仿真、分析和測試等EDA平臺工具。自2010年成立至今,芯和半導(dǎo)體已經(jīng)擁有一系列自主知識產(chǎn)...

史海拾趣

問答坊 | AI 解惑

F題

本帖最后由 paulhyde 于 2014-9-15 09:00 編輯 數(shù)字幅頻均衡怎么設(shè)計啊  …

查看全部問答∨

求幫寫一個VGA彩色信號控制器設(shè)計

一.設(shè)計要求: 要求用一片fpga ,vga 顯示器和實驗箱中的vga接口共同實現(xiàn)多種彩色的顯示。 其功能如下: (1) 根據(jù)vga工業(yè)標(biāo)準(zhǔn),產(chǎn)生正確的行場掃描信號; (2) 有顯示控制鍵,每按動一次按鍵,輸出全屏改變一種顏色,循環(huán)顯示顏色分別為: ...…

查看全部問答∨

在WIN CE下用WIN 32顯示BMP圖片!

我是個新手。。。想在WIN CE下用WIN 32顯示BMP圖片!。。。不用MFC。。。 這個應(yīng)該要怎么實現(xiàn)啊!!! 能不能給個例子看看。。。先謝謝啦 …

查看全部問答∨

請問vc6編譯的程序能在wince4.2上用嗎?

如何調(diào)試呢?平臺已經(jīng)有人做了,我需要在上面做應(yīng)用程序,請問能用vc6寫嗎?是不是編譯成release版本直接下進去呢?還是可以編譯成debug然后調(diào)試呢? …

查看全部問答∨

求助ARM

有做arm方面的嗎,我們公司剛用ARM,公司做了一塊板子,用到了AT91RM9200,這款芯片片內(nèi)沒有flash,我們外擴了個三個flash,現(xiàn)在ulink能識別到內(nèi)核,但程序下不進去,各位有什么建議的話麻煩說一下,謝謝。 我沒有可用分了,請原諒。…

查看全部問答∨

用c52生成UDP效驗碼的問題

UDP效驗碼的格式是每16為進行反碼求和運算,有進位則結(jié)果再加上1,最后得到一個16位的效驗碼。我的問題是這16位求和的具體方向是怎樣的,最后按什么順序放在16的效驗碼字段里? 比如:設(shè)cr為16效驗碼初值為0(類型unsigned int),數(shù)據(jù)包中的16位 ...…

查看全部問答∨

友善之臂 mini2440 + 3.5"LCD 套餐 300轉(zhuǎn)讓!

本帖最后由 ddllxxrr 于 2016-1-7 17:10 編輯 自降100哈,遇到高興的事了,嘿嘿 300元轉(zhuǎn)讓友善之臂 mini2440 + 3.5"LCD 套餐 全新的,買來后就沒有怎么用過,詳細(xì)介紹請看: 有意的請聯(lián)系我,賣價300元,東西絕對全新的 QQ 653338192 另 ...…

查看全部問答∨

智能車飛思卡爾MC9S12DG128開發(fā)板 個人閑置

智能車飛思卡爾MC9S12DG128開發(fā)板 個人閑置                        本人為在校學(xué)生,曾參加過2009年、2010年飛思卡爾智能車競賽。由于現(xiàn)在正在備戰(zhàn)考研。決定出售全套 智能車飛思卡 ...…

查看全部問答∨

MC9S12XS128MAA,編寫兩路速度測試,在液晶屏上同時顯示這倆路速度值

程序整體思路 K1鍵按下,一只led燈開始閃爍,同時啟動測試速度程序,能夠在液晶屏上顯示所測速度,如果速度在20km/h-60km/h之間,則從相應(yīng)口輸出10hz方波脈沖,在檢測脈沖儀上顯示 測試速度具體思路(兩路速度測試,兩路速度顯示) 由V=(2∏R*f) ...…

查看全部問答∨

請問TI網(wǎng)站中430的示例程序怎么找的?

網(wǎng)站進去不知道去哪找了,msp430f5438的,求各位老師指導(dǎo)下!…

查看全部問答∨
小廣播
設(shè)計資源 培訓(xùn) 開發(fā)板 精華推薦

最新單片機文章

 
EEWorld訂閱號

 
EEWorld服務(wù)號

 
汽車開發(fā)圈

 
機器人開發(fā)圈

電子工程世界版權(quán)所有 京ICP證060456號 京ICP備10001474號-1 電信業(yè)務(wù)審批[2006]字第258號函 京公網(wǎng)安備 11010802033920號 Copyright ? 2005-2025 EEWORLD.com.cn, Inc. All rights reserved
主站蜘蛛池模板: 吉水县| 宜宾市| 永嘉县| 濮阳县| 开远市| 绩溪县| 黑龙江省| 温宿县| 仲巴县| 抚松县| 手游| 连江县| 息烽县| 曲阳县| 丹江口市| 澎湖县| 安达市| 楚雄市| 余庆县| 康乐县| 文水县| 宁海县| 张家界市| 客服| 彭水| 额济纳旗| 安庆市| 武陟县| 青神县| 东平县| 靖西县| 新竹县| 舒兰市| 阳东县| 武功县| 浠水县| 汉源县| 丹棱县| 商南县| 安顺市| 兴安县|