Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    2,429

    Steppers vrs other

    This is a little OT but I know most of you have played some in this area. I'm planning on building a wire feed unit to feed xx inches of wire and cut. I plan on using a pic and PBP to control the...
  2. Replies
    9
    Views
    4,697

    And, if you wanted to do this with 3 pins instead...

    And, if you wanted to do this with 3 pins instead of 8 add a 165 PISO shift register.
  3. Replies
    1
    Views
    2,066

    Keep DIO from toggling

    Is there a way to keep the Digital outputs on a 18F4520 from changing states when the pic gets reset with a MCLR? I don't remember this happening on my other pic projects with 16F series.

    My...
  4. Replies
    3
    Views
    2,665

    Would a While/Wend be more appropriate?

    Would a While/Wend be more appropriate?
  5. Replies
    14
    Views
    12,614

    No, not at all, was just thanking you for the...

    No, not at all, was just thanking you for the help you've given. Too many times I look the time to search and look up links and info for folks and not even a reply or thank you.

    I see it happen...
  6. Replies
    6
    Views
    4,087

    Yes, but if he is doing something like modbus for...

    Yes, but if he is doing something like modbus for instance, he only has the node#, correct number of bytes to collect, and then the timeout or Silent time.

    Then he would have to verify the data...
  7. Replies
    6
    Views
    4,087

    'Instead of waiting, grab the first byte and see...

    'Instead of waiting, grab the first byte and see if it's for your ID or Broadcast then
    'if so collect the rest of the bytes

    HSerIn Timeout,ExitRx,[BufRX(0)]
    If ((BufRx[0] = MyID) or (BufRx[0] =...
  8. Replies
    14
    Views
    12,614

    Thanks for your help Darrel

    Thanks for your help Darrel
  9. Replies
    14
    Views
    12,614

    Would it be better to do something like this and...

    Would it be better to do something like this and get rid of the WAIT?
    Just Grab the first byte and see if it's for me, if so process, else Exit Interrupt....

    'Receive Interrupt
    Receive: ...
  10. Replies
    14
    Views
    12,614

    Oh, I have lots of initilized variables in my...

    Oh, I have lots of initilized variables in my Init: routine before it drops into the Main. But thanks.

    Yes, it's counting properly now. You 100% correct, I moved my prewritten HSerIn call from...
  11. Replies
    14
    Views
    12,614

    That works better. Is this causing my...

    That works better.


    Is this causing my problem since they are PBP Interrupts, it's not exiting like it should...

    AdcMaxReads is at 64, Each time I loop I increment the channel, that way I...
  12. Replies
    14
    Views
    12,614

    I did check, and I do have the following fuses...

    I did check, and I do have the following fuses set in my programmer.

    Osc = HS, FSCM = on, Brown Out = Enabled,
    Low Power Timer1 Osc = Low Power ??? Was default
  13. Replies
    14
    Views
    12,614

    Yes, I have one other that's for Rx but it grabs...

    Yes, I have one other that's for Rx but it grabs a short 8 byte serial string once every 2 seconds.

    INCLUDE "DT_INTS-18.bas" ; Base Interrupt System
    INCLUDE "ReEnterPBP-18.bas" ;...
  14. Replies
    14
    Views
    12,614

    I'll double check that, but if that were the...

    I'll double check that, but if that were the case, wouldn't my baud rates and stuff be off as well on my serial port stuff?
  15. Replies
    43
    Views
    24,178

    Don't be scared, it's a great tool and is perfect...

    Don't be scared, it's a great tool and is perfect especially for starting out. Easy to use and easy to understand. Some of the stuff we were talking about really isn't an issue. I was more/less...
  16. Replies
    14
    Views
    12,614

    Darrel Taylor Elapsed Timer

    I've been through this before but I must be doing something wrong.
    My DT Elapsed Timer is incrementing the seconds every 15 seconds.

    I'm running a 18F4520 with an External clock of 20 MHZ

    I...
  17. Replies
    21
    Views
    57,333

    I guess you see that was from 2004 right? The...

    I guess you see that was from 2004 right?

    The Max 485 has two enable pins.
    #2 /RE
    #3 DE

    Tie these two pins together and run them to an output on the pic, call it RS485 for an example. To...
  18. Replies
    12
    Views
    9,753

    There was actual working code in the links I...

    There was actual working code in the links I posted above. These are not my sources but the code works.
    Mine doesn't look anything like that however the CRC Routine was borrowed from it.

    Also in...
  19. Replies
    3
    Views
    2,591

    Yes, after trying numerous things by using bit...

    Yes, after trying numerous things by using bit logic and then setting the pin directly I still see the same problem.

    Each time I set mutiple outputs on PortD my inputs start changing. I noticed...
  20. Replies
    3
    Views
    2,591

    Port Manipulation

    I have a port which has the first 4 pins as inputs and the second 4 pins as outputs.
    Reading the inputs and the outputs is pretty easy as I just masked them such as:

    DigIn = (PortD & $F) 'Lower...
  21. Replies
    43
    Views
    24,178

    I was aggrevated and I should know better than to...

    I was aggrevated and I should know better than to post when I'm aggrevated. ME Labs has always had excellent support and I've had them email me bug fixes same day for bugs I found.

    I was a little...
  22. Replies
    3
    Views
    3,954

    DT Elapsed Timer

    Thanks Darryl for the Instant Interupts!!!
  23. Replies
    43
    Views
    24,178

    Melanie, I agree with you and like I said, for...

    Melanie,
    I agree with you and like I said, for the most part I've just built what I needed. The datasheets can be pretty confusing and you can't expect everyone in the world to understand them,...
  24. Thread: MPASM Help

    by rwskinner
    Replies
    7
    Views
    4,757

    No, Modbus ASCII LRC Calculation

    No, Modbus ASCII LRC Calculation
  25. Thread: MPASM Help

    by rwskinner
    Replies
    7
    Views
    4,757

    Thanks, this helped a lot. The offending code,...

    Thanks, this helped a lot.

    The offending code, which works fine is.....
    LRC = 256 - LRC

    LRC is defined as a byte, but I have to subtract LRC from $100
    I guess I could say....
    LRC = $FF -...
Results 1 to 25 of 74
Page 1 of 3 1 2 3