Search Results - MEL PICBASIC Forum



THE BOOK of DT's INTERRUPTS is an organization of interrupt service routines and other works written by Darrel Taylor, RIP.

Interrupt routines are arranged per Darrel's original list. Darrel Taylor's Instant Interrupts are an extension of the work of Tim Box whom in October of 2002 wrote INT_CTRL.pbp

Many of the forum members felt this is a long overdue project.

THE BOOK of DT's INTERRUPTS
will be a valuable resource and a tribute to Darrel Taylor the "Fanatical Contributor".

THE BOOK of DT's INTERRUPTS is located at http://dt.picbasic.co.uk/

Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    9
    Views
    293

    Re: directive in pbp to select pic

    Which device the compiler builds the code for is specified using the -p option passed to the compiler exectuable. There is, as far as I know, no way to specify that in the source code itself. See...
  2. Replies
    39
    Views
    31,976

    Re: Forum Adverts

    So far I get a non intrusive ad at bottom of screen and a full screen one (vignette?) that I have to close or click outside of to get past when clicking on a topic (though not every time). They show...
  3. Replies
    39
    Views
    31,976

    Re: Forum Adverts

    I understand the need for ads on the site and I appreciate what the site owner is supplying us with here but the advertising situation has gone too far now. I get ads top of screen, bottom of screen,...
  4. Replies
    9
    Views
    467

    Re: What is causing my problem?

    For trouble shooting purposes, sure try disabling it but I'd be very surprised if has any impact on the issue.
    Generally speaking, you don't need to disable the WDT. Unless you're code includes the...
  5. Replies
    8
    Views
    460

    Re: 16Bit 125KHz PWM with PIC12F1572

    If the dutycycle is supposed to be fixed at 50% I don't see how it matters if you have 5, 6, 7 or even 16 bits of resolution.
  6. Replies
    9
    Views
    623

    Re: 125KHz HW PWM Output

    Richard already covered it but it seems to have been overlooked.

    The duty cycle register is 10bit wide but, as Ioannis says, the usable number of bits differs depending on the PWM period. The...
  7. Re: How to detect variable going below zero, without using PBPL ?

    As long as both variables are of the same size adding a two's compliment value to another is the same as subtracting the absolute value of one from the absolute value of the other.

    In these...
  8. Re: Simplest way to write to USB stick or TF/SD card with PBP?

    PBP command SEROUT2 can handle flow control.
    With that said I've never needed to use it with OpenLOG but it depends on how much data and at what speed you you're trying to log.
  9. Re: My "Library" for ST7920 Graphical displays, works fine, but...

    Have you measure what clock speed you're getting?
    Standard "high speed" I2C clock is 400kHz, maximum clock speed of a Microchip 24C256 when run at >2.5V is 1MHz.
    SPI-interface flash chips usually...
  10. Re: My "Library" for ST7920 Graphical displays, works fine, but...

    No.
    SSPBUF is the Synchronous Serial Port Receive Buffer/Transmit Register. It's the name of register to/from which you write/read whatever gets shifted out.
  11. Re: My "Library" for ST7920 Graphical displays, works fine, but...

    I'll just point to MELABS: https://melabs.com/samples/PBP-mixed/spimast.htm That example is what I used as a basis when I first used the MSSP module for SPI (for interfacing the W5100 (search the...
  12. Re: My "Library" for ST7920 Graphical displays, works fine, but...

    Oh, you don't want to limit yourself to the hundreds of available 18F series devices so your contemplating using old parallell I/F EEPROMs instead, needing so many I/O-lines that you'll probably have...
  13. Re: My "Library" for ST7920 Graphical displays, works fine, but...

    Oh, you don't want to limit yourself to the hundreds of available 18F series devices so your contemplating using old parallell I/F EEPROMs instead, needing so many I/O-lines that you'll probably have...
  14. Re: My "Library" for ST7920 Graphical displays, works fine, but...

    Store the font data in program memory instead.
  15. Re: How to detect variable going below zero, without using PBPL ?

    It depends on what you're doing with the number(s).
    If your displaying them using LCDOUT/SEROUT/HSEROUT/ARRAYWRITE you can use the SDEC modifier to display the value 65535 as -1.

    If you're doing...
  16. Re: Simplest way to write to USB stick or TF/SD card with PBP?

    Yes. SEROUT, SEROUT2 or HSEROUT/HSEROUT2 is what you want.
  17. Re: Simplest way to write to USB stick or TF/SD card with PBP?

    No extra hardware needed.
    The easiest way is to put a config.txt, containing your desired options, on the SD card. See the Configuration File section of the tutorial.
  18. Re: Simplest way to write to USB stick or TF/SD card with PBP?

    Again, for simple datalogging type applications there's really no need for any sample code. Just send it ASCII data over a UART line and it will write it to a .txt file on a microSD card. It CAN do...
  19. Re: Simplest way to write to USB stick or TF/SD card with PBP?

    For data logging type applications I've had great success with the OpenLOG. Just send it ASCII data over a UART line and it will write it to a .txt file on an microSD card.
  20. Replies
    13
    Views
    1,233

    Re: SEROUT2 Byte Array In HEX Format

    No, I don't see anything wrong with that code. Have you tried increasing the delay between packages?
  21. Replies
    13
    Views
    1,233

    Re: SEROUT2 Byte Array In HEX Format

    Since you don't say which Bluetooth module you're using I can't tell what size the buffer is but if you keep feeding that buffer faster than the module is able to send the data out over the air it...
  22. Replies
    13
    Views
    1,233

    Re: SEROUT2 Byte Array In HEX Format

    No, that can't be it.
    SEROUT and SEROUT2 are bitbanged routines so they don't use the (E)USART and therefor not the TXREG. HSEROUT does use the (E)USART but its smart enough to pace itself as to not...
  23. Replies
    2
    Views
    553

    Re: 12LF1552 -- support?

    There's a list of supported devices available here: https://pbp3.com/devicelist.html and it lists the 12LF1252. Microcode Studio populates the list of microcontrollers from the available...
  24. Re: 1 microsecond rising edge pulse detection

    Yes, the datasheet specifies INT pin input high or low time: Minium 25ns so should be no problem with 1us. Question then becomes how much latency you can accept, how fast do you need to "react" on...
  25. Replies
    21
    Views
    4,623

    Re: RETURN command?

    You didn't miss anything. My point is basically that it's not as simple as just telling the compiler to count the number of GOSUB and RETURN statements and generate an error they don't match.
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4