I have done this in C many years back. However, you need to use double precision floating point numbers to get accurate results. PicBasic code? I doubt it as Picbasic does not support this data...
Jerson Today, 03:14Hi all,
I'm looking for an algorithm calculating the sunrise/sunset time. The few threads/posts found here didn't help, unfortunately.
My wall clock using a DS3231 RTC is updated once daily by...
Yes, there are definitely some improvements with ChatGPT when it comes to PBP, but still a long way to go.
Very often it has issues with syntax - it confuses PBP with Bascom or GC basic and uses...
I've found CoPilot to be OK for .net, but useless for PBP.
ChatGPT can be helpful, but only when used sparingly - "Write me an I2C routine to read a [chip number]".
AI has improved over the last...
Greetings,
HenrikOlsson and tumbleweed thank you so much for your help.
I think I have a better understanding of these settings with your help.
I also found this:
8-bit PIC® MCU Clock...
This can be confusing the way they word this.
The 'primary oscillator' is the one selected by the 'config' setting.
Hi,
Kudos for actually reading the datasheet!
Your CONFIG looks allright for selecting the internal oscillator.
[quote]
However, for the osccon and osctune I have the following doubts…
...
Hi guys,
I’m trying to setup the internal oscillator for a 18F2580 mcu at 32Mhz using PLL but I have a few basic questions and just wanted to make sure I get it right…
As I can read from the...
Calculating Sunrise and Sunset 2
Yes, this is what I found out too.
flotulopex Today, 07:36Is there any chip that would do this math for me I could embed in my circuit, at least as a plan B?