Search found 264 matches

by siliconchip
Tue May 12, 2020 2:43 pm
Forum: Programming Tips & Tricks
Topic: Variable Frequency Generator 500Hz to 5KHz (100 Hz Steps)
Replies: 23
Views: 11217

Re: Variable Frequency Generator 500Hz to 5KHz (100 Hz Steps)

hi martin, thanks for taking the time to work this out, i need a better understanding on how interrupts work along with the calculation side of things i have been playing around with timings to try and find an answer but what you have provided hits the nail on the head i need to dissect this and get...
by siliconchip
Sat May 09, 2020 7:11 pm
Forum: Programming Tips & Tricks
Topic: Variable Frequency Generator 500Hz to 5KHz (100 Hz Steps)
Replies: 23
Views: 11217

Re: Variable Frequency Generator 500Hz to 5KHz (100 Hz Steps)

hi martin
using your formula generator ive added a flowchart to try and hit my 1Hz upwards, all ive done is run it at 8MHz no config done yet, can you confirm i am on the right track please ?? target device probably a 16f1825 although for this ive quickly used a 16f88

bob
by siliconchip
Sat May 09, 2020 6:40 pm
Forum: Programming Tips & Tricks
Topic: Variable Frequency Generator 500Hz to 5KHz (100 Hz Steps)
Replies: 23
Views: 11217

Re: Variable Frequency Generator 500Hz to 5KHz (100 Hz Steps)

hi martin
once again thanks yes i think you first posted this 9 years ago, could i use a similar formula to run from 1Hz upwards

bob
by siliconchip
Sat May 09, 2020 11:15 am
Forum: Programming Tips & Tricks
Topic: Variable Frequency Generator 500Hz to 5KHz (100 Hz Steps)
Replies: 23
Views: 11217

Re: Variable Frequency Generator 500Hz to 5KHz (100 Hz Steps)

Hi martin
Thanks for the reply in the calculation where did the figure 9 and 50 come from :oops:

Bob
by siliconchip
Fri May 08, 2020 7:17 pm
Forum: Programming Tips & Tricks
Topic: Variable Frequency Generator 500Hz to 5KHz (100 Hz Steps)
Replies: 23
Views: 11217

Re: Variable Frequency Generator 500Hz to 5KHz (100 Hz Steps)

hi martin
ive come across this post you made several years ago, would you be able to explain the math in the calculation box,i wouldn't mind adapting this from 1 - 2000 Hz if possible ive had a play but do not understand the calculations,cheers

bob
by siliconchip
Tue Apr 21, 2020 9:10 pm
Forum: 8-Bit PIC
Topic: LCD READOUT
Replies: 18
Views: 1107

Re: LCD READOUT

hi martin, thanks for you time and patience on this to say it was doing my head in was an under statement, and as always you pointed me in the right direction, this is only a small part of a project im working on which is to test 3 lines on a multi vehicle bus line, i appreciate all your help becaus...
by siliconchip
Tue Apr 21, 2020 8:51 pm
Forum: 8-Bit PIC
Topic: LCD READOUT
Replies: 18
Views: 1107

Re: LCD READOUT

hi martin this is a lot better thanks,from power up please insert shows, if a 470 ohm resistor for example is tested "PLEASE INSERT" disappears and value = 471.218963 ohm appears, however if the resistor is removed please insert comes back up followed by the last 3 digits of the previous read ie 63 ...
by siliconchip
Tue Apr 21, 2020 6:43 pm
Forum: 8-Bit PIC
Topic: LCD READOUT
Replies: 18
Views: 1107

Re: LCD READOUT

hi martin,
here it is i had to send as a pdf as it said proteus was an invalid file

bob
by siliconchip
Tue Apr 21, 2020 6:12 pm
Forum: 8-Bit PIC
Topic: LCD READOUT
Replies: 18
Views: 1107

Re: LCD READOUT

Hi martin
Have got proteus by labcenter

Bob
by siliconchip
Tue Apr 21, 2020 4:54 pm
Forum: 8-Bit PIC
Topic: LCD READOUT
Replies: 18
Views: 1107

Re: LCD READOUT

hi martin,
top line shows value = 0.0000kohm

second line shows 0.000000

bob
by siliconchip
Tue Apr 21, 2020 3:35 pm
Forum: 8-Bit PIC
Topic: LCD READOUT
Replies: 18
Views: 1107

Re: LCD READOUT

Hi martin, Just a thought but with my displaying showing 0.000kohms when notvmeasuring is this like an infinite resistance as the display shows the K sign which makes me think the code is going on the yes branch of R >than 1000 bit like a multimeter on resistance not connected to anything ie display...
by siliconchip
Tue Apr 21, 2020 3:03 pm
Forum: 8-Bit PIC
Topic: LCD READOUT
Replies: 18
Views: 1107

Re: LCD READOUT

