参数资料
型号: DM163001
厂商: Microchip Technology
文件页数: 45/57页
文件大小: 0K
描述: BOARD DEMO PICDEM-1
标准包装: 3
其它名称: DM163001R
DM163001R-ND
PICDEM-1
Chapter 6. USART Demo – PIC17C42
The Service_perf routine services any interrupts received. The routine first
disables all peripheral interrupts, then checks the receive buffer for data. If the
receive buffer flag is set, the data is displayed on the LEDs by the
Service_recv routine. In either case the peripheral interrupts are
re-enabled and the routine exited.
Service_perf
bcf
movlb
btfsc
call
_peie
1
_rbfl
Service_recv
;
;
;
;
disable perf int
bank 1
RX buffer full?
yes then service
Exit_perf
;
bsf
retfie
_peie
; enable peripheral int
; This routine
Service_recv
movlb
services the serially received info.
0
End_recv
movfp
movwf
clrf
bsf
RCREG,WREG
PORTB
INTSTA, F
_rcie
; load received value
; clear all int
; enable receive
return
The Xmit routine increments file register COUNT and outputs it to the serial
port. It then waits for the key to be released before returning.
Xmit
Debounce
incf
movlb
movfp
COUNT, F
0
COUNT,TXREG
movpf
btfss
goto
return
PORTA,TEMP
TEMP,1
Debounce
;
; Wait for key release
? 1999 Microchip Technology Inc.
DS33015C-page 41
相关PDF资料
PDF描述
DM163004-LT BOARD DEMO PICDEM.NET
DM163005 KIT EVAL PIC16C432/433 LIN BUSS
DM163007 PICDEM CAN-LIN 1 FOR 18C658/858
DM163008 KIT MCP2120/2150 FOR IRDA COMM
DM163010 BOARD DEMO PICDEM USB
相关代理商/技术参数
参数描述
DM163002 制造商:Microchip Technology Inc 功能描述:PIC16C64/74 DEMO BOARD
DM163003 功能描述:开发板和工具包 - PIC / DSPIC PICDEM 3 PIC16C923/4 RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM163004 功能描述:开发板和工具包 - PIC / DSPIC USE 579-DM163004-LT RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM163004 制造商:Microchip Technology Inc 功能描述:DEMO BOARD W/TCP/IP ((NW))
DM163004-LT 功能描述:开发板和工具包 - PIC / DSPIC PICDEM.net Demo Kit w/o TCP/IP Lean Book RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压: