Remove Text Formatting
Loading...

Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.06 seconds.

  1. Thread: Rtcc

    by Bruce
    Replies
    4
    Views
    1,487

    Re: Rtcc

    This was tested on a PIC18F25J11 running at 3V, but should work on your 46J11. Note it was tested with PBP3, but can easily be modified to work with earlier versions.


    #CONFIG
    CONFIG OSC =...
  2. Replies
    10
    Views
    2,721

    Re: IR decoder Sony code Help

    This is pretty old, but should work if you have a standard 12-bit type Sony IR transmitter. It's one of the simplest routines I have for decoding Sony IR.



    DEFINE OSC 4

    IR_PULSE VAR BYTE(12)...
  3. Replies
    14
    Views
    10,361

    Re: Using hardware capture

    Not sure what you mean by it seems to stop at start but timer1 is running a lot faster at 20MHz, and you don't mention how far it gets or what it shows as the result, so it's tough to help.

    Have...
  4. Replies
    21
    Views
    4,506

    Re: 16F627A PortA.4 trouble?

    Clear T1CON.3. If your programmer won't allow you to reprogram them with this bit set, at least you shouldn't have the same problem with new ones. You only enable TMR1 osc if you're using an external...
  5. Replies
    11
    Views
    2,383

    Re: compilation error

    This should work;


    #CONFIG
    __CONFIG _MCLRE_OFF & _INTRC_OSC_NOCLKOUT & _WDT_OFF & _LVP_OFF & _BODEN_OFF & _PWRTE_ON
    #ENDCONFIG

    And disable case sensitivity in MPASM or make porta PORTA in...
  6. Replies
    28
    Views
    6,299

    Re: Detecting Horizontal Movement

    As Darell already mentioned, the accelerometer is all you'll need. What you're looking to do is what accelerometers are made for....;o)
  7. Re: 5 day class in Florida to tutor PicBasic students

    It went really well, and was a lot of fun. Russell, the guy that put this all together for TMG was very sharp, put together one heck of a good PBP course with a lot of very cool experiments, and...
  8. Thread: 38Khz Modulator

    by Bruce
    Replies
    5
    Views
    3,161

    Re: 38Khz Modulator

    Here's one way if you have a 16F1827 http://www.picbasic.co.uk/forum/showthread.php?p=84227#post84227

    And another way http://www.rentron.com/Micro-Bot/IR_Serial.htm with any PIC with hardware PWM.
  9. Replies
    6
    Views
    1,379

    Re: Interrupts and stack

    If your code is large, then post it as an attachment VS inline. But how do you know this is a stack overflow reset?

    A single interrupt event shouldn't cause a stack overflow, but we have no way of...
  10. Replies
    19
    Views
    5,144

    Re: MIKROBASIC Soft_Uart to PICBASIC SEIRIN2?

    All packets will include a start bit, 8 data bits, and the stop bit. You might have better luck if you increase (or get rid of) the timeout period.
  11. Replies
    8
    Views
    2,193

    Re: Where is the bootloader ?

    The Microchip USB loaders are configured to run on Microchip USB dev boards and they use SW2 to determine if it jumps to the loader or user code at POR. In the USB loader version I have, io_cfg.h has...
  12. Replies
    19
    Views
    5,144

    Re: MIKROBASIC Soft_Uart to PICBASIC SEIRIN2?

    If the sender PIC array is type int, it's probably 16-bit or word sized. Try setting it to unsigned byte or char type.
  13. Thread: microcode studio

    by Bruce
    Replies
    11
    Views
    6,951

    Re: microcode studio

    Support for the PIC18F26K80 was added in PBP version 2.60C, and MCS should pick up on this if you have a version of PBP that supports the PIC18F26K80.
  14. Thread: Arduino ?

    by Bruce
    Replies
    6
    Views
    4,691

    Re: Arduino ?

    The big draw to the Arduino platform is;

    1. The compiler is free and open source. Which doesn't really mean much unless you just want a free compiler or you can modify the open source compiler to...
  15. Replies
    20
    Views
    5,060

    Re: Mechanical question

    The ones made for metal work just fine on plastic enclosure panels. I've used them. You just drill a hole in the end panel large enough to pass the bolt through.

    But they are expensive, and you...
  16. Replies
    6
    Views
    4,928

    Re: PIC 16F690 PWM's ports selection - How to?

    It works as expected here!


    5960

    Have you tested PORTC.4 to see if it's blown, or you have a problem with something connected to it?
  17. Re: Unexpected PIC reset (probably when byte variable overflows)

    What happens if you change CONFIG WDT = ON to CONFIG WDT = OFF?
  18. Re: Unexpected PIC reset (probably when byte variable overflows)

    It sounds to me like PBP does not reset WDT for all instances. I.E. if you have only a simple loop, incrementing or decrementing a variable, with no PBP commands in the loop, you have a WDT reset.
    ...
  19. Replies
    27
    Views
    17,756

    Re: MIBAM and 12F1822...

    Yup. Very cool. Are you using the LEDs to sense changes, then flipping them to outputs, or using sensors?
  20. Replies
    13
    Views
    4,690

    Re: Serial UART and Interupts on a 16F87X

    Here's a untested/simplfied version that should work. Compare it to your original to see the changes.


    DEFINE OSC 4 ' 4 MHz clock
    DEFINE ADC_BITS 10 ' Set number of bits in result
    DEFINE...
  21. Replies
    14
    Views
    10,361

    Re: Using hardware capture

    Hi Picone,

    Glad I could help, and welcome back.

    FYI: Darrel has a nifty include file you can use to disable all analog features by just including it in your code. See this thread...
  22. Re: NEC IR Protocol remote decoder, help me before I kill myself!

    There are much better/faster ways to do this, but this should get you started with something that's fairly easy to understand.

    Assuming you have an NEC transmitter that outputs something like the...
  23. Replies
    3
    Views
    1,823

    Re: Need some help with ADC readings on 16F72

    Change ADCON0=%1100000 to ADCON0=%11000000, and _RC_OSC to _HS_OSC.

    Also, you don't need a word variable for an 8-bit result.
  24. Replies
    14
    Views
    4,116

    Re: Serout2 and Interrupts 16F88

    Can't you use hardware PWM?
  25. Replies
    21
    Views
    6,441

    Re: PIC with Automatic Context Saving

    FYI: BCF IOCAF,IOCAF1 in your int handler is probably not doing what you think. IOCAF is in bank 7 on the 16F1828, and PBP resets the bank to 1 when you use ASM. It's up to you to make sure you're in...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4