Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: tenaja; Keyword(s):

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. Thread: RETURN command?

    by tenaja
    Replies
    21
    Views
    7,927

    Re: RETURN command?

    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...
  2. Replies
    6
    Views
    4,328

    Re: Which Communication protocol to use

    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...
  3. Replies
    14
    Views
    6,926

    Re: Pic16f88 compiling. . not working

    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...
  4. Replies
    11
    Views
    7,993

    Re: Code speed and execution time

    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...
  5. Replies
    11
    Views
    7,993

    Re: Code speed and execution time

    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...
  6. Re: Stopping a roll over when incrementing a count

    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
  7. Replies
    11
    Views
    7,993

    Re: Code speed and execution time

    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...
  8. Replies
    23
    Views
    21,639

    Re: Making PCB, best software

    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...
  9. Replies
    32
    Views
    23,932

    Your best bet is to use a similar replacement. To...

    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...
  10. Replies
    32
    Views
    23,932

    I'm with Daryl on the sim... I've been using the...

    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...
  11. Replies
    13
    Views
    12,231

    MELabs makes the LAB-X series of boards and the...

    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...
  12. Replies
    7
    Views
    5,652

    Using Gosub or Goto is NOT a style question. It...

    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....
  13. Replies
    1
    Views
    2,384

    Yes. As soon as you enter the interrupt service...

    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,...
  14. The biggest problem was not your 8 or 10 bit ad...

    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...
  15. I realize you have reached your target, but here...

    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...
  16. Replies
    5
    Views
    6,243

    With care, there's no reason you can't get it to...

    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...
  17. Replies
    35
    Views
    14,400

    Alain, I have both compilers, it's just that I...

    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...
  18. Replies
    35
    Views
    14,400

    Yes, Proton still has a dongle... But free...

    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...
  19. Replies
    35
    Views
    14,400

    cnc-- Before you decide on PBP, I would suggest...

    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...
  20. Replies
    3
    Views
    2,599

    Dave is correct. The High/Low commands perform a...

    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),...
  21. Replies
    32
    Views
    21,647

    Are there limits to the "off topic" topics?

    Are there limits to the "off topic" topics?
  22. Thread: Hot Servos

    by tenaja
    Replies
    37
    Views
    20,560

    I've seen old servos do that. Do you have another...

    I've seen old servos do that. Do you have another signal generator (or rc tx) that you can test them with?)
  23. Thread: Hot Servos

    by tenaja
    Replies
    37
    Views
    20,560

    Sounds like a code issue. Have you looked at the...

    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...
  24. Thread: Hot Servos

    by tenaja
    Replies
    37
    Views
    20,560

    Friction can contribute to servo heat. If 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...
  25. Thread: A2D question

    by tenaja
    Replies
    10
    Views
    5,460

    For certain, Al's method is the preferred way if...

    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...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4