Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. Re: Using as many internal peripherals as possible.

    Thank you, Richard, for the explanation.
    Now I have a clearer understanding of how to work with variables and share them in ASM and PBP.

    Active TMR1, yes. I just forgot to comment on this line....
  2. Re: Using as many internal peripherals as possible.

    What I trying. Omit PBP code from ASM interrupt routine.
    But this try not work, of course.
    Where is the problem?


    #CONFIG
    __config _CONFIG1, _FOSC_INTOSC & _WDTE_OFF & _PWRTE_ON &...
  3. Re: Using as many internal peripherals as possible.

    Thanks Richard for the answer. I understand. In more complex cases, this could cause problems.
    In my case, it works, but it is not correct to combine it like this.
    So in PBP use only On Interrupt...
  4. Re: Using as many internal peripherals as possible.

    In my minimalist mania, I tried using interrupts. On pin RA3 hooked up 10k pullup and pushbutton to ground. On pin RA5 LED. First I tried the On Interrupt statement from PBP not work at all. Then I...
  5. Re: Using as many internal peripherals as possible.

    I tested your codes, both works. The second example with TMR1 I like the most because maintain 4MHz clock. And yes, it compiles only 34 words. Just one more word than mine when I manipulate the clock...
  6. Re: Using as many internal peripherals as possible.

    Even better, only 33 words.



    #CONFIG
    __config _CONFIG1, _FOSC_INTOSC & _WDTE_OFF & _PWRTE_ON & _MCLRE_OFF & _CP_OFF & _CPD_OFF & _BOREN_ON & _CLKOUTEN_OFF & _IESO_ON & _FCMEN_ON
    __config...
  7. Using as many internal peripherals as possible.

    Hi,

    I wonder how small the code can it be if I use as many internal peripherals as I could (and I know).
    The task is simple, alternately slowly flash LEDs on ports RA0 and RA1. If the supply ...
  8. Replies
    0
    Views
    2,317

    test mesage by admin

    testing
    123
    evnivnvivninvn
    kjninie
    kjji
  9. Replies
    10
    Views
    2,848

    Re: PWPS Servo Problem

    Not helped at all, I try timeouts from 200, 300 up to 600 still freezes.

    I go hunting a few 16F688 PICs in SMD package and stay with these chips in this application.
  10. Replies
    10
    Views
    2,848

    Re: PWPS Servo Problem

    Even in proteus 8 simulator appears the same behavior. After sending a few commands the PWPS stops working and the PIC freezes.
    I tested PIC12F1840, that's strange.
  11. Replies
    10
    Views
    2,848

    Re: PWPS Servo Problem

    100% sure, here is my LST file:
    9249
  12. Replies
    10
    Views
    2,848

    Re: PWPS Servo Problem

    I tested the PIC12F1840 and PIC16F1824 with software serial input. PIC frequency set to 8MHz as required PBP at 9600 baud.
    It's working, but the response is kinda slow.


    '* Notes :...
  13. Replies
    10
    Views
    2,848

    Re: PWPS Servo Problem

    Unfortunately, same behavior. After sending the command via Bluetooth (I send the command for example: hserout ["Q",dec 155,10,11] in a loop while the pushbutton is pressed). After a while, the servo...
  14. Replies
    10
    Views
    2,848

    Re: PWPS Servo Problem

    Hi Richard,

    I don't know, I'm just guessing.

    Here the code for PIC 16F688 working just fine:


    '* Notes : PIC16F688 *...
  15. Replies
    10
    Views
    2,848

    PWPS Servo Problem

    Hi Folks,
    I actually discovered a problem with DT PWPS servo pulse generator.
    If I use hardware USART (hserin) for receiving commands from Bluetooth module and the PWPS plugin is active...
  16. Article: 4 bit 7 segment display with two 74HC595

    You can view the page at http://www.picbasic.co.uk/forum/content.php?r=552-4-bit-7-segment-display-with-two-74HC595
  17. Replies
    8
    Views
    4,068

    Re: HT16K33 led 14 segment backpack

    Of course, you're right. Now something happening. The display lit up and does some counting and flickering with segments.
    That with your firstly posted code. Now figuring out how to display numbers...
  18. Replies
    8
    Views
    4,068

    Re: HT16K33 led 14 segment backpack

    That default address I got from product listing:

    IIC address: default address 0X70
    A0, A1, A2,: IIC data address control terminal
    IIC address calculation: 0X70+A0+A1+A2 (floating is 0, shortet...
  19. Replies
    8
    Views
    4,068

    Re: HT16K33 led 14 segment backpack

    Thanks for reply. Not working but now more clear for me how to handle this controller. I tried init the controller with default I2c adress $70 like this:


    ;pic 12F1840
    #CONFIG
    __config...
  20. Replies
    8
    Views
    4,068

    HT16K33 led 14 segment backpack

    Hi folks,

    I want to ask members, someone has done working with this HT16K33 14. segment LED backpack in PBP.
    https://www.adafruit.com/product/1911
    I am trying to get this thing live, but no...
  21. Replies
    33
    Views
    26,676

    Re: Rotary encoder with DT interrupts

    Hi Richard, sorry for later response. Thanks for pointing me in to right way how to do it. Your first method not works for me, the second method polling works just fine but slows down the response...
  22. Replies
    33
    Views
    26,676

    Re: Rotary encoder with DT interrupts

    Cool, thanks. Both pbp,asm version works. Anyway, I tried two encoder types which I had on hand. Both works, but one count two counts to one detent, and the second count four to one detent.
    I tried...
  23. Replies
    33
    Views
    26,676

    Rotary encoder with DT interrupts

    Hi All,
    I'm struggling around rotary encoder with push button. I read the forum but not find any successfully solved example.
    Here is my code:


    ; PIC16F1847
    ...
  24. Re: Anyone used smart leds with APA102/SK9822 controller, with Picbasic ?

    I use them a lot. Easy to use in PBP, here some test blinks:


    '****************************************************************
    '* Name : APA LED *...
  25. Replies
    8
    Views
    13,453

    Re: RFID RDM6300 Code.. Sample ?? Anyone ??

    Hi Folks,
    I started to play with this RFID reader. For beginning I try to create a simple TAG reader and show the tag number on NOKIA LCD. I can read the tag and display it, but I can't extract the...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4