Great feedback guys - thanks. I will look into the suggested chips.
Sometimes I wish Microchip would go retro and make some *really* basic chips with no fancy features, just s few A/Ds and all...
Type: Posts; User: tekart; Keyword(s):
Great feedback guys - thanks. I will look into the suggested chips.
Sometimes I wish Microchip would go retro and make some *really* basic chips with no fancy features, just s few A/Ds and all...
Thanks, that is an interesting chip. Unusual power pin locations an general pin placement. I see why you like it and will keep it in mind.
I'm also considering the PIC16F882 as it's a bit cheaper...
Andy,
I *almost* always drive the back light with a separate pin via a MOSFET to have the option of PWM dimming of the light. If you have 2 pins to spare - 1 for LCD and 1 for BL. Many LCDs draw...
Most of the designs I have done recently have used the F627/8 chips using mostly digital I/O and one or two analog inputs, but now I need two or three more digital I/O pins and I'm trying to figure...
Thanks Lefteris - this was very helpful. Not clear why you shift the data right by 4 bits, but it works great. Thanks for posting this! :)
Almost all CPUs (including PICs I think) use a simple logic circuit known as a "pseudo random number generator". It is basically a shift register that feeds back on itself producing a finite series...
Not sure if you figured this out, but 10bit AD need to be read out as RIGHT justified, and 8 bit reads should be LEFT justified. Here's a config that works for 8-bit:
ADCON0.0 = 1 ' AD...
Got all the OUTPUTS working fine - no need for LATA configurations apparently. Struggling with some kind of hardware bug - so I'm basically good. No idea how or why I would configure LATA at this...
Been testing that and the compiler seems to accept either
GreenLED var PORTA.1
or
GreenLED var LATA.1
Wow. Thanks Mark - I missed that. I just HATE all these whiz bang "features" that force us mere mortal coders to spend *days* learning a new chip! Grrrr. <end rant>
SO to implement a pin as...
Mark, thanks for the very helpful configuration settings. I got a test chip working fine using 8-bit reads and left justified results. I am in a similar position to peterdeco1 in that I have a...
I just heard from Charles that Darrell passed. Wow. I felt a disturbance in the force. He was a Jedi coder! I have at least one product on the market that would not have happened without his...
Of course! Been using PIC Basic for over 14 years! Early adopter that came over from Basic Stamps. - thanks for checking though :)
Thanks guys! Now I completely understand what I need to do and this solution will work extremely well for me. I have ordered some sample chips and will dig into this later in the week. I...
Mark, thank you for clarifying. I thought it was something like that but my inexperience with internal voltage references left me confused. I have ordered some F1822 chips to experiment with.
...
OK, I see that now. So how do I select between the IO pin and the Vref source in code? No idea how that is done...
Still don't see how the resistor - diod junction will provide me with a reading...
Yeah, I get the hardware side now - but how to implement this on the F683 with no Vref and one A/D? Am I missing something?
OK, now that is helpful. I was not aware of an 8-pin chip with all those features and at a good price too! Now I'll just have to learn how to configure the internal Vref to get the results I need. ...
Sorry pedja089,
I am having trouble understanding your very terse sentence. I would appreciate it if you could elaborate what you mean by this
As I understand it, my A/D reading will always be...
I don't see how this is any different from putting a resistor divider on the ADC input. The problem is that the divided voltage will track Vdd and the A/D reading will always represent the resistor...
Yes, I saw that but the best circuit (on p.8) uses an external comparator. Not sure if that can be implemented with the INTERNAL one?
I do a lot of battery powered designs with li-po (3.7v) batteries - mostly using 8 pin chips like the F683. I am trying to figure out if there is a way to use an AD input - or comparator...
Gary,
Thanks for posting this. I was struggling with getting commands to work - I was using SHIFTOUT, then I noticed how SLOOOW the SOMO is and found your post. Your bit bash shift out routine...
I want to thank CocaColaKid for posting his beautiful, awesome, well documented code! I was under the gun to get a temperature sensor working and ported it into my code and it works flawlessly. ...
Thanks for that Darrell. Thing is I only need to learn a new PIC every 12-18 months, so I tend to forget how to set them up. I had really never seen it as "everything is already OFF". As I blunder...