Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
movlw 0x38
movwf T3CON
list p=18F1320
include <p18F1320.inc>
CONFIG OSC = INTIO1, WDT = OFF, LVP = OFF, DEBUG = ON
Axis_Port Equ PORTB ; Set Axis_Port to Equal PortB
Axis_Tris Equ TRISB ; Set Axis_Tris to Equal TrisB
X_Axis Equ 3 ; Set X_Axis to Equal 3
org 0x0000
Init
movlw 0x72 ; 8MHz clock select
movwf OSCCON
clrf Axis_Tris
bsf Axis_Tris, X_Axis
[B] movlw 0x38
movwf T3CON[/B]
Main
bcf T3CON, TMR3ON
clrf TMR3L
clrf TMR3H
bcf PIR1, CCP1IF
movlw 0x45
movwf CCP1CON
bcf PIR1, CCP1IF
Loop1
btfss PIR1, CCP1IF
goto Loop1
bsf T3CON, TMR3ON
bcf PIR1, CCP1IF
movlw 0x44
movwf CCP1CON
Loop2
btfss PIR1, CCP1IF
goto Loop2
bcf T3CON, TMR3ON
bcf PIR1, CCP1IF
goto Main
End
hi,
When running in the Oshonsoft sim, if I toggle pin RB3 the program runs from loop1 thru loop2 then back to main, thru to loop1. Waiting for the next RB3 toggle.
So its trying to work..![]()
Any luck with it?
I originally assumed that, but then looking into the basic stamp usage of PULSIN, I found that it returned values in 10uS increments. So, 2500 = 25000uS = 25mS at level position. 31.25mS max position and 18.75mS min position.
hi atom,
Attached two programs.
AccPoll3.asm has LCD subr.
When you have reinstalled the Windows XP into your PC, get a free copy of 'hard drive clone'..
using say a spare 40gByte drive, you can make a clone of the hard drive.
For future crashes, just clone the 'backup' clone to the new drive.
If you keep the cloned backup, upto date, its just a few minutes to get back to normal
as all your working programs and data have been cloned.
Cool i actually have a spare 80 but my HD is 250GB and it would be a long pain to clone it but since im going to format it will only take like 7gb of space and ill clone then
I plug in the nearest Linux live disk I have at hand and use dd. It's dead simple to use and does a great job. It will copy any disk of any OS, damaged or not (if disk is damaged, set ignore error option), it doesn't care. It does a raw level copy, not file level. It's free and open source.I use the Seagate HD Wizard, from their website, get the version you can save on a CD.