Hi ive added my code without testing on hardware at this point im hopeful ive got the correct calculations for 60Hz, also is it acceptable the way i start the toggle then disable the Interrupt after 20 seconds or is there a better way
Cheers
Bob
Search found 392 matches
- Fri Oct 23, 2020 3:04 pm
- Forum: 8-Bit PIC
- Topic: Fixed frequency timed output
- Replies: 33
- Views: 14812
- Fri Oct 23, 2020 10:08 am
- Forum: 8-Bit PIC
- Topic: Fixed frequency timed output
- Replies: 33
- Views: 14812
Re: Fixed frequency timed output
Thanks stefan and martin this gives me something to get started on
Cheers
Bob
Cheers
Bob
- Fri Oct 23, 2020 9:08 am
- Forum: 8-Bit PIC
- Topic: Fixed frequency timed output
- Replies: 33
- Views: 14812
Fixed frequency timed output
Hi all, is it possible to generate a fixed 60Hz square wave for a timed period from a pic and if so how should i start to approach this, thanks in advance
Bob
Bob
- Thu May 14, 2020 5:47 pm
- Forum: Programming Tips & Tricks
- Topic: Variable Frequency Generator 500Hz to 5KHz (100 Hz Steps)
- Replies: 23
- Views: 28588
Re: Variable Frequency Generator 500Hz to 5KHz (100 Hz Steps)
thanks martin
bob
bob
- Tue May 12, 2020 2:43 pm
- Forum: Programming Tips & Tricks
- Topic: Variable Frequency Generator 500Hz to 5KHz (100 Hz Steps)
- Replies: 23
- Views: 28588
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...
- Sat May 09, 2020 7:11 pm
- Forum: Programming Tips & Tricks
- Topic: Variable Frequency Generator 500Hz to 5KHz (100 Hz Steps)
- Replies: 23
- Views: 28588
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
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
- Sat May 09, 2020 6:40 pm
- Forum: Programming Tips & Tricks
- Topic: Variable Frequency Generator 500Hz to 5KHz (100 Hz Steps)
- Replies: 23
- Views: 28588
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
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
- Sat May 09, 2020 11:15 am
- Forum: Programming Tips & Tricks
- Topic: Variable Frequency Generator 500Hz to 5KHz (100 Hz Steps)
- Replies: 23
- Views: 28588
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![Embarassed :oops:](./images/smilies/icon_redface.gif)
Bob
Thanks for the reply in the calculation where did the figure 9 and 50 come from
![Embarassed :oops:](./images/smilies/icon_redface.gif)
Bob
- Fri May 08, 2020 7:17 pm
- Forum: Programming Tips & Tricks
- Topic: Variable Frequency Generator 500Hz to 5KHz (100 Hz Steps)
- Replies: 23
- Views: 28588
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
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
- Tue Apr 21, 2020 9:10 pm
- Forum: 8-Bit PIC
- Topic: LCD READOUT
- Replies: 18
- Views: 9867
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...
- Tue Apr 21, 2020 8:51 pm
- Forum: 8-Bit PIC
- Topic: LCD READOUT
- Replies: 18
- Views: 9867
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 ...
- Tue Apr 21, 2020 6:43 pm
- Forum: 8-Bit PIC
- Topic: LCD READOUT
- Replies: 18
- Views: 9867
Re: LCD READOUT
hi martin,
here it is i had to send as a pdf as it said proteus was an invalid file
bob
here it is i had to send as a pdf as it said proteus was an invalid file
bob
- Tue Apr 21, 2020 6:12 pm
- Forum: 8-Bit PIC
- Topic: LCD READOUT
- Replies: 18
- Views: 9867
Re: LCD READOUT
Hi martin
Have got proteus by labcenter
Bob
Have got proteus by labcenter
Bob
- Tue Apr 21, 2020 4:54 pm
- Forum: 8-Bit PIC
- Topic: LCD READOUT
- Replies: 18
- Views: 9867
Re: LCD READOUT
hi martin,
top line shows value = 0.0000kohm
second line shows 0.000000
bob
top line shows value = 0.0000kohm
second line shows 0.000000
bob
- Tue Apr 21, 2020 3:35 pm
- Forum: 8-Bit PIC
- Topic: LCD READOUT
- Replies: 18
- Views: 9867
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...
- Tue Apr 21, 2020 3:03 pm
- Forum: 8-Bit PIC
- Topic: LCD READOUT
- Replies: 18
- Views: 9867
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
i adjusted R<=0.01 but no joy even went back as far to 0.000000000000001 but again no joy ??
bob
- Tue Apr 21, 2020 1:59 pm
- Forum: 8-Bit PIC
- Topic: LCD READOUT
- Replies: 18
- Views: 9867
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...
- Tue Apr 21, 2020 9:50 am
- Forum: 8-Bit PIC
- Topic: LCD READOUT
- Replies: 18
- Views: 9867
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 ...
- Mon Apr 20, 2020 7:08 pm
- Forum: 8-Bit PIC
- Topic: LCD READOUT
- Replies: 18
- Views: 9867
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...
- Thu Apr 02, 2020 6:47 pm
- Forum: Electronics products
- Topic: handheld enclosures with lcd cut out
- Replies: 7
- Views: 8457
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
bob
- Wed Apr 01, 2020 7:05 pm
- Forum: Electronics products
- Topic: handheld enclosures with lcd cut out
- Replies: 7
- Views: 8457
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
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
- Thu Feb 13, 2020 10:27 pm
- Forum: 8-Bit PIC
- Topic: unable to compile
- Replies: 10
- Views: 7650
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
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
- Thu Feb 13, 2020 9:34 pm
- Forum: 8-Bit PIC
- Topic: unable to compile
- Replies: 10
- Views: 7650
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
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
- Thu Feb 13, 2020 8:41 pm
- Forum: 8-Bit PIC
- Topic: unable to compile
- Replies: 10
- Views: 7650
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......
- Thu Feb 13, 2020 6:47 pm
- Forum: 8-Bit PIC
- Topic: unable to compile
- Replies: 10
- Views: 7650
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
cheers bob