參數(shù)資料
型號: FACT002
英文描述: Fact 3 Documentation
中文描述: 事實3文件
文件頁數(shù): 3/4頁
文件大小: 49K
代理商: FACT002
1996 Microchip Technology Inc.
FACT003-page 3
Care and Feeding of PIC16C74 Source Code
Note:
This source code can be downloaded from our BBS from the "PICTIPS" library as filenameC74feed.ZIP.
LIST P=16C74
INCLUDE P16CXX.INC
Adcnt
equ
Adcntw equ
Temp
equ
org
goto
org
init
bcf
clrf
clrf
clrf
clrf
clrf
clrf
clrf
clrf
bsf
clrf
clrf
clrf
clrf
movlw
movwf
bcf
initad movlw
movwf
bsf
movlw
movwf
;new include file that comes with MPASM (on BBS)
;a/d converter pin count register
;a/d converter pin work register
;temporary data holding register seems we always need one
20h
21h
22h
0
init
5h
INTCON,7
PORTA
PORTB
PORTC
PORTD
PORTE
Adcnt
Adcntw
Temp
STATUS,RP0
TRISB
TRISC
TRISD
TRISE
0Bh
TRISA
STATUS,RP0
0C1h
ADCON0
STATUS,RP0
4
ADCON1
;go to where our code really begins
;begin program above interrupt service vector address
;make sure we don't get interrupted
;don't rely on anything, set port latches where you want them
;clear RAM registers we will be using
;switch to page 1 to access trisX registers
;set all ports outputs
;just for this program to minimize current
; and prevent pins from floating
;set analog inputs as inputs, the rest as outputs
;
;Internal RC A/D clock, input channel 0 , A/D on
;(user must wait for specified period before sampling)
;select page 1 of the SFRs
;setup a/d inputs on RA0, RA1 and RA3 with Vref = Vdd
;we are still in page 1 of the SFRs
;setup 2400 baud
initsci movlw 19h
movwf
movlw
movwf
bcf
movlw
movwf
clrf
clrf
initpwm movlw
movwf
movlw
movwf
movlw
movwf
bsf
movlw
movwf
bcf
mloop
movlw
call
movlw
call
movlw
call
clrf
adloop call
movf
xorlw
btfss
goto
goto
SPBRG
20h
TXSTA
STATUS,RP0
80h
RCSTA
TXREG
RCREG
4h
T2CON
0fh
CCP2CON
0fh
CCPR2L
STATUS,RP0
0ffh
PR2
STATUS,RP0
0dh
sendat
3ch
sendat
3eh
sendat
Adcnt
adcnvrt
Adcnt,0
2
STATUS,2
dopwm
mloop
;setup for async operations
;back to page 0 for a moment
;enable serial port operations and the associated pins
;clear our serial port buffers for start up
;setup T2CON with prescaler = 0 and timer2 on
;setup capture/compare to PWM mode standard resolution
;set compare register to half for now
;select page 1 for the PR2 register
;send a carriage return character
;begin main loop for data gathering and serial transmission
;these are our sync bytes to tell receiving micro a new
;sequence is beginning
;our first time through select AN0 pin
;go do a conversion and send the result
;get Adcnt into the W register
;(# determines number of AD inputs to scan)
;have we sampled all of the pins yet
;go adjust the PWM output
;all done go do it again
相關(guān)PDF資料
PDF描述
FADSFACT MPC860 and MPC850 Family Application Development Systems Facts Sheet
FALCON Series Regulators; Surface Mount Type: N; Package: TO-92; Number Of Pins: 3; Polarity: Positive; General Description: Three-Terminal Voltage Regulator; Features: Low current output; Note: Radial tape packing for automatic mounting; V OUT (%): (max +/-4)
FALL2003 High Efficiency Diodes (HEDs); Surface Mount Type: Y; Package: M-FLAT; Number Of Pins: 2; Application Scope: Switching mode power supply; Internal Connection: Single; T RR (ns): (max 35); Repetitive Peak Reverse Voltage V_RRM Max (V): (max 3); I O (A): (max 200)
FAN4113IS5 Voltage-Feedback Operational Amplifier
FAN4113IS5TR3 Voltage-Feedback Operational Amplifier
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
FACT-OR-MAINT-VXW-EP 制造商:Emerson Network Power 功能描述:MAINTENANCE FOR FACT-OR ON WTRB500 - Bulk
FACTORY CHARGES 制造商:Misc 功能描述:
FACTORY MODIFICATION 制造商:Teledyne Relays 功能描述:
FACTORYFLOOR 制造商:Opto 22 功能描述:Software, Factory Floor
FACTORYFLOOR MANUAL 制造商:Opto 22 功能描述:Manual, Factory Floor