I was wondering if Mr. Taylor's great Instant Interrupts will work with the new PBP upgrade, specifically the 18F87J90 family?
Type: Posts; User: jderson; Keyword(s):
I was wondering if Mr. Taylor's great Instant Interrupts will work with the new PBP upgrade, specifically the 18F87J90 family?
I would like to use the new 16F723 in a remote control application that requires extremely low operating current. It would be good if I could run the PIC at 32khz. frequency and use the hardware...
Type "sun tracking" into the search tool.
Yes, I think it is a better solution all around! I am using 2.50b, Haven't installed the latest patch yet. Thanks again!
After adding the line to enable T1 within the Main loop, Mr. E's program does want I need. Thank you Mr. E!
Main:
wTimer1=0 ' clear Timer1
T1CON = %00000111
...
Bruce, I just did it again with exactly the same code as posted. The ckecksum is 3174 with 1000, and 3160 with 2000. Could you check your checksums? I'll check the incoming pulses with a scope later...
I obviously don't understand how the COUNT instruction works. The PBP manual says "The resolution of Period is in milliseconds. It tracks the oscillator
frequency based on the DEFINEd OSC." In the...
Adding the IF statement fixed it, and all is good! Thank you, Arrati.
Main:
count PORTC.5, 1000, W1
if W1 > 60 then
X1 = X1+(w1-60)
endif
lcdout $fe,1, dec W1
...
Arrati-
Thank you for your help. Although it looks good, your program does strange things! With no input on RC.5(LOW), X1 is all over the place, 126,76,20,216, etc., while W1 remains zero.
Yes, sorry. The last program displays 15, which is W1-60. But it does not become 30,45,60,75, etc.
Correction. Should have been W1 is greater than the constant.
Thanks for the help. I'm beginning to see the light, but my head's not completely pulled out yet! I know that on each pass, X1 will be greater than a constant(60 for example). I would like to total...
I'm trying to accumulate the number of counts that the COUNT command returns on each pass though Main. I feel really stupid, but this code always saves and displays the most recent count:
...
Thank you, Bruce. How do I fix it so it exits from the routine?
This program is supposed to count pulses on RB0 (INT), display count on LCD, and blink the LED. On power up, the LED blinks as it should, and the LCD displays zero, as it should. As pulses (~100hz)...
This is probably unique to my situation, but I thought I would share anyway:
I am trying to program AND operate my 16F946 from the PICkit 2, using ICSP. It programs fine, but the RBC interrupts...
I guess this isn't going to work then, because there are 300 subroutines in the INCLUDE file.
Well, I am wrong, again! The INCLUDE file compiles, but the main program doesn't display the number "1" in the first position when i use the INCLUDE file. When I move the contents of the INCLUDE file...
Yes, thank you! Changing the name in the main program from .bas to .pbp fixed it.
The INCLUDE file now compiles fine, but trying to compile the "Main" program causes the "Unable to open INCLUDE file NUM TEST.BAS" error. Both of the files shown below are located in c:\Program...
Right you are, Mr. Taylor! I had the dropdown wrong (it defaults to 16f628).
All is well once again, thank you! (I must be lacking film)
I have been trying to make an "INCLUDE" file containing all the various LCDDATA subroutines, but the compiler doesn't like it because LCDDATA is processor-specific, apparently. How is this done?
Fixed it, thank you!
Characters display perfectly now, thank you. Only one slight problem- when I compile with MPASM, I get the following warning: "Warning[219]c:\pbp\pbppic14.lib 905 : Invalid RAM location specified."...
Thank you, Darrel! You're GREAT, as usual.