Search found 139 matches

by daveb0360
Wed Aug 08, 2012 12:18 am
Forum: Flowcode V4
Topic: code for dual voltage 'window' on ADC input
Replies: 85
Views: 49782

Re: code for dual voltage 'window' on ADC input

Hi Martin, I see your recommendation for using 12F617 and I'm all for it, not least because it's cheaper but particularly for it's greater flash capacity. Problem is, PICKIT 2 doesn't support this chip.....unless you know better. There is some talk on forums, about creating a pickit2 header file for...
by daveb0360
Tue Aug 07, 2012 11:29 pm
Forum: Flowcode V4
Topic: code for dual voltage 'window' on ADC input
Replies: 85
Views: 49782

Re: code for dual voltage 'window' on ADC input

Hi Martin, the timings are not critical. All I need is easily differentiated pulsing for the various conditions. The only definite is the standby phase, when supply voltage is below operational window, i.e. outside the the upper or lower acceptable ranges. To explain......The circuit must assume the...
by daveb0360
Tue Aug 07, 2012 11:06 pm
Forum: Flowcode V4
Topic: code for dual voltage 'window' on ADC input
Replies: 85
Views: 49782

Re: code for dual voltage 'window' on ADC input

Hi Martin,
Completely understood on the risk and responsibility front..........it's all mine....no comebacks guaranteed.

Just can't thank you enough.
Any time you need hardware design or PCB design........I'm your man............t'would be good to return the favour some day.

Dave
by daveb0360
Tue Aug 07, 2012 10:40 am
Forum: Flowcode V4
Topic: code for dual voltage 'window' on ADC input
Replies: 85
Views: 49782

Re: code for dual voltage 'window' on ADC input

Hi, I never used 100K in my circuit.. always 10K..so you can change that to 10K easily One question.......do you think it would be ok to replace the 100K resistor, R8 with a 10k....saves me buying another value in......10K is used elsewhere in the circuit and would reduce cost/complexity... Enamul ...
by daveb0360
Tue Aug 07, 2012 10:37 am
Forum: Flowcode V4
Topic: code for dual voltage 'window' on ADC input
Replies: 85
Views: 49782

Re: code for dual voltage 'window' on ADC input

Thanks Enamul,
I was more concerned as to whether there was any limitations within the chip........but it's good know there are no program limitations known....

Cheers again.
Dave
by daveb0360
Tue Aug 07, 2012 9:36 am
Forum: Flowcode V4
Topic: code for dual voltage 'window' on ADC input
Replies: 85
Views: 49782

Re: code for dual voltage 'window' on ADC input

Hi Guys, Is there a limit to the number of macros that can be called from within the main loop? I am thinking I could write a macro for each of the led flash functions and call the relevant one from within the main loop.....done in the correct order and cancelling the current one would seem logical ...
by daveb0360
Tue Aug 07, 2012 9:02 am
Forum: Flowcode V4
Topic: code for dual voltage 'window' on ADC input
Replies: 85
Views: 49782

Re: code for dual voltage 'window' on ADC input

Wow.....the help you provided is unbelievable.......thanks so much. FYI, the heater is actually a water heater and has a maximum preset temp of 45C +/- 2c. The thermistor is http://uk.farnell.com/vishay-bc-components/ntcs0603e3222fmt/thermistor-ntc-0603-2k2/dp/1761147 2.2K @25c and beta of 3520k Boa...
by daveb0360
Mon Aug 06, 2012 2:43 pm
Forum: Flowcode V4
Topic: code for dual voltage 'window' on ADC input
Replies: 85
Views: 49782

Re: code for dual voltage 'window' on ADC input

Thanks, am using Pickit 2....it's been a great little programmer.

Dave
by daveb0360
Mon Aug 06, 2012 1:40 pm
Forum: Flowcode V4
Topic: code for dual voltage 'window' on ADC input
Replies: 85
Views: 49782

