Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    205

    Re: Merry Christmas to all...

    Merry Christmas to all who read this message - Thank you Dave.
  2. Re: Variables change depending on a SEROUT2 command placement in code

    Your Key_Cnt variable increments inside the IF condition and therefore, placing the SEROUT statement before the IF works correctly.

    You need to investigate that IF statement with this in mind.
  3. Re: Determining variable length (number of digits) possible?

    What you're looking for is commonly known as leading zero blanking. You could continue with filling blanks to digits after the value is zero. That is how you will achieve it.
  4. Re: Determining variable length (number of digits) possible?

    I will give a generic answer as my PICBasic skills are weak at the moment

    Assume your variable x contains 1000

    You can strip out digits like this from Right to left with position 0 at the right...
  5. Re: How is this data being formed from the values given?

    Hi Peter

    Let us walk through this as per what I suggested

    (100V-10)*126 = 11340 = $2C4C
    (150V-10)*126 = 17640 = $44E8

    Now suppose we drop the last nibble( divide by 16), you get $24C and...
  6. Replies
    11
    Views
    1,943

    Re: Sample code for USB - MIDI

    You probably didn't see this in the OM. Moreover, I wonder what being supermod got to do with helping someone
  7. Replies
    11
    Views
    1,943

    Re: Sample code for USB - MIDI

    Since you're looking for plain communication with the PC via USB, I can suggest you look up the USB CDC descriptor. This will turn your PIC into a USB comm port visible to your PC. You then just...
  8. Replies
    11
    Views
    1,943

    Re: Sample code for USB - MIDI

    have you tried the Windows based HID descriptor tool application? It contains some sample descriptors which can help you get started. I have not checked if it has a MIDI descriptor.

    I found a...
  9. Re: How is this data being formed from the values given?

    After a little analyses, this is what I got

    Output numbers = (Vin-10)*126 (could be more like 128 as it is then a left shift operation)
    So, converting into a table, this is what I see
    8963
    ...
  10. Re: Replacing array member on the fly (big LCD characters idea)

    I counted 8 custom characters and a full block(possibly from the existing character set). Is that correct?

    Enumerating,

    Full rounded top left corner,
    Full rounded top right corner
    Full...
  11. Replies
    19
    Views
    3,999

    Re: 12F683 Light Dimmer Problem (SOLVED)

    CAP100 is showing the wrong polarity.
  12. Replies
    19
    Views
    3,999

    Re: 12F683 Light Dimmer Problem

    Good work. Nice demo
  13. Replies
    19
    Views
    3,999

    Re: 12F683 Light Dimmer Problem

    Try this way.

    1. The zero crossing is where the triac turns off.

    2. You need the period between 2 zero crossings to decide the time after the zero crossing you need to turn ON the triac
    ...
  14. Re: ADC keyboard and fast response to user input, possible?

    I would try something like this. Of course, you have to

    define var key
    K_None con 0
    K_Inc con 1
    K_Dec con 2



    AdcSub:
  15. Replies
    3
    Views
    1,332

    Re: How to count the time while reading ADC ?

    I can offer you ideas only.

    If you're comfortable with interrupts, get a timer to ring every 1mS and keep tracking a variable that increments every ring and then use that variable that throughout...
  16. Replies
    7
    Views
    1,648

    Re: Output directly to input?

    Yes, you can. Output pins are the ones to create trouble when connected together.
  17. Re: I hope everybody is having a Great and Merry Xmas...

    A merry Christmas to all who come here
  18. Replies
    131
    Views
    75,671

    Re: PID-filter routine (2nd try).

    Dear Henrik et al.

    I am showing here how I implement PID in my 8bit process controllers. I have deliberately shown it as pseudo code for ease of understanding.
    Typical C conventions are used. ...
  19. Replies
    1
    Views
    2,305

    Re: Finding digital signals

    The easiest way to identify signal activity on a line is the digital logic probe that sounds a beeper when it identifies a logic low. So, some train of beeps present on probing the line will...
  20. Thread: Xmas...

    by Jerson
    Replies
    3
    Views
    2,110

    Re: Xmas...

    Christmas cheer and good wishes to all who pass by here. Merry Christmas
  21. Replies
    3
    Views
    1,747

    Re: how to calculate reverse value with scale

    output = (reading+130)*10/16
    should do it. Where I assume you are reading -130 to +30.

    Thus, a reading of -130 will give output = 0
    and a reading of +30 will give output = 100
  22. Replies
    16
    Views
    5,576

    Re: MCP3201 problems

    It is a long time since I used the MCP3201, so I am not current with the information. I will suggest the following change to be made


    if b_level=last_b_level then
    ...
  23. Replies
    4
    Views
    2,593

    Re: Is no one monitoring the forum?

    There's a lot of spam posts getting through these days. I filter many, but, due to time zone differences, many stay alive till some moderator/admin swats them
  24. Replies
    8
    Views
    3,519

    Re: Quiet around here

    Heck yes. I get here early morning to find spam. They seem to have a pattern too - post a new thread, get around 8-13 views and just vamoose. Funny.

    Well, I guess folks have moved on to bigger...
  25. Re: Display values from two PIC16F series controllers with one LCD display

    Assuming you connect the data lines together and the control signals together, you still need a way to arbitrate access to the common resource (the LCD). Therefore one extra handshake line from each...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4