Why, or how would it?
You are allowed to put labels in the middle of a sub so you can do a conditional goto, etc. So, a label is not an acceptable terminator for a sub. So what would you use?
I...
Type: Posts; User: tenaja; Keyword(s):
Why, or how would it?
You are allowed to put labels in the middle of a sub so you can do a conditional goto, etc. So, a label is not an acceptable terminator for a sub. So what would you use?
I...
Your decision also depends upon the specific PICs you are using, and the goals. Reliability of all are going to be similar. People are often more "warm and fuzzy" with HSerin because RS232 is...
Did you notice that it selected the assembler from your recycle bin?
Also, it has been several years since I worked with the 16f88, but iirc it has at least one of the peripherals enabled by...
I don't have your list of PICs memorized, so you'll have to read the datasheets. Just search for "master" in the i2c section and make sure it is not implemented in firmware.
GIven your 50/60hz...
Unfortunately your chosen PIC does not have hardware implementation of i2c Master. If you want to use h/w i2c, you'll have to change PICs.
For start/stop, etc, you have to read the datasheet of...
Replace this...
IF PORTC.2 = 1 THEN IOUT = IOUT - 1
...with this...
IF PORTC.2 = 1 THEN if IOUT > 0 then
IOUT = IOUT - 1
endif
Using the software implementations of i2c read/write are DREADFULLY SLOW. Yes, I am not surprised you get such a slow loop.
There are several ways to dramatically speed it up.
1. use the hardware...
Eagle is great for precision, but has a high learning curve.
Ares is considerably easier, with a lower learning curve...but requires purchase.
If you are doing it for hobby stuff, on a hobby...
Your best bet is to use a similar replacement. To make a new device will require an NDA with Labcenter and intimate knowledge of SPICE.
The Labcenter forum is mostly professionals, so there is...
I'm with Daryl on the sim... I've been using the vsm for several years, and love it. The advanced stuff is more for calculating noise in audio ckts and such. Using Isis has cut down on development...
MELabs makes the LAB-X series of boards and the Epic programmers themselves, and they gave me excellent customer service with mine (almost 10 yrs ago). When I thought I had a hardware issue, I called...
Using Gosub or Goto is NOT a style question. It is a FLOW question.
You use Gosub when you want to Return as soon as the routine is done.
Use Goto to depart your routine, "never" to return....
Yes. As soon as you enter the interrupt service routine, you check the interrupt flags that you are expecting (the ones you turned on) and service the one that triggered.
Are you using PicBasic,...
The biggest problem was not your 8 or 10 bit ad reading, or even the type of variable used for the pause command. (Pause will work with a byte.) In fact, the problem was the use of a byte var instead...
I realize you have reached your target, but here are some tips to help in the future.
The shiftin/shiftout commands are dreadfully, painfully, pathetically slow. And also very slow. If you use an...
With care, there's no reason you can't get it to work.
The Pause command could be a rom hog for what you're doing with it; you'll save some space by using simple loops, setting a variable before...
Alain,
I have both compilers, it's just that I primarily use Proton, as a personal preference. The information on both forums is helpful. Remember, at the very beginning, I said both are good...
Yes, Proton still has a dongle...
But free upgrades.
LONGs (Dwords in Proton) are not available for 16F's or smaller chips. For a hobbyist, this is not an issue. On the other hand, if...
cnc--
Before you decide on PBP, I would suggest you also try the Proton compiler demo, and get a feel for which you prefer. The bottom line is that both are great compilers, and you won't go wrong...
Dave is correct. The High/Low commands perform a PortX.y = 1/0, and also set the TrisX =
They are for...
a) BS2 code compatibility,
b) idiot-proofing the compiler--which is a subset of a),...
Are there limits to the "off topic" topics?
I've seen old servos do that. Do you have another signal generator (or rc tx) that you can test them with?)
Sounds like a code issue. Have you looked at the output pulses on a scope? If the signal pulses vary at all, that can drain the batteries.
The 18mS isn't critical with the digital servos, but the...
Friction can contribute to servo heat. If the mechanism can't easily and smoothly move one servo step, then it can oscillate.
For this type of app, I've used digital servos. They have several...
For certain, Al's method is the preferred way if you are going to send ascii. However, in most situations you can send the actual data instead of the ascii representation of it. Doing so makes it...