datasheetbank_Logo
전자부품 반도체 검색엔진( 무료 PDF 다운로드 ) - 데이터시트뱅크

AN662 데이터 시트보기 (PDF) - Microchip Technology

부품명
상세내역
일치하는 목록
AN662 Datasheet PDF : 17 Pages
1 2 3 4 5 6 7 8 9 10 Next Last
AN665
002F 0C0F
0030 0032
0031
0031 02F2
0032 0A31
0033 0516
0034 0216
0035 0006
0036 0800
0037
0037 0034
0038
0038 0706
0039 0A38
003A 0403
003B 0922
003C 0C08
003D 002F
003E 0073
003F
003F 0334
0040 0603
0041 02B3
0042 0922
0043 02EF
0044 0A3F
0045 02B3
0046 0333
0047 0922
0048 0503
0049 0A22
00181
00182
movlw .15
00183
movwf TIMELO
00184 SBitT2
00185
decfsz TIMELO,F
; 45us loop (data stable)
00186
goto SBitT2
00187
00188
bsf
GPIOTEMP,PCCLK ; clk rise
00189
movf GPIOTEMP,W
00190
tris GPIO
00191
retlw 0
00192
00193 ;**********************************************************************
00194 ;* SendKEY
00195 ;*
sends a scan code to the PC
00196 ;*
00197 ;*
Input Variables:
00198 ;*
W
00199 ;*
Output Variables:
00200 ;*
none
00201 ;**********************************************************************
00202 ;
00203 SendKEY
00204
movwf AUX
; temp storage
00205
00206 ; wait PC ready
00207 SendW
00208
btfss GPIO,PCCLK ; test PCCLK
00209
goto SendW
; loop until HIGH
00210
00211 ; PC request ?
00212 ;
btfss DATA
; PC pull down Data?
00213 ;
goto RecKEY
; go receive first
00214
00215 ; send start bit
00216
bcf
STATUS,C
00217
call SendBit
00218
00219 ; than shift out 8 bit LSB first
00220
movlw .8
00221
movwf BITCOUNT
00222
clrf PARITY
00223
00224 SBitL
00225
rrf
AUX,F
; next bit
00226
btfsc STATUS,C
00227
incf PARITY,F ; count parity
00228
call SendBit
00229
decfsz BITCOUNT,F
00230
goto SBitL
; loop for 8 bit
00231
00232
incf PARITY,F ; parity odd
00233
rrf
PARITY,F ; send parity Bit
00234
call SendBit
00235
00236
bsf
STATUS,C
00237
goto SendBit
; send stop bit (high = released)
00238
00239
00240 ;**********************************************************************
00241 ;* Receive
00242 ;*
receives first 64 bit transmitted by an HCS300 encoder
00243 ;*
simplified to operate with 400us PWM only
00244 ;*
00245 ;*
Input Variables:
00246 ;*
none
DS00665A-page 10
ã 1997 Microchip Technology Inc.

Share Link: 

datasheetbank.com [ Privacy Policy ] [ Request Datasheet ] [ Contact Us ]