Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.04 seconds.

  1. Thread: Goodbye

    by pedja089
    Replies
    53
    Views
    4,119

    Re: Goodbye

    You mention that you make your board.
    So just make ones that are compatible with arduino. It should be really easy, I think eagle have library with board layout and connectors.
    So just put your...
  2. Re: Re-using pins while still connected to MAX7219 ?

    Probably you will get audible click on start and stop of data transition, and probably some noise during.
    You may implement this
    https://www.romanblack.com/shift1.htm

    Also you could use SPI port...
  3. Replies
    17
    Views
    1,104

    Re: Multiplexer address control..

    Because that would generate more than double ASM instructions. Lets compare ASM for your code and mine.

    Here is your code

    LATB = LATB & $0F 'strip upper 4 bits
    LATB = LATB | Control << 4 'add...
  4. Replies
    17
    Views
    1,104

    Re: Multiplexer address control..

    I'm using as single bit, not array. And changing only upper 4 bit.
    For this PBP will generate 4 asm instruction per PBP line, and execute 2 or 3 of them.
    In worst case scenario 12 asm instruction...
  5. Replies
    16
    Views
    7,404

    Re: Calculate tuning value for the AD9850 DDS.

    I use 18F for 99% of my project. So by default i go to 18F ASM. Also pbp for 16F doesn't support long variables(because of large overhead, but in my opinion it should).

    You are right, but I put...
  6. Replies
    16
    Views
    7,404

    Re: Calculate tuning value for the AD9850 DDS.

    Here it is. It wasn't tested...

    ftw var long ; unsigned long ftw; // 32-bit Frequency Tuning Word
    f var long

    ;/************************************************************************
    ;...
  7. Replies
    17
    Views
    1,104

    Re: Multiplexer address control..

    for control = 0 to 15
    LATB.4=Control.0
    LATB.5=Control.1
    LATB.6=Control.2
    LATB.7=Control.3
    next control
  8. Replies
    16
    Views
    7,404

    Re: Calculate tuning value for the AD9850 DDS.

    Mike,
    It can be almost copy/paste in PBP. I can try to sort details to work in PBP. But I don't understand what is calcFTW@c,@f,@n... Is it just variables declared in function?
    Can you explain?
  9. Replies
    17
    Views
    1,104

    Re: Multiplexer address control..

    If you are using PIC 18F, then use simplest solution is
    LATB.4=Control.0
    LATB.5=Control.1
    LATB.6=Control.2
    LATB.7=Control.3

    EDIT:
    For PIC16

    PortBCopy var byte
  10. Replies
    14
    Views
    1,011

    Re: Current limit for HV Power Supply

    That solution sound very familiar to me :)
    I have done same thing on 42V Communication PSU. I used ADC in interrupt in background to monitor V and I, it was fast enough to not cause damage. Anyway I...
  11. Replies
    14
    Views
    1,011

    Re: Current limit for HV Power Supply

    Can you try it without base connected? Measure voltages measured above?
    It will be grate to get some pictures, T2 part no, layout etc... If you don't want to share public, send me links to PM....
  12. Replies
    14
    Views
    1,011

    Re: Current limit for HV Power Supply

    It was late when I replayed and didn't look in to schematic too much. And now it late again, so sorry in advanced if I miss something.
    You are right, for P channel configuration is correct. Your...
  13. Replies
    14
    Views
    1,011

    Re: Current limit for HV Power Supply

    EDIT: "DS voltage" on SHOULD BE: "GateSource voltage".
    https://reviseomatic.org/help/s-followers/Source%20Follower.php
    And right schematic for t2 is correct. Emitter should be on higher potential...
  14. Replies
    14
    Views
    1,011

    Re: Current limit for HV Power Supply

    You need N-channel mosfet. Not P. When DS voltage on P type mosfet is just 2-3V it will conduct.
    Your design need voltage follower, so you need to use N channel mosfet.
    ...
  15. Replies
    11
    Views
    1,199

    Re: 16-bit version of the WS2801 chip

    Woow.
    Is it published anywhere?
  16. Replies
    11
    Views
    1,199

    Re: 16-bit version of the WS2801 chip

    I helped friend with project for university. It had 4 counters(<2Hz, 50% duty) and 4 timers, 16x2 LCD and it was problem to fit all that code in microbasic on pic16f877. Simple code, I thing PBP...
  17. Replies
    11
    Views
    1,199

    Re: 16-bit version of the WS2801 chip

    PIC24 isn't dsPIC. PIC24 can be programmed in proton basic. I have dongle, but newer try it....
    Or in microbasic, but I don't recommend it. I fon't have nice experience with it.
  18. Replies
    5
    Views
    586

    Re: Some ASM Help Please

    You must dig little dipper in PBP librarys. Look for PBPPICxx.mac and PBPPICxx.LIB files for macro definition.
    If I was in your place, I would start from controlling PIN, then LCD basic...
  19. Replies
    5
    Views
    586

    Re: Some ASM Help Please

    That isn't ASM instruction. It is ASM macro, from PBP library.
    Alos arraywrite, etc... All instruction with ? are from PBP lib's.
  20. Replies
    8
    Views
    1,730

    Re: SSD1306 INCLUDE for PBP3

    Looks good. I don't have lcd to try it out.
    I hope that you didn't write all user command wrapper manually.
    I posted app for that
    http://www.picbasic.co.uk/forum/showthread.php?t=20208
  21. Replies
    9
    Views
    1,894

    Re: GOTO vs RETURN after a GOSUB

    Yes. It have almost same effect as MCLR pulled low, then high. Only 2 bits are different, if I remember correctly.
  22. Replies
    9
    Views
    1,894

    Re: GOTO vs RETURN after a GOSUB

    Better question is why you would use GOSUB without RETURN? That just doesn't have any sense.
    If stack is full then PBP can't call internal subroutines, and it crash...
    You just disabled reset on...
  23. Replies
    52
    Views
    9,590

    Re: Decline of PicBasic ?

    If I remember correctly DT use test PID/VID from microchip.
  24. Replies
    22
    Views
    3,570

    Re: PWM and audio noise

    Add capacitors close to noise source(right across pin of PIC). 1,10 and 100nF in parallel.
    Also Breadboard have large capacitance between 2 rows of pin. Try to put ground next to PWM pin.
    Use short...
  25. Replies
    52
    Views
    9,590

    Re: Decline of PicBasic ?

    For CDC(usb serial port) you have example from DT. And you don't need any PC software, except drivers. And you have another serial port when your device is plugged in.
    If you want HID comm, then you...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4