Search Results - MEL PICBASIC Forum

Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    76

    Re: 18F4680 Internal Oscillator

    You might try setting OSCCON = $70

    That selects the primary clock (the one specified by the config OSC statement).
    That's required for a number of devices that have a PLL
  2. Replies
    17
    Views
    824

    Re: Programmer help

    There's only one outrageously large download and it contains both the MPLABX IDE and IPE.
    You can install them together or individually. The last time I installed just the IPE
    it didn't save much...
  3. Replies
    7
    Views
    602

    Re: DT_ints handling time.

    The fastest you can respond to a high-priority interrupt is 5-6 instruction cycles (assuming there's a GOTO at the vector location), so at 64MHz that's 375ns before your ISR code begins to execute.
    ...
  4. Re: Elapsed timer not working as expected at 64MHz

    Really???

    It sounds like retepsnikrep's problem was he was trying to transmit a byte every 1ms, and at 9600 baud a byte takes 1.04ms to send so no number of additional pics is going to fix that.
    ...
  5. Replies
    142
    Views
    9,887

    Re: PIC USB HID breakout board

    We seem to be going around in circles.


    I thought that the javascript running on the PC is input-only, so you can't send data to the pic via usb 'doanything'.

    The HID keyboard running on the...
  6. Replies
    142
    Views
    9,887

    Re: PIC USB HID breakout board

    Once you set the pin to output, the digital/analog mode setting doesn't really matter.
    You can output a 1 or 0 with the pin still in analog mode. All that bit does is turn off the digital input...
  7. Replies
    142
    Views
    9,887

    Re: PIC USB HID breakout board

    Also, most of the PORTB pins are dual analog/digital pins. You have to set them to digital mode otherwise they always read '0'.
    Either set ANSELB bits = 0 for the ones you want to be digital, or set...
  8. Replies
    142
    Views
    9,887

    Re: PIC USB HID breakout board

    The RBPU bit (INTCON2.7) is low-active, so 0=pullups enabled, 1=pullups disabled
  9. Replies
    142
    Views
    9,887

    Re: PIC USB HID breakout board

    As I say, If you enable the internal portb pullups and have your jumper/switch either open or to GND then the input will default to logic '1' since it's pulled high.

    The internal pullups are...
  10. Replies
    142
    Views
    9,887

    Re: PIC USB HID breakout board

    If you put your jumpers on PORTB then you can use the programmable pullups on those pins, so all you need is a jumper to GND.
    That gives you up to eight jumpers (or just use a PCB DIP switch) w/out...
  11. Replies
    142
    Views
    9,887

    Re: PIC USB HID breakout board

    That sounds about right.

    I don't know why they suggest adding a resistor to VSS. Just setting the unused IO to output low is good enough.
  12. Replies
    142
    Views
    9,887

    Re: PIC USB HID breakout board

    So, to sum things up...

    1) HID keyboard communications can be bidirectional. All you need is the proper descriptors.

    2) #1 doesn't matter in this application because Javascript can't send data...
  13. Replies
    142
    Views
    9,887

    Re: PIC USB HID breakout board

    If you're using ON INTERRUPT you shouldn't manipulate the GIE bit.

    From the manual:
    If it is desired to turn off interrupts for some reason after ON INTERRUPT is
    encountered, you must not turn...
  14. Replies
    142
    Views
    9,887

    Re: PIC USB HID breakout board

    Works basically the same way, David, except now you're counting in 1.392s increments.
    With 'ticks' as a byte you can wait up to 255x1.392 = 354secs


    ticks var byte
    TMR0IF var INTCON.2

    ' set...
  15. Replies
    142
    Views
    9,887

    Re: PIC USB HID breakout board

    You have to be aware of how PBP's ON INTERRUPT works. It isn't a true interrupt, it's a polling mechanism.
    It adds code in between every BASIC source code line to check if an "interrupt" occurred....
  16. Replies
    142
    Views
    9,887

    Re: PIC USB HID breakout board

    If you don't care about being exact, if you set TMR0 to 16-bit mode with a 1:256 prescaler (T08BIT=0, T0CS=0, PSA=0, T0PS=111)
    you'll get TMR0IF set every 1.392 secs (65536x256x83ns @ 48MHz). Count...
  17. Replies
    142
    Views
    9,887

    Re: PIC USB HID breakout board

    Sure, but I wouldn't try to transmit from within the ISR... just set a flag when the time expires that your main routine can check and send whatever at that point.
  18. Replies
    142
    Views
    9,887

    Re: PIC USB HID breakout board

    The clock setup of the 25K50 is different. I haven't looked through all of pedja's code to see if there's anything else that needs to change, but try replacing:


    #config
    CONFIG PLLDIV =...
  19. Replies
    6
    Views
    907

    Re: Auto reset MCLR

    Yes, but not knowing the bootloader it's possible that it might not work since it can tell the difference. That's unlikely, though.

    What Henrik proposed works. Once again, the simulator lies.
  20. Replies
    5
    Views
    744

    Re: PBP3 and Mplabx5.10

    Don't think so... that was the function of the Language Tool plugin and that was removed.
  21. Replies
    5
    Views
    744

    Re: PBP3 and Mplabx5.10

    I haven't been able to get PBP working in mplabx 5.10 and I've tried just about every combination of install/uninstall/download/manually add tool I could think of.

    I always end up with a 'Compiler...
  22. Re: Question regarding Interrupt handler - No DT_Ints used.

    It's probably good to be aware of the minimal context saving done automatically, but for the code in question it's not using any computed GOTO's so I think you should be safe with the code pretty...
  23. Re: Question regarding Interrupt handler - No DT_Ints used.

    There's nothing wrong with saving all that stuff, but that's a lot of bother for what you've got going on.

    If all you do is simple sets and tests with port bits and bytes like you have then you...
  24. Replies
    1
    Views
    576

    Re: Using the DMCI Tool

    DMCI isn't supported using any 8-bit chips... you need a PIC24/33.

    The RealIce is just shy of a very expensive paperweight when used with a pic16/pic18. Very few of its features work with them....
  25. Replies
    13
    Views
    2,111

    Re: Pullup Configuration Help

    That's not correct.

    If the WPU bit is set, it remains set.

    If you set the pin as an output then the weak pullup is disabled, but the WPU bit doesn't change.
    If you then set the pin as an...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4