For info on Proton... www.picbasic.org/forum
I doubt PROTON have this option or it's hidden somewhere in the Help file, or somewhere on the forum.
BUT try
This should workCode:Print $fe,$28 Print $fe,$0c Print $fe,1
For info on Proton... www.picbasic.org/forum
I doubt PROTON have this option or it's hidden somewhere in the Help file, or somewhere on the forum.
BUT try
This should workCode:Print $fe,$28 Print $fe,$0c Print $fe,1
Last edited by mister_e; - 27th July 2005 at 04:38.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
You should know better than that Steve. The PROTON does everything the PBP does, and a whole lot more!
To reset the LCD, simply use: -
Dim BPF as Byte SYSTEM ' Bring the system variable into BASIC
Clear BPF ' Force a reset on the LCD the next time it's used
However, this is the wrong forum for the PROTON compiler. As long as your not using a pirated version of the compiler, you are welcome to use the dedicated PROTON forum
Hello bahattinkor,
I had the same problem for 2 days using a DS1337. It displayed the default time and if I programmed a new starting time that would display but would continue from there. This was on a printed circuit board that was already working but had a little accident with a floating wire that went into the side of the power supply box and blew everything up! After replacing most of the parts the board worked for a few days then quit. I put new chips on the board again but to no gain. I put all of the same parts into a newer board and they worked fine. Went back to the old board and found no connection between one side of the crystal and the DS 1337.
The moral of this story is triple check your connections and use a meter!
BobK
yes, I checked connections. voltages are normal but when I measured the cyrstal of Ds1302 with ossiloscope, I did not see any frequency. The ossilator does not ossilates. then I change DS1302 and 32.768Khz cyrstal with new ones but they are still not working. Can it be related with the Vcc that I used. I use 5V for Vcc for DS1302. Or Should I use any resistor or capacitor plus for the DS1302.
Probably your Clock Halt flag is set..... it's undetermined when you put power on the RTC. Just clear this bit and you'll see oscillation on your scope.
The problem is the same on many RTC. See the secondes register for the CH bit.
Many cheaper probe will screw the signal coming from an Crystal. Place it on 10X and this will help a bit in many case.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Here is a modified version of the code posted by CocaColaKid above.
In the code above, the clock can only be set during the programming of PIC.
With the modification here, the user can set the time, date etc. at any given time.
Advise/post any additions, recommendations, modifications etc if any.
As members are asking;
Attached is the updated version with more space.
(HEX Conversion is shorter)
------------------------------------------------------
Last edited by sayzer; - 24th February 2006 at 20:01.
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Bookmarks