参数资料
型号: DM163001
厂商: Microchip Technology
文件页数: 46/57页
文件大小: 0K
描述: BOARD DEMO PICDEM-1
标准包装: 3
其它名称: DM163001R
DM163001R-ND
PICDEM-1
PICDEM-1 User’s Guide
6.6
Source Code – PIC17C42
list p=17c42
; TITLE Demo board software.
; PortB of the PIC17C42 is connected to the 8 leds and
; a switch (S1) is connected to the RTCC input. The software waits for
; S1 to be pressed at which point a counter is incremented
; an its value is transmitted through the serial port. The RX
; and TX lines (pins 2 and 3) must be shorted at the DB9 Connector so that
; the transmitted value is sent right back to the receive buffer.
; The receive interrupt is generated and the value in the
; receive buffer is displayed as a 8 bit value on port B.
; The net result is that every time S1 is pressed the LEDs will
; increment in a binary count.
;
COUNT equ 0x20
TEMP equ 0x19 ; Temporary storage location
;
;
#INCLUDE <p17C42.inc>
;
#INCLUDE <demo42.inc>
;
;
org 0
goto Start
;
org 0x0010 ; vector for rtcc interrupt
Rtcc_int
retfie ; return with ints enabled
;
org 0x0020 ; vector for peripheral interrupt
Perf_int
goto Service_perf ; service the interrupts
;
org 0x0030
;
Start ; start main program
movlw 0x20 ; clear ram space
movfp WREG,FSR0 ; use indirect addressing
Start1
clrf INDF0, F ; clear ram
incfsz FSR0, F ; from 0x20 to 0xff
goto Start1 ; /
call Init_ports ; initialize all ports
call Init_serial ; initialize serial port
Loop
movpf PORTA,TEMP ; get porta
DS33015C-page 42
? 1999 Microchip Technology Inc.
相关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 接口类型: 工作电源电压: