Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Replies
    27
    Views
    527

    Re: Who sees my stupid mistake?

    It seems the problem is solved. (Although I still don't understand why my first attempt didn't work...)
    Now I use BUTTON as included in Picbasic. I don't like all the labels, but at least this works...
  2. Replies
    27
    Views
    527

    Re: Who sees my stupid mistake?

    In the meantime there is some progress:


    CMCON = 7 ' Digital mode
    DEFINE OSC 20 ' 20 MHZ OSC. ...
  3. Replies
    27
    Views
    527

    Re: Who sees my stupid mistake?

    I doubt it... It is a brandnew one!
    What I find extremely strange, is that it seems the status of PORTB.x is not read in:


    if PORTB.0 = 1 then
    Serout2 PORTB.7, 16384+12, [144, 44, 127] ...
  4. Replies
    27
    Views
    527

    Re: Who sees my stupid mistake?

    It doesn't. I tried already:



    If PORTB.0 = 1 then
    PORTB.6 = 1
    else
    PORTB.6 = 0
    ' and loop...
  5. Replies
    27
    Views
    527

    Re: Who sees my stupid mistake?

    I never had problems setting the config parameters in the programmer, but I will try that anyway...
    I have a feeling that the problem is in the line:


    if PORTB.0 = 1 then '<---- this line?
    ...
  6. Replies
    27
    Views
    527

    Re: Who sees my stupid mistake?

    I set the config parameters in the programmer (as usual).
    The values you mentioned are the defaults in my programmer, except the HS mode, that I set manually.
    The point is that everything (almost)...
  7. Replies
    27
    Views
    527

    Re: Who sees my stupid mistake?

    So nobody can spot a mistake in my sample code?
    Strange, because this line is handled correctly:


    If (PORTB.0=1) or (PORTB.1=1) or (PORTB.2=1) or (PORTB.3=1) or (PORTB.4=1) then
    .....
  8. Replies
    27
    Views
    527

    Re: Who sees my stupid mistake?

    The 16384+12 is correct, I have used that before.
    The calculation is: (1.000.000/Baudrate) - 20 , so 1.000.000 / 31250 = 32 -20 = 12.
    For inverted output set bit 14, = 16384.
    But even with a...
  9. Replies
    27
    Views
    527

    Re: Who sees my stupid mistake?

    I forgot to mention that there are resistors to ground (to keep the input 'low' when no button is pressed) and that the buttons switch to the +5 Volts.
  10. Replies
    27
    Views
    527

    Who sees my stupid mistake?

    Hello,

    After not having used picbasic for a couple of years, I decided to create some code to produce MIDI information.
    The intended use is to have five buttons to control a DAW.
    The code...
  11. Replies
    2
    Views
    10,048

    Re: Serin with 16F876

    No idea what was wrong, but now it works.
    (It may have been the FTDI USB to serial cable.)
  12. Replies
    2
    Views
    10,048

    Serin with 16F876

    I am trying to read the serial (RS232) input on LEDs, connected to PORTB of the 16F876.
    (Later this will be part of a larger application, I need both PORTB and PORTC as outputs.)
    I am using an FTDI...
  13. Replies
    11
    Views
    18,200

    Re: Sample code for USB - MIDI

    OK, let's forget this all and use a dedicated USB to MIDI chip...
  14. Replies
    11
    Views
    18,200

    Re: Sample code for USB - MIDI

    Nobody knows? Too difficult?
  15. Replies
    11
    Views
    18,200

    Sample code for USB - MIDI

    Is there any sample code available to have a PIC18F4550 recognized by the PC as an (USB) MIDI device?
    (And yes, I know it is mainly finding the correct device descriptor...)
    I have been struggling...
  16. Replies
    16
    Views
    60,373

    Re: MIDI Descriptor for USB communication

    Interesting! This is what I get when I connect a commercial USB-to-MIDI interface



    Connection Status : 0x01 (Device is connected)
    Port Chain : 5-2
    PortAttributes ...
  17. Replies
    16
    Views
    60,373

    Re: MIDI Descriptor for USB communication

    Great! That will give a lot of useful information about a commercial USB/MIDI interface!
  18. Replies
    16
    Views
    60,373

    Re: MIDI Descriptor for USB communication

    Thanks!
    I will have a look at it and see if I can use it.
    By the way: what did you use to retrieve that long list of information about the PicKit2 programmer?
  19. Replies
    16
    Views
    60,373

    Re: MIDI Descriptor for USB communication

    Yes, that is probably the way to go, I only wished I had a PBP programmed USB device that would do MIDI...
    The information about the PIC2 programmer gives a lot of information, but it doesn't do...
  20. Replies
    16
    Views
    60,373

    Re: MIDI Descriptor for USB communication

    Yes, I think you are right.
    Besides that, I think $400 is not real for an application like this.
    Especially because you can't get an idea what you will buy...
  21. Replies
    16
    Views
    60,373

    Re: MIDI Descriptor for USB communication

    Wow, that is a lot of (probably) useful information!
    The next question is: how to generate a descriptor file from this...
    Thanks!

    By the way: I saw HIDmaker Pro. That looks like an interesting...
  22. Replies
    16
    Views
    60,373

    Re: MIDI Descriptor for USB communication

    Thanks!

    The first link is my previous question, that never received a usable answer. (Although some reactions had good intentions.)

    The second link does not give any code, the code could be...
  23. Replies
    16
    Views
    60,373

    MIDI Descriptor for USB communication

    I have been experimenting with MIDI over USB for some time, without much success.
    It seems there is more needed than only a HID descriptor, to have a PIC (18F4550) recognized as a 'MIDI Device'....
  24. Thread: MIDI over USB

    by RuudNL
    Replies
    7
    Views
    32,018

    Re: MIDI over USB

    DaveC3, your code has been a great help so far.
    Unfortunately, I didn't manage to get it working.
    I suppose there is something wrong with my fuse settings.
    Do you mind to give me your config...
  25. Thread: MIDI over USB

    by RuudNL
    Replies
    7
    Views
    32,018

    Re: MIDI over USB

    Which PIC did you use? (I will first try if everything compiles before I modify the file(s) )
Results 1 to 25 of 57
Page 1 of 3 1 2 3