Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    3,206

    Re: 16F1826 ADC setup help!

    Thanks for your response Scampy!
    I was just wanting to use simple code to get the ADC to work. With the help of Richard's code (from the MELABS forum) I was able to get the ADC to work. Thanks to...
  2. Replies
    2
    Views
    3,206

    16F1826 ADC setup help!

    Help! I have this code:


    ;----[16F1826 Hardware Configuration]-------------------------------------------
    #IF __PROCESSOR__ = "16F1826"
    #DEFINE MCU_FOUND 1
    #CONFIG
    cfg1 = _FOSC_INTOSC ...
  3. Replies
    8
    Views
    6,652

    Re: Help in ASM code

    Thanks Robert! I still do not know how to delete a thread. :-)

    OK, as for the code, at this stage I need to figure out why a key-press only allows for a 1-2 second burst rather than continuous....
  4. Replies
    8
    Views
    6,652

    Re: Help in ASM code

    Also SORRY for the multiple posts. I could not figure out how to delete the other post. Can you let me know how I delete posts? Thanks and my apologies. :-)
  5. Replies
    8
    Views
    6,652

    Re: Help in ASM code

    The next step once this is figured out will see how I can use Pic Basic 3 to compile and make a HEX file so I can program the pic. I tried to compile already but got lots of errors. But, will cross...
  6. Replies
    8
    Views
    6,652

    Re: Help in ASM code

    Ooops! Sorry, here is the missing code!! :-)



    ;**********************************************************************
    ; *
    ;...
  7. Replies
    8
    Views
    6,652

    Help in ASM code

    Hi there!
    I have zero knowledge of assembly code. I got this from a website for an IR Remote Control. I used the supplied HEX file to program a 16F684 to success. My application requires I hold down...
  8. Replies
    11
    Views
    7,511

    Re: Ports interacting?? 16F1826

    I also see that I probably ran into a R-M-W issue as well...or got it to work in an unstable state. Good info!!!!!!! Thanks!!! Again, new to R-M-W. Cool.
  9. Replies
    11
    Views
    7,511

    Re: Ports interacting?? 16F1826

    I would like to know more about "LATs". Know zero. Does PIC Basic Pro support these? Tell me more please! Sounds interesting!!
  10. Replies
    11
    Views
    7,511

    Re: Ports interacting?? 16F1826

    Ha!! Nope, same issue on several sites looking for clues. At least I am not going too far mad!
  11. Replies
    9
    Views
    5,692

    Re: 16F1826 cannot get MCLR to act as an INPUT

    A poor solder joint that worked "sometimes". So, I replaced the LED thinking it was it initially. The re and re fixed the problem. I should have said a bad solder connection to the LED. But I only...
  12. Replies
    11
    Views
    7,511

    Re: Ports interacting?? 16F1826

    Good point Henrik! I thought it was a bad circuit board, that is why I thought the thread should be forgotten. However, it ended up being a bad LED. :-)
  13. Replies
    5
    Views
    4,438

    Re: Help to setup ADC for 16F1826

    Thanks for all the replies. Making some kind of sense now! :-)
  14. Replies
    11
    Views
    7,511

    Re: Ports interacting?? 16F1826

    Disregard the above thread! :-)

    BTW, how can I delete a thread??
  15. Replies
    11
    Views
    7,511

    Ports interacting?? 16F1826

    OK, any ideas on this one? This is my code:





    ;----[16F1826 Hardware Configuration]-------------------------------------------
    #IF __PROCESSOR__ = "16F1826"
    #DEFINE MCU_FOUND 1
    #CONFIG
  16. Replies
    9
    Views
    5,692

    Re: 16F1826 cannot get MCLR to act as an INPUT

    SOLVED!! I had a bad LED. All is working now. Sorry for the confusion.
  17. Replies
    9
    Views
    5,692

    Re: 16F1826 cannot get MCLR to act as an INPUT

    The LED is working if I set PortB.1=1 manually in code.
    I have an external 4MHz crystal.

    DEFINE OSC 4 should set the frequency. All other code commands work fine like the ADCIN.

    If I short...
  18. Replies
    9
    Views
    5,692

    16F1826 cannot get MCLR to act as an INPUT

    Here is my initialization code for 16F1826 . I want RA5 to act as an INPUT. However, when I check PortA.5 no matter if it is HI or LO, it does not seem to function as an INPUT.
    I have a 100k ohm...
  19. Replies
    5
    Views
    4,438

    Re: Help to setup ADC for 16F1826

    Hey Barry!
    Thanks so much!!!
    This did it!



    I actually thought you could tell a 10-bit ADC to work as an 8-bit. But no worries! All is perfect once again!!
  20. Replies
    5
    Views
    4,438

    Help to setup ADC for 16F1826

    I am pulling what hair is left out of my head.
    For PIC16F1826, I am trying to get the ADC setup.
    I have a voltage INPUT on RA2 (pin1).
    This is where I want to ADC to be controlled (AN2).
    I...
  21. Replies
    11
    Views
    5,269

    Re: LED 'Dot' Bargraph Issues - Newbie Code!

    Alrighty, I just implemented the code and for the most part it works real well! Thanks!
    I still get flickering on a single LED now at some in-between value.

    Not sure it this can be gotten rid of...
  22. Replies
    11
    Views
    5,269

    Re: LED 'Dot' Bargraph Issues - Newbie Code!

    OK, that is what I thought but could not get my head around it. Too many late nights!
    Thanks, I will give it a shot and see if it works.
    I sure learn a great deal on these forums. I have to start...
  23. Replies
    11
    Views
    5,269

    Re: LED 'Dot' Bargraph Issues - Newbie Code!

    Hi Darrel,
    Here is the entire code on that link:



    '****************************************************************
    '* Name : Average_Hyst.pbp *
    '* ...
  24. Replies
    11
    Views
    5,269

    Re: LED 'Dot' Bargraph Issues - Newbie Code!

    Hi Darrel,
    I tried the averaging routine but could not get it to work. In the code is has:




    GOTO OverAverage
    ' -=-=-=-=-=-= Average Analog values -=-=-=-=-=-=-=-=-=-=
  25. Replies
    11
    Views
    5,269

    Re: LED 'Dot' Bargraph Issues - Newbie Code!

    Wow, I cannot thank you enough Darrel! What elegant and efficient code! The difference between a newbie and a master. :-)
    I will study the code and get familiar with LOOKUP (never used that fuction...
Results 1 to 25 of 50
Page 1 of 2 1 2