here you will find what you need http://www.picbasic.co.uk/forum/showthread.php?t=544&highlight=Bits%2C+Bytes+Words+and+Arrays
Type: Posts; User: gebillpap; Keyword(s):
here you will find what you need http://www.picbasic.co.uk/forum/showthread.php?t=544&highlight=Bits%2C+Bytes+Words+and+Arrays
Once upon a time , there was a brilliant and very helpfull gentleman named Bruce Reynold.
He posted some Infra Red routines for PIC's in PICBASIC at his site Rentron.com which now is lost.
The...
I think you forget to put minutes in the minutes LED although you do remember it for the rest digits .So try this..
........
........
poke PortC,%10000000 ' DP on first LED
Poke PortC,B0 ' Send...
Hi
My mistake
the line lightsetHR1=lightsetHR1/60 ' you get the integer part your example =14
should be lightsetHR1=CH1_on_time/60 ' you get the integer part your example =14
then it...
Hi Scampy
Perhaps
CH1_on_Time = (lightsetHR1*60)+lightsetMN1
lightsetHR1=lightsetHR1/60 ' you get the integer part your example =14
lightsetMN1=CH1_on_Time - lightsetHR1 ' what remains is...
Joe S your suggestion will be given a trial because it started annoying me also having only capitals but sometimes habits are difficult to change.
The reason for reinventing the wheel ,as you put...
I needed to have some short of debouncing of an input in order to accept it in my program.
In my program I am looking if the input has a High(+5V) or Low(0V).
The input is driven by the contacts of...
Ingvar
Thanks for the clever suggestion.Did you use it and with what results/observations?
I suppose that a 2,5V stable voltage ref is the obvious need BUT maybe a volage divider would be better...
Perhaps Portb.1 is damaged(from 9V??? through the servo???) if only LED2 works as expected.
Test by replacing LED1 with LED2 and vice versa in your program.
Or try to move LED1 to another pin e.g....
Ingvar I did test what you suggested and it was RIGHT.
In other words it does exactly the same as FP routines do and at lesser code space cost.
Ofcourse it doesnt solve my problem but it can be...
Maybe this can work better in case it is only code problem
Loop:
If IRLED1 =1 then
for a=1 to 100 'allow several pulses for the servo to reach the requested position
Pulsout 0,140...
Ingvar I think you are absolutely RIGHT and I will test it as soon as I can.
Since the ** multiplication places the result in the upper 16 bits it is I believe the same with divide by 65536 as you...
Melanie you are right that I already use this "fake 16 bit" method which in turn made me use the FP routines in order to have math results.The reason is that although I display 2 decimals I calculate...
Dear All
I replaced my own routine for ADC readings with Melanie's just to see if there would be any difference in displayed voltages.
I found out that there was always an increase in steps of...
Thank you for responding
I will try to describe the problem I face better in order to justify why I think that something like the stable ADC mentioned in my first post might solve it.
A 12f675 chip...
Dear friends
Recently I came across an AVR application note about an intelligent charger
design based on their controller line.
There was a so called STABLE ADC READING FUNCTION
(not...
Dear Anand Dhuru
I did what you suggested and it worked .
Thank you for your suggestion.
I believe MicroEnginnering should quote on this as it can be a problem with many others.
Note that I did...
I have the same problem also.
I will try to define it better.
I use PICBASICPRO(2.46) to compile a program that programs (EPIC2.46beta) and runs OK on a PIC 16F84 or16F84A .
The same...