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...
Type: Posts; User: SOTASOTA; Keyword(s):
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...
Help! I have this code:
;----[16F1826 Hardware Configuration]-------------------------------------------
#IF __PROCESSOR__ = "16F1826"
#DEFINE MCU_FOUND 1
#CONFIG
cfg1 = _FOSC_INTOSC ...
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....
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. :-)
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...
Ooops! Sorry, here is the missing 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...
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.
I would like to know more about "LATs". Know zero. Does PIC Basic Pro support these? Tell me more please! Sounds interesting!!
Ha!! Nope, same issue on several sites looking for clues. At least I am not going too far mad!
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...
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. :-)
Thanks for all the replies. Making some kind of sense now! :-)
Disregard the above thread! :-)
BTW, how can I delete a thread??
OK, any ideas on this one? This is my code:
;----[16F1826 Hardware Configuration]-------------------------------------------
#IF __PROCESSOR__ = "16F1826"
#DEFINE MCU_FOUND 1
#CONFIG
SOLVED!! I had a bad LED. All is working now. Sorry for the confusion.
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...
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...
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!!
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...
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...
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...
Hi Darrel,
Here is the entire code on that link:
'****************************************************************
'* Name : Average_Hyst.pbp *
'* ...
Hi Darrel,
I tried the averaging routine but could not get it to work. In the code is has:
GOTO OverAverage
' -=-=-=-=-=-= Average Analog values -=-=-=-=-=-=-=-=-=-=
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...