hi martin,
i adjusted R<=0.01 but no joy even went back as far to 0.000000000000001 but again no joy ??

bob
by siliconchip
Tue Apr 21, 2020 1:59 pm
Forum: 8-Bit PIC
Topic: LCD READOUT
Replies: 18
Views: 1107

Re: LCD READOUT

hi martin, the changes have had the desired effect although there are a couple of lcd quirks, first off in simulation the program works as intended but on hardware if no resistance is being measured the display shows 0.0000kohm if a resistor below 1K is measured the K disappears if over 1K it return...
by siliconchip
Tue Apr 21, 2020 9:50 am
Forum: 8-Bit PIC
Topic: LCD READOUT
Replies: 18
Views: 1107

Re: LCD READOUT

Hi martin thanks for the reply, thats handy to know about the lcd character, it seems i tried everything other than what you suggested guess i spent too long chasing my tail, ive now made the changes but when going to the K readings i lose the ohm character, i tried to remedy this by adding another ...
by siliconchip
Mon Apr 20, 2020 7:08 pm
Forum: 8-Bit PIC
Topic: LCD READOUT
Replies: 18
Views: 1107

LCD READOUT

hi all, ive made the beginnings of a resistance meter i would like to display when below 1K with the reading and the ohm sign which ive done and if the reading goes over 1K the the "K" shows a digit before the ohm sign which ive sort of done trouble is on power up with no reading taken the display s...
by siliconchip
Thu Apr 02, 2020 6:47 pm
Forum: Electronics products
Topic: handheld enclosures with lcd cut out
Replies: 7
Views: 1633

Re: handheld enclosures with lcd cut out

hi thanks for the reply's, benj when you say you can print me one is this 3D printing

bob
by siliconchip
Wed Apr 01, 2020 7:05 pm
Forum: Electronics products
Topic: handheld enclosures with lcd cut out
Replies: 7
Views: 1633

handheld enclosures with lcd cut out

hi all,
can anyone point me in the right direction, im after a plastic handheld enclosure with a cut out for a 16x2 lcd, cant seem to find anything, thanks in advance

bob
by siliconchip
Thu Feb 13, 2020 10:27 pm
Forum: 8-Bit PIC
Topic: unable to compile
Replies: 10
Views: 1479

Re: unable to compile

Hi Martin,
Thanks I messed with the tmr0 changing to tmr01 that was my fault originally it did work in flowcode 6 but I couldn't get it to work in 7 so started fiddling and forgot to revert back

Bob
by siliconchip
Thu Feb 13, 2020 9:34 pm
Forum: 8-Bit PIC
Topic: unable to compile
Replies: 10
Views: 1479

Re: unable to compile

hi martin
i guess i will need to do as you say and remove the supplementary code but im sure ive compiled on flowcode 7 in the past and it worked and for some reason doesnt now when i get 5 mins i will check in hardware and let you know

cheers bob
by siliconchip
Thu Feb 13, 2020 8:41 pm
Forum: 8-Bit PIC
Topic: unable to compile
Replies: 10
Views: 1479

Re: unable to compile

hi martin not sure how to do what you asked but ive copied the text below, Title: Description: Device: PIC.16F.16F1825 Generated by: Flowcode v7.3.0.5 Date: Thursday, February 13, 2020 19:33:25 Users: 1 Registered to: siliconchip Licence key: X4H0GQ http://www.matrixtsl.com Launching the compiler......
by siliconchip
Thu Feb 13, 2020 6:47 pm
Forum: 8-Bit PIC
Topic: unable to compile
Replies: 10
Views: 1479

Re: unable to compile

also the default is empty for the linker/assembler parameter on the wiki, when checking my flowcode 6 the linker/assembler has writing in it and seems to work fine

cheers bob
by siliconchip
Thu Feb 13, 2020 6:36 pm
Forum: 8-Bit PIC
Topic: unable to compile
Replies: 10
Views: 1479

Re: unable to compile

hi martin
in the supplementary code box im using #include <rand.h> i seem to recal ages ago i had to put something like srand in the linker/assembler as well ??
by siliconchip
Thu Feb 13, 2020 6:16 pm
Forum: 8-Bit PIC
Topic: unable to compile
Replies: 10
Views: 1479

unable to compile

hi all,
im a flowcode 7 user am i right that when you press build in the toolbar then compiler options then the linker/assembler tab there should be something in my parameters box this is empty and im having trouble compiling known good programs

cheers bob
by siliconchip
Mon Aug 26, 2019 2:55 pm
Forum: Programming Tips & Tricks
Topic: multi channel anologue
Replies: 1
Views: 2155

multi channel anologue

hi all, apology's if this is posted in the wrong section, im aiming to use 3 analogue inputs in turn to read data but want to connect all three to the same output in turn whats the easiest way to connect all three inputs to a single output without interfering with each other,i had thought initially ...