Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    3,837

    Re: Serin -> Hserout -> Hserin -> LCDOUT

    This how I'd change the code. Compiles for 16F1829. So what oscillator are you actually using?


    ' Name : HSERX.pbp
    ' Compiler : PICBASIC PRO Compiler 2.6
    ' Assembler : PM or MPASM...
  2. Replies
    12
    Views
    3,837

    Re: Serin -> Hserout -> Hserin -> LCDOUT

    The hardware serial port will only deal with individual bytes. Whatever else is or is not going on, you cannot read directly into a word variable in that manner. You could use
    Hserin...
  3. Replies
    12
    Views
    3,837

    Re: Serin -> Hserout -> Hserin -> LCDOUT

    Hello Mr. thasatelliteguy,

    Make the variable "char" a byte instead of a word. Seriously, give that a try...

    Best Regards,
    Paul
  4. Replies
    17
    Views
    9,632

    Re: RFM12 with picbasic_pro

    Hello Craig,

    I suspect you've found the problem--capacitance (or other leakage) in the setup. Good job! I think you'll do better on veraboard... For a quick fix try putting relatively high...
  5. Replies
    17
    Views
    9,632

    Re: RFM12 with picbasic_pro

    Hello Craig,

    Have you made any changes to the code? Perhaps added an interrupt that might be pulling it out? If you have made some changes please post your code, it might be somewhat easier than...
  6. Replies
    4
    Views
    1,804

    Re: Real Time Clock 1302

    Hello Sheldon,

    SHIFTIN and SHIFTOUT take care of setting the data directions on their own; PBP takes care of it. I checked some code where I have used these commands and (for no particular...
  7. Replies
    5
    Views
    2,579

    Re: Set configuration bits

    What version of PBP are you using? And, which assembler is MCS using?

    In PBP3, the config settings would be something like:



    #CONFIG
    __config _INTRC_IO & _WDT_OFF & _PWRTE_OFF &...
  8. Re: Bare Bluetooth Keyboard chips.. Recommendations?

    Ha! I was hoping that *you* would do testing and figure it out for *me*!

    And please don't tell my wife I may have admitted to being wrong about something...wouldn't want to raise her expectations....
  9. Re: Bare Bluetooth Keyboard chips.. Recommendations?

    Hello Art,

    I am cautiously encouraged...8v) A quick google indicates that BT keyboards use the HID protocol. I've only used SPP (serial port profile), and SPP may be the problem with Apple. ...
  10. Re: Bare Bluetooth Keyboard chips.. Recommendations?

    Hello Art,

    Although I would LOVE to be proven wrong, I don't believe what you are seeking is possible using an un-jailbroken iPhone. My understanding is that Apple only allows "approved" devices...
  11. Replies
    5
    Views
    4,578

    Re: Mikro Elektronika Basic and PBP

    I've only used MikroE Basic for 24-bit PICs but I agree with most of your sentiments. Working with serial, my primary means of communication, seems a lot more difficult than it ought to be. I will...
  12. Replies
    3
    Views
    1,836

    Re: How to read digital caliper.

    Hi Barry,

    Take a look at the REV operator in the PBP manual. This what you're looking for?

    Best Regards,
    Paul
  13. Replies
    21
    Views
    5,961

    Re: Setup port pins into an array

    Hello Sheldon,

    I don't have much understanding of what else is going on in the code, but having it work for your needs is far more important than it being pretty. Assembler remains beyond me...
  14. Replies
    21
    Views
    5,961

    Re: Setup port pins into an array

    I know effectively nothing about assembly. I don't think HPWM can be used like that on sequential pins. I would try something interrupt based, like this:

    '16F1825
    Define OSC 32
    '32 MHz
    '= 8...
  15. Replies
    21
    Views
    5,961

    Re: Setup port pins into an array

    What oscillator speed are you using, and is a CCP pin available?

    Best Regards,
    Paul
  16. Replies
    19
    Views
    6,070

    Re: Battery voltage monitoring for use on 16F1825

    Congrats on getting it working. Will you be using the software-based PWM or the hardware based HPWM?

    Best Regards,
    Paul
  17. Replies
    19
    Views
    6,070

    Re: Battery voltage monitoring for use on 16F1825

    I notice a couple of oddities in your code that may (or may not!) be part of the problem. You are using the PBP ADCIN command but not any of the PBP defines. I don't know if PBP needs the defines...
  18. Re: Strange compile error? "Could not spawn language tool. "

    Hello Ian,

    Have you seen this thread? http://www.picbasic.co.uk/forum/showthread.php?t=14932

    Best Regards,
    Paul
  19. Re: Code for reading a barometric sensor with PIC16F1827

    Excellent! I hope it works perfectly!

    Best Regards,
    Paul
  20. Re: Code for reading a barometric sensor with PIC16F1827

    Hello Szczepaniec;

    If there are no other takers I'd enjoy doing it. It'll take as long as it takes for the part to arrive from SparkFun, plus a day. Work for you?

    Best Regards,
    Paul
  21. Replies
    9
    Views
    2,574

    Re: Need guidence for programming a DS1821C+

    Since it takes 4 clock cycles to complete a single operation, divide the oscillator frequency by 4 to get the number of operations the PIC can perform in a second:

    4,000,000/4 = 1,000,000...
  22. Replies
    41
    Views
    25,946

    Re: Multiple PICs on usart network

    Hey Everybody,

    Thanks for this thread, you saved me a truckload of frustration! The series diodes worked in my case.

    All the Best,
    Paul
  23. Replies
    18
    Views
    3,395

    Re: reading ultrasonic receve

    Chuck Hellebuyck's book is the best commercial basic-to-intermediate PBP book that I've seen. As far as other recommendations:

    1. The manual that comes with PB3! There is a wealth of knowledge...
  24. Replies
    2
    Views
    1,485

    Re: How critical is type of oscillator for I2C?

    Hiya,

    Within reason, I2C should be indifferent to the clock speed. What matters is the state of the SDA when the the SCL transitions. As far as I know the only speed related issue is exceeding...
  25. Re: Microcode: How to setup SERIN for 115200 baud rate?

    The baud rates listed in the datasheet relate to using the chip's internal USART. To access this you would need to use the HSERIN command, use the specific USART RX pin, and likely need a level...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4