Re: code for dual voltage 'window' on ADC input

One question.......do you think it would be ok to replace the 100K resistor, R8 with a 10k....saves me buying another value in......10K is used elsewhere in the circuit and would reduce cost/complexity...

Dave
by daveb0360
Mon Aug 06, 2012 1:36 pm
Forum: Flowcode V4
Topic: code for dual voltage 'window' on ADC input
Replies: 85
Views: 49782

Re: code for dual voltage 'window' on ADC input

Hi Martin, Yes, division is approximately 6.....depending on ADC input loading, this is where I need to 'play' with conversions and calcs when I have the finished hardware on the bench......this I am ok with thanks.....or I hope I will be....lol. Am waiting for PCB's to be delivered tomorrow, then I...
by daveb0360
Mon Aug 06, 2012 1:30 pm
Forum: Flowcode V4
Topic: code for dual voltage 'window' on ADC input
Replies: 85
Views: 49782

Re: code for dual voltage 'window' on ADC input

FYI, This is the front end of the circuit.....





Dave
by daveb0360
Mon Aug 06, 2012 12:37 pm
Forum: Flowcode V4
Topic: code for dual voltage 'window' on ADC input
Replies: 85
Views: 49782

Re: code for dual voltage 'window' on ADC input

Hi Martin,
Can't thank you enough, now all I have to do is write the code for the temperature control and allocate it to the correct part of the code......genius you guys are..


Thanks so much......I reckon I can roll from this...

Cheeeeeerss

Dave
by daveb0360
Mon Aug 06, 2012 12:35 pm
Forum: Flowcode V4
Topic: code for dual voltage 'window' on ADC input
Replies: 85
Views: 49782

Re: code for dual voltage 'window' on ADC input

Hi Enamul, You are a genius sir.........I bow to you... Now I have to do my bit and produce the code to measure temperature, hysteresis and indication. When I've done this, I'll forward you the code if you don't mind for an expert analysis.......thanks so much again. I hope this talent you have mean...
by daveb0360
Mon Aug 06, 2012 12:15 pm
Forum: Flowcode V4
Topic: code for dual voltage 'window' on ADC input
Replies: 85
Views: 49782

Re: code for dual voltage 'window' on ADC input

Hi Enamul,
If I rewrite the macro 'normal' to contain the code for the temperature measurement and control routine, my thinking is that this will work as a thermostat that only works when the voltages measured are within the required windows.........Am I right?

dave
by daveb0360
Mon Aug 06, 2012 12:09 pm
Forum: Flowcode V4
Topic: code for dual voltage 'window' on ADC input
Replies: 85
Views: 49782

Re: code for dual voltage 'window' on ADC input

Hi Enamul, Thanks so much for this, yes I am running internal clock at 4mhz. This simulates ALMOST as needed. The only issue is that when the led flashes on overrange, it should stop flashing when back in range......I may be able to figure this out myself but you have given me fuel for going forward...
by daveb0360
Mon Aug 06, 2012 8:08 am
Forum: Flowcode V4
Topic: code for dual voltage 'window' on ADC input
Replies: 85
Views: 49782

code for dual voltage 'window' on ADC input

Hi Guys, I'm hoping someone can help with this one pretty quickly as I've got a customer waiting. I have built a simple thermostat..hardware done but now I need some code to run it. The unit needs to run on a 12 or 24 volt system so the PIC (12F675) needs to check that the incoming supply is between...
by daveb0360
Fri Aug 12, 2011 9:33 pm
Forum: Flowcode V4
Topic: Explanation in detail of Port B Interrupts.
Replies: 7
Views: 6499

Re: Explanation in detail of Port B Interrupts.

Thanks again for all this assistance. Am busy putting all the differing elements together. A little bewildered at the moment but it's all starting to make sense.



Many Thanks guys
by daveb0360
Thu Aug 11, 2011 12:33 pm
Forum: Flowcode V4
Topic: Explanation in detail of Port B Interrupts.
Replies: 7
Views: 6499

Re: Explanation in detail of Port B Interrupts.

Thanks guys, I am really starting to understand. As it happens, I only need two interrupts so the 876 will suffice and I have a few in stock to play with. This is the type of feedback we need (by we, I mean us newbies and code phobics) I am now progressing.....I wondered what 'IOC' meant, saw it use...
by daveb0360
Wed Aug 10, 2011 3:40 pm
Forum: Flowcode V4
Topic: Explanation in detail of Port B Interrupts.
Replies: 7
Views: 6499

Re: Explanation in detail of Port B Interrupts.

Hi again Ben,
I will use 16F876 or 913,
I am lost by your explanation re: "mask in software by retaining a copy of what the register looked like last time an interrupt was fired"; can you point to any examples on the forum as I can't find anything that makes sense to me.

Cheers
Dave
by daveb0360
Wed Aug 10, 2011 3:35 pm
Forum: Flowcode V4
Topic: Can Analogue value be used to trigger an interrupt?
Replies: 3
Views: 2358

Re: Can Analogue value be used to trigger an interrupt?

Thanks Ben, I have NO knowledge of C so will be trawling the forum for input. Hopefully I will find something I can decipher but will probably come back for direct advice &or examples once I establish that this is truly a way to go as I suspect it is. My circuit will need to react to this analogue l...
by daveb0360
Wed Aug 10, 2011 3:30 pm
Forum: Flowcode V4
Topic: method to debounce / ignore noise on ADC
Replies: 2
Views: 2386

Re: method to debounce / ignore noise on ADC

Thanks Ben, I already intend to have hardware filter and was just wanting belt and baces approach to augment the hardware because this trigger MUST NOT activate in error. Your decision and retest is logical and I think a loop of 10 with 25ms per test is a good way to be sure. Thanks for the input. D...
by daveb0360
Wed Aug 10, 2011 2:47 pm
Forum: Flowcode V4
Topic: method to debounce / ignore noise on ADC
Replies: 2
Views: 2386

method to debounce / ignore noise on ADC

Hi, Can anyone suggest a method of including debounce or noise/spike suppression on ADC inputs. My design watches for an analogue signal voltage falling outside a mid rail 'ignore' window and reacts accordingly. I have overcome this programmability thanks to the forum and can include hardware filter...
by daveb0360
Wed Aug 10, 2011 2:42 pm
Forum: Flowcode V4
Topic: Explanation in detail of Port B Interrupts.
Replies: 7
Views: 6499

Explanation in detail of Port B Interrupts.

Hi, Can anyone please provide an explanation of how port B interrupts are used. For example, if port B is set as interrupt port, does this encompass all bits of the port or can 2 bits of port be used as interrupts and others used normally? Sorry if this sounds dumb but I really am new to this progra...
by daveb0360
Wed Aug 10, 2011 2:36 pm
Forum: Flowcode V4
Topic: Can Analogue value be used to trigger an interrupt?
Replies: 3
Views: 2358

Can Analogue value be used to trigger an interrupt?

Hi, Just curiosity as I am trying to learn how to use iterrupts for a small project. (Using 16F876 on internal oscillator at 4Mhz) I need to know if an analogue value into ADC can be used to trigger an interrupt. For example, a mid rail voltage that falls below or above a threshold whilst executing ...
by daveb0360
Fri Aug 05, 2011 10:54 pm
Forum: Flowcode V4
Topic: 16X2 LCD works, 16X1 doesn't.
Replies: 2
Views: 2041

Re: 16X2 LCD works, 16X1 doesn't.

Hi Ben, I have progressed the project now so the error isn't there any more but I will backtrack over the weekend and send you the file for you to look at. I think you are right, this is probably a sim problem but one that could catch users out if not debugged.....it certainly had me guessing and I ...