参数资料
型号: DM163001
厂商: Microchip Technology
文件页数: 34/57页
文件大小: 0K
描述: BOARD DEMO PICDEM-1
标准包装: 3
其它名称: DM163001R
DM163001R-ND
PICDEM-1
PICDEM-1 User’s Guide
CheckOne
CO1
bsf
bsf
btfsc
goto
bcf
xorwf
btfss
bsf
STATUS,RP0
EECON1,RD
EECON1,RD
CO1
STATUS,RP0
EEDATA, F
STATUS,Z
GPFLAG,EEPERROR
;pg 1
;do a read
;rd done?
;no then loop
;pg 0
;compare?
;same then skip
;set error flag
return
BlinkLeds sets up the RTCC to interrupt upon time-out, turns off the LEDs,
and when one second has expired, toggles the LEDs.
BlinkLeds
call
InitRtcc
BL1
clrf
call
comf
goto
PORTB
SecondOver
PORTB, F
BL1
;turn off leds
;wait for 1/2 second
;toggle leds
InitRtcc assigns the prescaler to the RTCC and sets it for divide by 256. It
then enables interrupts and initializes the TIME register to eight.
InitRtcc
bsf
STATUS, RP0
movlw
movwf
bcf
clrf
movlw
movwf
movlw
movwf
B’10000111’
OPTION_REG
STATUS, RP0
TMR0
B’10100000’
INTCON
.8
TIME
;rtcc inc = tcylc/256
; /
;start time
;enable interrupts
; /
;initialize time
return
ServiceRtcc is the interrupt service routine and will be called each time the
RTCC times out. It first verifies that the interrupt was caused by the RTCC and
if it was it decrements TIME . Whether it was an RTCC interrupt or not, all
interrupts are cleared and the RTCC interrupt is enabled before returning.
ServiceRtcc
btfsc
decf
clrf
bsf
retfie
DS33015C-page 30
INTCON,T0IF
TIME, F
INTCON
INTCON,T0IE
;rtcc interrupt?
;yes then dec time
;clr all interrupts
;enable RTIE
;not zero then return
? 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 接口类型: 工作电源电压: