Search Results - MEL PICBASIC Forum


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
    367

    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...
  2. 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...
  3. 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.
  4. 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...
  5. 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.
  6. 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...
  7. 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...
  8. 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...
  9. Re: My "Library" for ST7920 Graphical displays, works fine, but...

    Store the font data in program memory instead.
  10. 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...
  11. Re: Simplest way to write to USB stick or TF/SD card with PBP?

    Yes. SEROUT, SEROUT2 or HSEROUT/HSEROUT2 is what you want.
  12. 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.
  13. 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...
  14. 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.
  15. Replies
    13
    Views
    1,086

    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?
  16. Replies
    13
    Views
    1,086

    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...
  17. Replies
    13
    Views
    1,086

    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...
  18. Replies
    2
    Views
    472

    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...
  19. 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...
  20. Replies
    21
    Views
    4,476

    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.
  21. Replies
    21
    Views
    4,476

    Re: RETURN command?

    You can have one entry-point (Label) and multiple exit points (Returns) or multiple entry-points (Labels) and a signle return. Both are valid and very useful. For example, my SK6812 RGBW LED code...
  22. Replies
    10
    Views
    1,437

    Re: Serial LCD display for PIC projects ?

    No, you're forgetting the stop-bit! You have 1 startbit, 8 databits and 1 stopbit.

    In your diagram, from left to right: First you have the start-bit (1), then you have 8 data-bits (11000010), then...
  23. Replies
    10
    Views
    1,437

    Re: Serial LCD display for PIC projects ?

    Because at 2400 baud ~420us of that 0.92ms is the normal stopbit. Add to that the additional character pacing of 500us.

    At 2400 baud you'd also get the same result by specifying two stop-bits.
  24. Replies
    10
    Views
    1,437

    Re: Serial LCD display for PIC projects ?

    Bit timing seems to be in the ballpark for 2400 but apparently the PICAxe has quite a bit of delay between each byte (usually not what you want to see). If the display(s) do work with the PICAxe and...
  25. Replies
    119
    Views
    41,746

    Re: SSD1306 INCLUDE for PBP3

    Enlighten me please, displaying word vars obviously worked for me. Was there then a change that broke it which has now been fixed or what actually happened here.

    Anyway, glad you got it going and...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4