参数资料
型号: QW1
厂商: TechTools
文件页数: 195/221页
文件大小: 0K
描述: PROGRAMMER PIC MCU QUICKWRITER
标准包装: 1
系列: QuickWriter™
类型: QuickWriter
适用于相关产品: PIC Micro? MCU
所含物品: 带在线串行编程缆线和可选 GANG 适配器的 MCU 编程器
产品目录页面: 660 (CN2011-ZH PDF)
配用: CBL-ICSP-ND - CABLE PROG QUICKWRITER SERIAL
QW-4SSOP18-ND - ADAPTER QUICKWRITER 4GANG 18SSOP
QW-4SSOP28-ND - ADAPTER QUICKWRITER 4GANG 28SSOP
QW-4SO8/14W-ND - ADAPT QUICKWRTR 4GANG 8/14SOIC W
QW-4SO8/14N-ND - ADAPT QUICKWRTR 4GANG 8/14SOIC N
QW-4SOIC18-ND - ADAPTER QUICKWRITER 4GANG 18SOIC
QW-4ZIF18-ND - ADAPTER QUICKWRITER 4-GANG 18ZIF
QW-4SOIC28-ND - ADAPTER QUICKWRITER 4GANG 28SOIC
QW-4PLCC44-ND - ADAPTER QUICKWRITER 4GANG 44PLCC
QW-4ZIF40/28-ND - ADAPT QUICKWRITER 4GANG 40/28ZIF
更多...
第1页第2页第3页第4页第5页第6页第7页第8页第9页第10页第11页第12页第13页第14页第15页第16页第17页第18页第19页第20页第21页第22页第23页第24页第25页第26页第27页第28页第29页第30页第31页第32页第33页第34页第35页第36页第37页第38页第39页第40页第41页第42页第43页第44页第45页第46页第47页第48页第49页第50页第51页第52页第53页第54页第55页第56页第57页第58页第59页第60页第61页第62页第63页第64页第65页第66页第67页第68页第69页第70页第71页第72页第73页第74页第75页第76页第77页第78页第79页第80页第81页第82页第83页第84页第85页第86页第87页第88页第89页第90页第91页第92页第93页第94页第95页第96页第97页第98页第99页第100页第101页第102页第103页第104页第105页第106页第107页第108页第109页第110页第111页第112页第113页第114页第115页第116页第117页第118页第119页第120页第121页第122页第123页第124页第125页第126页第127页第128页第129页第130页第131页第132页第133页第134页第135页第136页第137页第138页第139页第140页第141页第142页第143页第144页第145页第146页第147页第148页第149页第150页第151页第152页第153页第154页第155页第156页第157页第158页第159页第160页第161页第162页第163页第164页第165页第166页第167页第168页第169页第170页第171页第172页第173页第174页第175页第176页第177页第178页第179页第180页第181页第182页第183页第184页第185页第186页第187页第188页第189页第190页第191页第192页第193页第194页当前第195页第196页第197页第198页第199页第200页第201页第202页第203页第204页第205页第206页第207页第208页第209页第210页第211页第212页第213页第214页第215页第216页第217页第218页第219页第220页第221页
ClearView Assembler
189
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
PIC EXAMPLE PROGRAM: SIMPLE.SRC
June 8, 1992
This 16-word program is a very simple PIC application. Its only purpose
is to flash an LED at one of two rates. Normally, the LED flashes slowly.
However, if bit 0 of port A (RA0) is grounded, the LED flashes roughly twice
as fast.
As the program is written, it expects to run on a PIC16C54-RC/P. A push
button connects RA0 to ground (don’t forget a pull-up resistor from RA0 to
Vdd, perhaps 10K). A current-limited LED is connected from RA1 to ground
(330 ohms work well). For an oscillator, a 20 pF capacitor to ground and
a 4.7K resistor to Vcc are connected to OSC1 (OSC2 is left open). RTCC and
MCLR should be tied high. Lastly, power and ground are connected to Vdd
and Vss, respectively.
If you’re looking for a simple introduction to the PIC, this program should
help. Among other things, it shows the following basic concepts:
;
;
;
;
;
;
*
*
*
*
*
Setting device options
Setting the reset vector
Setting I/O pins as inputs or outputs
Using global labels
Using local labels (see “:Loop” below)
;
;
After you build the circuit described above, open the project file and select Run, the
LED should start flashing as soon as TDE's status line displays "Running".
; START OF PROGRAM
; Set the device type, oscillator type, watchdog timer status, and code
; protect status
DEVICE PIC16C54,RC_OSC,WDT_OFF,PROTECT_OFF
RESET
Start
;Set reset vector to address at Start
;(PIC will jump to this when reset)
Count0 equ
Count1 equ
10h
11h
clr
clr
Count0
Count1
;Assign labels to registers 10h & 11h
clr
RA
;Clear port before setting direction
;register
Start
mov
!RA,#00000001b ;Set data direction register for port A
;(make bit 0 an input)
;
; Loop 65536 times, then invert the LED
;
:Loop
djnz
Count0,:Loop ;Decrement Count0 until it reaches zero
djnz
Count1,:Loop ;Decrement Count1. If it’s not zero,
;jump back to :Loop
xor
RA,#00000010b ;Invert the LED (bit 1 of port A)
;
; Check button status. If it’s pressed, skip the additional delay and jump
; back to the first loop
;
ChkBtn jnb
? 2007 TechTools
RA.0,Start:Loop ;Jump to 1st loop if button is pressed
相关PDF资料
PDF描述
R0K502M12S000BE BOARD FOR R8C/M12A
R0K561668S000BE KIT STARTER FOR H8SX/1668
R0K570865S001BE KIT STARTER FOR SH7086
R0K571242S001BE KIT STARTER FOR SH7124
R0K571374S000BE KIT STARTER FOR SH7137
相关代理商/技术参数
参数描述
QW110 制造商:NTE Electronics 功能描述:Res Metal Film 100 Ohm 2% 1/4W ±200ppm/°C Conformal AXL Thru-Hole
QW1105BR 制造商:NTE Electronics 功能描述:1/4 Watt, Rn 55D, 1.05K Ohm 1% Metal Film Resistor- 25/Pkg
QW110BR 制造商:NTE Electronics 功能描述:1/4 Watt, Rn 55D, 100 Ohm 1% Metal Film Resistor- 25/Pkg 制造商:NTE Electronics 功能描述:Res Metal Film 100 Ohm 1% 1/4W ±100ppm/°C Conformal AXL Thru-Hole
QW110-BULK 制造商:NTE Electronics 功能描述:
QW111 制造商:NTE Electronics 功能描述:Res Metal Film 110 Ohm 2% 1/4W ±200ppm/°C Conformal AXL Thru-Hole