Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    2,650

    Define char_pacing

    I am using a hardware (HSERIN/HSEROUT) and software (SERIN2/SEROUT2) on a single chip. I want to use the the DEFINE CHAR_PACING, does this change the pacing for both HSER and SER? i have the...
  2. Replies
    9
    Views
    7,217

    Re: 16F777 at 115200 baud

    Thanks for all the help. I understand fosc/4, but i am not sure Serout2 or serin2 uses that. I define the osc speed up top. I have to use 10000000 to get 19200 or 38400 to work with no issue. ...
  3. Replies
    9
    Views
    7,217

    Re: 16F777 at 115200 baud

    this is what i come up with the varrious values to set the baud value
    No Parity, True Parity, True No Parity, Inverted Parity, Inverted
    115200 -11 8181 16373 ...
  4. Replies
    9
    Views
    7,217

    Re: 16F777 at 115200 baud

    the forumula they have in the maual is (1000000/baud)-20, which results in -11. I tried 23 with no luck, or atlest the motor controller I was communicating with acts dumb. works fine with...
  5. Replies
    9
    Views
    7,217

    16F777 at 115200 baud

    I am trying to get a 16F777 with a 20MHz external oscillator running at 115200 baud. There is no parity and it is true. My math for those conditions gives me -11.

    I need to use the hardware serial...
  6. Replies
    18
    Views
    9,650

    here is the entire front end... @ ...

    here is the entire front end...




    @ __config _CONFIG1, _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_ON & _LVP_OFF & _CP_OFF

    OSCCON = $70 'sets the oscillator speed
    DEFINE OSC 8 'Oscillator...
  7. Replies
    18
    Views
    9,650

    I have finished puting the original non interupt...

    I have finished puting the original non interupt code into the new program. any reason why PORTB.2 is all of a sudden reading high all the time. I can ground it out with a switch and it will not...
  8. Replies
    18
    Views
    9,650

    In order to get in and out quick I will need to...

    In order to get in and out quick I will need to use another timer I guess. I need to fire off serries of 8 pulses every 22ms. The high pulses will range from 400us to 1800us with a 400uslow...
  9. Replies
    18
    Views
    9,650

    cool. I had it in the begining, did not have it...

    cool. I had it in the begining, did not have it in the interupt. Firing every 22ms on the scope.

    So, this will not mess up anything as far as I2C or serial? or is that dependent on what I do...
  10. Replies
    18
    Views
    9,650

    OK. Thanks, Compiles now and have a blinking...

    OK. Thanks, Compiles now and have a blinking LED. Back to the timing... Sorry I am so dense with this.

    How do I go about setting the timer for prescale of 1 and a peload of 21537

    I have...
  11. Replies
    18
    Views
    9,650

    ...perhaps the errors mean something to those who...

    ...perhaps the errors mean something to those who know, but I am not smart enough to know (hence the reason I am for asking for help). A little more guidance would be appreciated. am I suposed to...
  12. Replies
    18
    Views
    9,650

    compile errors

    I am not sure if I shoudl reply to this thread or the main interupt thread.

    Anyways, I am getting errors when compiling. It looks like its all with the includes files.

    I have attached a...
  13. Replies
    18
    Views
    9,650

    OK. This looks good. Thanks. I think the...

    OK. This looks good. Thanks.

    I think the overkill blinking light is the right for me to use. I am unlear what to change to get timer 1 to fire off every 22ms.

    I assume it starts with...
  14. Replies
    18
    Views
    9,650

    pic18f887 event timer

    I am using a PIC18F887 with the internal oscilator set @ 8MHz. I have a subroutine I need to fire off at a routine basis (nominally every 22ms although I want it a constant that I can tune). Can...
  15. Replies
    4
    Views
    2,908

    well, good thing I just wasted too many hours...

    well, good thing I just wasted too many hours staring at the software and wasted everyone's time on the post. Went and checked the hardware for shorts and continuity. Helps if you solder the clk...
  16. Replies
    4
    Views
    2,908

    PIC18F2220 I2C resetting

    I have been using the 18F2220 for I2C for dozens of projects and have never had an issue. Either I have been getting away with something for long time or something has changed with the latest lot of...
  17. Replies
    4
    Views
    3,078

    I think its 2.50A PBPro

    I think its 2.50A PBPro
  18. Replies
    4
    Views
    3,078

    negative HEX to bytes

    How do I take a HEX value from -255 to 255 and convert it to a byte from 0 to 255 with another bit of 0 or -1 for the sign? so HEX 81 (-127) is 127 with a sign of 1 and HEX 7F (+127) is 127 with a...
  19. Replies
    9
    Views
    5,781

    BTW, I don't need to recover the lost data, just...

    BTW, I don't need to recover the lost data, just reset. Its not a big deal to miss loop of data here and there. THe issue I have is once it starts erroring it kinda cascades and keeps getting worse...
  20. Replies
    9
    Views
    5,781

    OK. I have it working pretty good with the dummy...

    OK. I have it working pretty good with the dummy receives after each tx to catch the junk and prevent overun. Every once in a while though it gets caught up in itself probably from missing a...
  21. Replies
    9
    Views
    5,781

    Is there a way to reset the OERR flag other than...

    Is there a way to reset the OERR flag other than serin2?

    does this doe anything. I can find very little info on it, but I saw it in the appendix of the picbasic book. I know the same thing exists...
  22. Replies
    9
    Views
    5,781

    Hi. I tried multiple waits (didn't know you...

    Hi. I tried multiple waits (didn't know you could do this). it works a little better, but still not perfect.

    I set it up to snoop the data and post it on hyperterminal.

    This is what I get...
  23. Replies
    9
    Views
    5,781

    unfortunately no, I have tried a couple things...

    unfortunately no, I have tried a couple things and it get too complicated. Hserial has can't be inverted and I am going through a level converter. Its on a premade PCB so i really don't want to...
  24. Replies
    9
    Views
    5,781

    SERIN2 buffer issues...

    Hi. I am trying to read poll then read the data off a RoboteQ motor controller. I can not use the hardware UART, its already being used for the main com. I have it working OK, its just not...
  25. Replies
    1
    Views
    2,052

    Nevermind....

    It helps if you have your analog souce attached to the correct pin...

    Sorry for the unessary post, I guess I just needed to step away from it a while to see the obvious.
Results 1 to 25 of 53
Page 1 of 3 1 2 3