mnay thanks to all who provided help. I'm having a tough time...but only due to my ignorance. Archangel, I like the UART use of Pickit2...I need to learn how to use that to help debug. Looking...
Type: Posts; User: johnnylynx; Keyword(s):
mnay thanks to all who provided help. I'm having a tough time...but only due to my ignorance. Archangel, I like the UART use of Pickit2...I need to learn how to use that to help debug. Looking...
Excuse my last reply...Henrik's number of 3020 gets me a new tap setting of 127 (perfect empty value) but when the tank is full (8" away from the sensor) the new tap reading is 42 (not 0 or 1). If I...
Thanks guys. I'm trying to understand the math here, help me out.
What is the difference between * and **? I can't seem to find something on this forum that explains this. How does the math...
Sorry, and yes, runs once to establish one depth value based on the average of 10 readings. I have an external system that cycles the power every 5 min ultimately giving me an average reading every 5...
Have I defined my variables correctly?
92 is my rank full value, 466 is zero water in tank, 364 is 8" of water in tank which is my safe empty value.
I'm a newbie when it comes to programming...with some previous experience, but getting old and remembering less...
I'm creating a depth meter using a MAXSONAR ranger - using the PW output. I've...
Yep, time for me to get some rest...Can't believe I missed that. Now I can rest peacefully.
Thanks!
Hi,
Thanks for the quick feedback - Question though - why would it work if all three or two CALL lines are active?
I tried changing the CALL to GOSUB and it still didn't work. If I add a...
OK, I've been out of the PIC stuff for about a year now and have noticed some significant brain drain (on my behalf):)
I am just trying to get back into the PICbasic with some simple LED blinking...
It worked. Thanks again. I think I'll read some Tom Clancey now...
Dave, thanks for your help, really appreciate it. I've been spending too many hours (very unproductive ones at that) trying to learn this thing called picbasic, and, as I'm sure you know, after you...
I kinda thought that's what I had to do...just didn't believe it was that simple!
So I did that...even though I've 'told' the chip to run the external crystal and defined osc 4...I'm not blinking...
I'm not sure if you saw the photo I posted above...I'm using 2-27pF capacitors with the crystal. How can I confirm that the chip is running at 20Mhz?
John.
Ah, makes sense.
So in theory, if I use CFG_HS_OSC to get the 12F683 to use the external oscillator on pins 2&3 and use the DEFINE OSC 4 command...then the LED's should blink at the rate of...
OK, I tried the above but didn't work.
Trial 1:
- using the default setting of 4 mhz, the LED's flashed at rate 'X'
Trial 2:
- using the osccon = %01110000 (8 mhz)
- The LED's flashed at...
I just looked at the link...Great information! Thanks for that.
I'll try your suggestions above today, really appreciate that too.
Do you know if the crystal and capacitor setup is 'touchy'? ...
I'm trying to get the 12F683 to run on an external crystal at 20 mhz...with no luck.
I've played with the OSCON and had it run at 1, 2, 4 and 8 Mhz. The Define command doesn't seem to do this...
OK, I have PBP now...i've loaded it up and want to try programming in MPLAB IDE but using PBP.
I used the wizard to create the project, imported a pbp file...but the screen is blank.
Am I...
I was going to try PDS...but the trial version doesn't support the 12F683. I will have to pick up some 12F675's or the 16F628A to try PDS out.
John.
Wow, seems I opened up a can of worms there;)
I was looking over ASM earlier (from a beginners perspective) and learned how to convert binary to hex (amazingly simple...after a 3-finger scotch!)
...
I tried mikrostudio...I like the picbasic code better (maybe because I'm learning on that platform). I also have MPLAB that came with my pickit2...but it works on asm. I appears if I get the...
Thanks, how do these compilers compare to picbasic pro?
John.
Thanks guys,
I think I've got it working OK now...but by copy of the picbasic compiler (with microcode studio) only limits me to 31 code lines:mad:
As much as I like Microcode Studio...is there...
Thanks Joe,
I didn't catch that, I'll make changes and see if that fixes the input problem.
I still have the output issue though with GPIO.3, it doesn't want to run the LED.
Any thoughts?
...