Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: I hope everybody is having a Great and Merry Xmas...

    I wish everyone a more succesfull year.
    Welcome 2020.
  2. Re: GOTO to a return in a subroutine amidst multiple If-Then's

    just say "return".

    Whenever it is hit, it will return to last call.



    carry_out_logic:

    if counter=4 then
    toggleme=~toggleme
  3. Re: An Excel tool to get the byte values for 7-segment displays

    I had made something like this a few years ago.
    This is V1.0.


    V2.0 makes detailed output.
  4. Thread: I2CRead problem

    by sayzer
    Replies
    9
    Views
    929

    Re: I2CRead problem

    Using ready-to-use tools to adjust the registers as we need, kills our ability of playing with them, and lowers the understanding of the hardware registers.

    Manual setting as much as possible is a...
  5. Replies
    19
    Views
    10,636

    Re: How do you drive a Serial LCD?

    Same here.

    This is a very nice work and, even more, Mike shares it here.

    Thanks to Mike from this part of the world.
  6. Replies
    2
    Views
    463

    Re: PIC16F18855 and DT elapsed timer

    Henrik posted the same code 1 second before me. So I deleted mine. :)
  7. Thread: Goodbye

    by sayzer
    Replies
    56
    Views
    6,838

    Re: Goodbye

    I agree with this.

    People with less electronic and/or programming knowledge are using Arduino with ready to use sample codes.
    And if there is something wrong, they ask "you" to solve the issue;...
  8. Replies
    4
    Views
    925

    Re: DS1307 Problems help please !!! :-)

    mainloop:
    Gosub gettime ' Read the time from the RTC

    IF (RTCHour=$00) and (RTCMin=$01) Then
    Gosub Light_On ' Light on
    ENDIF

    ...
  9. Re: Using parentheses for operation order when setting an IO pin?

    if you can change the Mode to arrive as 1-2-4-8-16 then ;



    GoSub SetAllPinsHigh
    PinA = ~Mode.0 '%00000001
    PinB = ~Mode.1 '%00000010
    PinC = ~Mode.2 '%00000100
    PinD = ~Mode.3 '%00001000
    PinE...
  10. Re: Serial data sent to 16F627A being read incorrectly by PIC?

    If you connect PIC directly or via resistors to PC, 7 bits are sent only.

    Add Max232 or MAX3232 type of RS232 chip in between the PIC and the PC.
  11. Replies
    7
    Views
    1,869

    Re: inverting all bits in a byte

    Why not just use grandpa's way:

    byte = 255- byte

    Inverts the bits.
  12. Replies
    6
    Views
    1,380

    Re: 12F683 PWM output not remembering.

    1. When the user pressed button, there is no button pause or bounce. Before the user releases button, duty changes thousands of time So give it some delay like 250ms so .
    1. For eeprom safety, have...
  13. Replies
    9
    Views
    2,616

    Re: GOTO vs RETURN after a GOSUB

    This should work.



    MainLoop:

    'DO SOME STUFF HERE.....

    FOR J = 0 TO 7
    GOTO SearchForClockSignal
  14. Replies
    22
    Views
    4,471

    Re: PWM and audio noise

    Let this be from me:

    Harmonics are generated at the latest ground pin (or say final gnd connection of power supply; the return point). Usually, this is minimized by collecting all gnd points...
  15. Replies
    15
    Views
    2,936

    Re: Unable to Open Include File

    Here is my point:

    Check file attributes;

    Right click the files that work; see how their attributes are applied; and apply the same attributes to other two that do not work.
  16. Re: Dual USART, Second USART sends but not receives, PIC18F24K22

    Sinde you say that UART1 is working fine with your config settings, then UART2 should also be working fine with the same config settings.
    Change your lines to




    DEFINE OSC 16

    DEFINE...
  17. Re: Dual USART, Second USART sends but not receives, PIC18F24K22

    TRISB.7 = 1
    TRISC.7 = 1


    RX1 and RX2 Pins = input pins.
  18. Replies
    10
    Views
    1,699

    Re: Serial data transmission period

    CASE 0,5 will work on minutes 0,5,10,15,20,25,30,35,40,45,50,55 as the DIG 0 is always either 0 or 5.
    CASE 1,6 will work on minutes 1,6,11,16,21,26,31,36,41,46,51,56 as the DIG 0 is always either 1...
  19. Replies
    10
    Views
    1,699

    Re: Serial data transmission period

    It is my bad.
    (TimeM//6) may take another 2,3,4,5 minutes depending on the minute value :)

    You may want use "Second". Example;




    SendFlag var bit
  20. Replies
    10
    Views
    1,699

    Re: Serial data transmission period

    This is one good way :)
    It seems that when this condition gets true, then it will send data for the duration of whole 1 minute.
    If you also add "Second" to this condition, it will also send the...
  21. Re: hserin buffer fills before all characters can be read

    Hserin [WAIT("U"),STR IncomingData\9]
    'This one waits forever for the correct string to arrive.


    Hserin 100, Jump, [WAIT("U"),STR IncomingData\9]
    'This one waits for the correct string for...
  22. Replies
    2
    Views
    918

    Re: DT Elapsed Timer

    Wifi or Wiki?

    http://www.picbasic.co.uk/forum/content.php?r=526-Re-Temporary-central-repository-of-Darrel-Taylor-s-works-(including-Mr-E-s-Multicalc
  23. Thread: MAX232 problems

    by sayzer
    Replies
    9
    Views
    4,639

    Re: MAX232 problems

    Using ST232 and MAX232, I use 1uf elect type for many years now. Never had a heat problem.
    For 232epe, some additional care may be required as Richard mentioned.
  24. Thread: MAX232 problems

    by sayzer
    Replies
    9
    Views
    4,639

    Re: MAX232 problems

    What is it that you did not understand on this circuit?



    8494
  25. Thread: Metal Detector

    by sayzer
    Replies
    18
    Views
    63,008

    Re: Metal Detector

    Hi Andy,

    Here is a link for you. It has a Metal Detector circuit with 12F1840.


    Also, below is the circuit schematic.

    http://www.digiwood.ee/images/metaldetectorimages/schematic_700.png
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4