Search found 240 matches

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

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 ...
by siliconchip
Sun Aug 11, 2019 10:56 am
Forum: General Programming
Topic: pic 8 bit reference book
Replies: 3
Views: 796

Re: pic 8 bit reference book

hi martin,
this is exactly what im looking for thanks

bob
by siliconchip
Sat Aug 10, 2019 10:41 pm
Forum: General Programming
Topic: pic 8 bit reference book
Replies: 3
Views: 796

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
by siliconchip
Wed May 15, 2019 11:56 am
Forum: 8-Bit PIC
Topic: variable square wave
Replies: 19
Views: 2425

Re: variable square wave

hi martin
thanks i would appreciate that

bob
by siliconchip
Tue May 14, 2019 9:43 pm
Forum: 8-Bit PIC
Topic: variable square wave
Replies: 19
Views: 2425

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
by siliconchip
Tue May 14, 2019 7:09 pm
Forum: 8-Bit PIC
Topic: variable square wave
Replies: 19
Views: 2425

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
by siliconchip
Tue May 07, 2019 7:53 pm
Forum: 8-Bit PIC
Topic: variable square wave
Replies: 19
Views: 2425

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
by siliconchip
Tue May 07, 2019 7:46 pm
Forum: 8-Bit PIC
Topic: variable square wave
Replies: 19
Views: 2425

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...
by siliconchip
Tue May 07, 2019 5:11 pm
Forum: 8-Bit PIC
Topic: variable square wave
Replies: 19
Views: 2425

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...
by siliconchip
Sun May 05, 2019 5:26 pm
Forum: 8-Bit PIC
Topic: variable square wave
Replies: 19
Views: 2425

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
by siliconchip
Sat May 04, 2019 7:18 pm
Forum: 8-Bit PIC
Topic: variable square wave
Replies: 19
Views: 2425

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...
by siliconchip
Sat May 04, 2019 1:11 pm
Forum: 8-Bit PIC
Topic: variable square wave
Replies: 19
Views: 2425

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
by siliconchip
Sat May 04, 2019 10:50 am
Forum: 8-Bit PIC
Topic: variable square wave
Replies: 19
Views: 2425

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
by siliconchip
Thu May 02, 2019 6:54 pm
Forum: 8-Bit PIC
Topic: variable square wave
Replies: 19
Views: 2425

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...
by siliconchip
Wed May 01, 2019 9:06 pm
Forum: 8-Bit PIC
Topic: variable square wave
Replies: 19
Views: 2425

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...
by siliconchip
Sat Jan 19, 2019 3:46 pm
Forum: General Programming
Topic: ADVICE USING RB0 INT FUNCTION
Replies: 2
Views: 941

Re: ADVICE USING RB0 INT FUNCTION

thank you kersing
by siliconchip
Sat Jan 19, 2019 12:04 pm
Forum: General Programming
Topic: ADVICE USING RB0 INT FUNCTION
Replies: 2
Views: 941

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 ?? ...
by siliconchip
Tue Jan 08, 2019 7:15 am
Forum: General Programming
Topic: STACK HARDWARE OVERFLOW
Replies: 9
Views: 1964

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
by siliconchip
Fri Jan 04, 2019 4:41 pm
Forum: General Programming
Topic: STACK HARDWARE OVERFLOW
Replies: 9
Views: 1964

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
by siliconchip
Thu Jan 03, 2019 5:56 pm
Forum: General Programming
Topic: STACK HARDWARE OVERFLOW
Replies: 9
Views: 1964

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
by siliconchip
Thu Jan 03, 2019 2:07 pm
Forum: General Programming
Topic: STACK HARDWARE OVERFLOW
Replies: 9
Views: 1964

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
by siliconchip
Wed Jan 02, 2019 5:30 pm
Forum: General Programming
Topic: STACK HARDWARE OVERFLOW
Replies: 9
Views: 1964

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 ...
by siliconchip
Wed Dec 12, 2018 4:44 pm
Forum: 8-Bit PIC
Topic: pic controlling a relay
Replies: 23
Views: 4176

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...
by siliconchip
Mon Dec 10, 2018 10:26 am
Forum: 8-Bit PIC
Topic: pic controlling a relay
Replies: 23
Views: 4176

Re: pic controlling a relay

hi all, sorry for lack of any updates life got in the way,anyhow im back working on my project, im now using a buck convertor set to 5v output and noticed that when using 2 pp3 batts with a total of 18v on the input the display is now not dimming when the relays operate but although ive not measured...
by siliconchip
Sun Nov 11, 2018 9:20 pm
Forum: 8-Bit PIC
Topic: pic controlling a relay
Replies: 23
Views: 4176

Re: pic controlling a relay

hi steve and stefan thanks for the comments, steve i disconnected the base resistor from the micro end and added 2 leds to the outputs these lit nicely when ordered by the program but touching the resistor still connected to the transistors did nothing i didnt monitor the supply due to this, my supp...