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 ??
Search found 392 matches
- Thu Feb 13, 2020 6:36 pm
- Forum: 8-Bit PIC
- Topic: unable to compile
- Replies: 10
- Views: 7452
- Thu Feb 13, 2020 6:16 pm
- Forum: 8-Bit PIC
- Topic: unable to compile
- Replies: 10
- Views: 7452
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
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
- Mon Aug 26, 2019 2:55 pm
- Forum: Programming Tips & Tricks
- Topic: multi channel anologue
- Replies: 1
- Views: 8721
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 ...
- Sun Aug 11, 2019 10:56 am
- Forum: General Programming
- Topic: pic 8 bit reference book
- Replies: 3
- Views: 3549
Re: pic 8 bit reference book
hi martin,
this is exactly what im looking for thanks
bob
this is exactly what im looking for thanks
bob
- Sat Aug 10, 2019 10:41 pm
- Forum: General Programming
- Topic: pic 8 bit reference book
- Replies: 3
- Views: 3549
pic 8 bit reference book
Hi all just wondering if anyone knows if such a book as an 8 bit pic reference book exists that shows data on this family such as flash words eeprom pin out etc that would help choosing the right pic micro for your next project
Cheers bob
Cheers bob
- Wed May 15, 2019 11:56 am
- Forum: 8-Bit PIC
- Topic: variable square wave
- Replies: 19
- Views: 13142
Re: variable square wave
hi martin
thanks i would appreciate that
bob
thanks i would appreciate that
bob
- Tue May 14, 2019 9:43 pm
- Forum: 8-Bit PIC
- Topic: variable square wave
- Replies: 19
- Views: 13142
Re: variable square wave
Hi Martin
Thanks for the reply, that's a shame I was hoping I had nearly cracked it as for timer interups I'm really none the wiser plus is it still possible to use the keypad to select a frequency with interupts as my original idea was 0 to 2KHz
Bob
Thanks for the reply, that's a shame I was hoping I had nearly cracked it as for timer interups I'm really none the wiser plus is it still possible to use the keypad to select a frequency with interupts as my original idea was 0 to 2KHz
Bob
- Tue May 14, 2019 7:09 pm
- Forum: 8-Bit PIC
- Topic: variable square wave
- Replies: 19
- Views: 13142
Re: variable square wave
hi all
could anyone point me in the right direction in how to get the frequency down to 1Hz if selected ive tried to alter the prescaler and clock speed but ive been unsuccessful
bob
could anyone point me in the right direction in how to get the frequency down to 1Hz if selected ive tried to alter the prescaler and clock speed but ive been unsuccessful
bob
- Tue May 07, 2019 7:53 pm
- Forum: 8-Bit PIC
- Topic: variable square wave
- Replies: 19
- Views: 13142
Re: variable square wave
martin
i have just sorted the clearing side i changed the value of the decision to 5 in the result macro
bob
i have just sorted the clearing side i changed the value of the decision to 5 in the result macro
![Smile :)](./images/smilies/icon_smile.gif)
bob
- Tue May 07, 2019 7:46 pm
- Forum: 8-Bit PIC
- Topic: variable square wave
- Replies: 19
- Views: 13142
Re: variable square wave
hi martin im not to bothered about the clearing side at present this will give me something to work through, the idea is put in a value 1-4 digits,hit the star for enter and this should give the same value square wave then hit the hash to clear, ive added a led to C2 hoping to get it to flash at 1 H...
- Tue May 07, 2019 5:11 pm
- Forum: 8-Bit PIC
- Topic: variable square wave
- Replies: 19
- Views: 13142
Re: variable square wave
hi martin ive tried the program on hardware using my EB006 board and although there is a problem with key 10 clearing the number on the lcd if 4 digits are selected its working well, however ive tried to change some settings with the clock speed and pwm to try to light a led on C2 to see if i can fl...
- Sun May 05, 2019 5:26 pm
- Forum: 8-Bit PIC
- Topic: variable square wave
- Replies: 19
- Views: 13142
Re: variable square wave
hi martin,
although only 4 digits can be displayed this could be 9999,i only want a max of 2000 Hz so i need to try and overcome this so no more than 2K can be displayed, as always thank you
bob
although only 4 digits can be displayed this could be 9999,i only want a max of 2000 Hz so i need to try and overcome this so no more than 2K can be displayed, as always thank you
bob
- Sat May 04, 2019 7:18 pm
- Forum: 8-Bit PIC
- Topic: variable square wave
- Replies: 19
- Views: 13142
Re: variable square wave
hi, ive played with the code and added a few bits, ie a keypad, the idea is i only want a max of 2000hz so only 4 digits can be selected tap in a value and press the * key to enter then press the # to clear its not perfect and i would appreciate simplifying my code and making it more reliable, i als...
- Sat May 04, 2019 1:11 pm
- Forum: 8-Bit PIC
- Topic: variable square wave
- Replies: 19
- Views: 13142
Re: variable square wave
hi martin,
now i understand, time to start experimenting, i will let you know how i get on and once again thanks
bob
now i understand, time to start experimenting, i will let you know how i get on and once again thanks
bob
- Sat May 04, 2019 10:50 am
- Forum: 8-Bit PIC
- Topic: variable square wave
- Replies: 19
- Views: 13142
Re: variable square wave
hi martin,
im a little confused with the following calculation,
PWMFrequency = (PWMFrequency * 39 / 99) * 25 + 500
i know that the 25+500 is the 25hz step plus starting at 500 hz but i cant figure out the first part *39/99 ??
cheers bob
im a little confused with the following calculation,
PWMFrequency = (PWMFrequency * 39 / 99) * 25 + 500
i know that the 25+500 is the 25hz step plus starting at 500 hz but i cant figure out the first part *39/99 ??
cheers bob
- Thu May 02, 2019 6:54 pm
- Forum: 8-Bit PIC
- Topic: variable square wave
- Replies: 19
- Views: 13142
Re: variable square wave
hi martin, as always thanks for the reply, i will dissect the program in the link and see what i can come up with, ideally rather than 25Hz steps i would like to input a value on a keypad from 0 to 2000Hz and maybe hit the # key to enter as you mentioned, this will be my aim plus having some fun lea...
- Wed May 01, 2019 9:06 pm
- Forum: 8-Bit PIC
- Topic: variable square wave
- Replies: 19
- Views: 13142
variable square wave
hi all, i would like to develope a square wave frequency that i can vary with a keypad from 0 to around 2KHz,and im thinking of using a pic 16f 690 or 887, trouble is ive no idea how to generate a square wave let alone make it variable im willing to put the work in but need pointers ive trolled thro...
- Sat Jan 19, 2019 3:46 pm
- Forum: General Programming
- Topic: ADVICE USING RB0 INT FUNCTION
- Replies: 2
- Views: 2580
Re: ADVICE USING RB0 INT FUNCTION
thank you kersing
- Sat Jan 19, 2019 12:04 pm
- Forum: General Programming
- Topic: ADVICE USING RB0 INT FUNCTION
- Replies: 2
- Views: 2580
ADVICE USING RB0 INT FUNCTION
hi all im looking for advice whilst using the RB0 int function on a pic (16f 887), if i set it for say trigger on the rising edge would i need to use say a 10K resistor to pull it low and vice versa ie falling edge and a 10K pull up resistor or can the bit just be connected without the resistors ?? ...
- Tue Jan 08, 2019 7:15 am
- Forum: General Programming
- Topic: STACK HARDWARE OVERFLOW
- Replies: 9
- Views: 5679
Re: STACK HARDWARE OVERFLOW
hi benj
thanks for the reply, looking at my code could you confirm that i have set up my RB0 int correctly to function ive not had chance to test in the real world yet, cheers
bob
thanks for the reply, looking at my code could you confirm that i have set up my RB0 int correctly to function ive not had chance to test in the real world yet, cheers
bob
- Fri Jan 04, 2019 4:41 pm
- Forum: General Programming
- Topic: STACK HARDWARE OVERFLOW
- Replies: 9
- Views: 5679
Re: STACK HARDWARE OVERFLOW
hi martin and kersing
thanks for the replys ive added a revised flowchart taking on board your comments i hope but im still getting the error message when compiling ive not tried in hardware yet i would appreciate any feedback cheers
bob
thanks for the replys ive added a revised flowchart taking on board your comments i hope but im still getting the error message when compiling ive not tried in hardware yet i would appreciate any feedback cheers
bob
- Thu Jan 03, 2019 5:56 pm
- Forum: General Programming
- Topic: STACK HARDWARE OVERFLOW
- Replies: 9
- Views: 5679
Re: STACK HARDWARE OVERFLOW
hi martin
i really dont know and wouldnt know where to look, im sure this error only occurs since i added the RB0 check,
bob
i really dont know and wouldnt know where to look, im sure this error only occurs since i added the RB0 check,
bob
- Thu Jan 03, 2019 2:07 pm
- Forum: General Programming
- Topic: STACK HARDWARE OVERFLOW
- Replies: 9
- Views: 5679
Re: STACK HARDWARE OVERFLOW
hi martin
thanks for the reply ive moved the enable interrupt outside the main loop but still get the error, the chips sram as per data sheet is 368 but when i compile nothing is at 100% other than config bits so i im at a loss, simulation is great but hardware does not work ???
bob
thanks for the reply ive moved the enable interrupt outside the main loop but still get the error, the chips sram as per data sheet is 368 but when i compile nothing is at 100% other than config bits so i im at a loss, simulation is great but hardware does not work ???
bob
- Wed Jan 02, 2019 5:30 pm
- Forum: General Programming
- Topic: STACK HARDWARE OVERFLOW
- Replies: 9
- Views: 5679
STACK HARDWARE OVERFLOW
Hi all, first off happy new year to you all, secondly HELP !!!! my program works as expected in the simulation but when compiling i get the following message, "D:\flowcode 7\CAL\PIC\PIC_CAL_IO.c: 209: non-reentrant function "_FC_CAL_Port_In_DDR__x" appears in multiple call graphs and has been duplic...
- Wed Dec 12, 2018 4:44 pm
- Forum: 8-Bit PIC
- Topic: pic controlling a relay
- Replies: 23
- Views: 17355
Re: pic controlling a relay
hi steve thanks for the reply, im hoping that even if the latch relays do require more power to latch it will only be momentary while they set or reset as opposed to the non latch types im using which require constant power when being operated and holding this state until power is removed from the c...