Author |
Message |
Topic: Bascom AVR 2.0.8.6 Syntax hilighting issues |
EDC
Replies: 2
Views: 83
|
Forum: BASCOM-AVR Posted: Tue Mar 26, 2024 9:00 am Subject: Bascom AVR 2.0.8.6 Syntax hilighting issues |
This is related to IDE function "Edit -> Show Dead Code"
You can disable it there if not needed.
If variable is dimensioned but not used then it will be marked, for example grayed (this you ca ... |
Topic: Simulator SRAM window enhancement |
EDC
Replies: 2
Views: 113
|
Forum: BASCOM-AVR Posted: Thu Mar 14, 2024 6:18 pm Subject: Simulator SRAM window enhancement |
Did you saw a $dbg topic in the Help? This directive will write F for Sram used as Frame, H for HW stack and S for Swstack so it can be easy to monitore, count or whatever.
https://www.mcselec.com/us ... |
Topic: Array Index Out of Range |
EDC
Replies: 4
Views: 171
|
Forum: BASCOM-AVR Posted: Wed Mar 13, 2024 9:13 am Subject: Array Index Out of Range |
Magic ball can be handy here if you don`t show some more code...but if "menu_only" code compiles then maybe you should include the "inc" file elsewhere. After or before the place where Tickers are dim ... |
Topic: Gosub without return questions. |
EDC
Replies: 3
Views: 123
|
Forum: BASCOM-AVR Posted: Tue Mar 12, 2024 6:00 pm Subject: Gosub without return questions. |
Stricte about "no return"
I saw this many times because it can be a developer mistake and you dont get warning from the compiler because it can also be intended.
Next line will be executed.
This ... |
Topic: MCP79520 RTC over SPI with Bascom |
EDC
Replies: 7
Views: 14294
|
Forum: Share your working BASCOM-AVR code here Posted: Mon Mar 11, 2024 11:53 pm Subject: MCP79520 RTC over SPI with Bascom |
Since only this year February had 29 days and we have a leap year another small error came out.
The RTC itself recognizes such a year and sets bit 5 in the month register.
Therefore, it should be ... |
Topic: Pullup Problems |
EDC
Replies: 8
Views: 275
|
Forum: BASCOM-AVR Posted: Mon Mar 11, 2024 5:25 pm Subject: Pullup Problems |
You can check what a config instructions are reusable in the Help topic "CONFIG"
https://www.mcselec.com/userpix/22760_config_1.jpg
So if you choose Internal_1.1 Bascom will set two bits of REFSx ... |
Topic: Pullup Problems |
EDC
Replies: 8
Views: 275
|
Forum: BASCOM-AVR Posted: Mon Mar 11, 2024 4:55 pm Subject: Pullup Problems |
I dont expect any value
When pin is floating then values can be any from 0 to 1023. It depends on the environment then.
Floating pin on ADC is often used to get start base for generating better r ... |
Topic: Pullup Problems |
EDC
Replies: 8
Views: 275
|
Forum: BASCOM-AVR Posted: Mon Mar 11, 2024 8:56 am Subject: Pullup Problems |
PC.6 is a RESET pin for Mega328P used in the Arduino.
If you have uc in the TQFP 32 package (instead of DIL28) then you get "additional" two pins ADC6 and ADC7 and they serve as ADC input.
You can ... |
Topic: Fuse Questions |
EDC
Replies: 10
Views: 188
|
Forum: BASCOM-AVR Posted: Fri Mar 08, 2024 8:50 am Subject: Fuse Questions |
I wanted to release this so it's very easy for someone else to program.
So when I wrote about good power supply I was thinking about design some good external hardware for the project because it s ... |
Topic: Fuse Questions |
EDC
Replies: 10
Views: 188
|
Forum: BASCOM-AVR Posted: Fri Mar 08, 2024 6:56 am Subject: Fuse Questions |
EESAVE is not needed with bootloader because it will not bulk erase entire chip so you must only worry about good power supply
"On the fly" code can change only "Disable JTAG" and with CLOCKDIVI ... |
Topic: Fuse Questions |
EDC
Replies: 10
Views: 188
|
Forum: BASCOM-AVR Posted: Fri Mar 08, 2024 6:36 am Subject: Fuse Questions |
This is because Bootloader cannot change/set fuses. |
Topic: Fuse Questions |
EDC
Replies: 10
Views: 188
|
Forum: BASCOM-AVR Posted: Fri Mar 08, 2024 6:28 am Subject: Fuse Questions |
https://www.mcselec.com/userpix/22760_prog_1.jpg
In summary $prog can`t be generated automatically before you change the fuses yourself
I dont know why it works like that but this is how it is ... |
Topic: Lookup() - number of CPU cycles to execute seems high at 40 |
EDC
Replies: 27
Views: 886
|
Forum: BASCOM-AVR Posted: Mon Feb 19, 2024 6:18 pm Subject: Lookup() - number of CPU cycles to execute seems high at 40 |
There is a fair chunk of other functions going on like A/D inputs to trim the frequency, adjust phase, send serial to a display etc. so I was hoping to speed up sections that were repetitive and thir ... |
Topic: Lookup() - number of CPU cycles to execute seems high at 40 |
EDC
Replies: 27
Views: 886
|
Forum: BASCOM-AVR Posted: Mon Feb 19, 2024 4:32 pm Subject: Lookup() - number of CPU cycles to execute seems high at 40 |
Now we're talking
This is how it looks like with SRAM
https://www.mcselec.com/userpix/22760_sram_1.jpg[/code] |
Topic: Lookup() - number of CPU cycles to execute seems high at 40 |
EDC
Replies: 27
Views: 886
|
Forum: BASCOM-AVR Posted: Mon Feb 19, 2024 4:16 pm Subject: Lookup() - number of CPU cycles to execute seems high at 40 |
0.0038ms I round up into 0.004ms. It means 4us.
If this slows down your code then Im curious how fast is rest of it because it means 250 KHz! |
|