Main Menu
Counter
This page today ...
total: 0
unique: 0

This page ever ...
total: 212
unique: 143

Site ...
total: 3373
unique: 1772
Online
  • Guests: 3
  • Members: 0
  • Newest Member: ole
  • Most ever online: 47
    Guests: 47, Members: 0 on Wednesday 21 February 2018 - 23:52:15
Chatbox
You must be logged in to post comments on this site - please either log in from the Login box or from here.If you are not registered click here to signup.


bullet Kim
1 year ago
test
Royalsystems blog

MCS Electronics Forum

  • Share your working BASCOM-AVR code here : tools for Nextion display on Arduino M2560 : REPLY



    thank you cheesey cheesey

  • Share your working BASCOM-AVR code here : tools for Nextion display on Arduino M2560 : REPLY



    oops

    I add the 2 files missing :oops:

  • Share your working BASCOM-AVR code here : tools for Nextion display on Arduino M2560 : REPLY



    Hello Kasch
    If you look in the blog section you will find https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=14531
    I show my learning how to use the display
    Note its not like all the other graphical displays you just need to send the values for the objects you create.
    You will also see that it is able to do a lot of the work that the AVR would normally have to do.
    Regards Paul

  • Share your working BASCOM-AVR code here : tools for Nextion display on Arduino M2560 : REPLY



    sorry for the stupid question: i downloaded the zip-file from Duval JP. I compiled the example but i got an errormessage: missing file declaration_nextion.inc and page_button.inc...what i do wrong? Thank you

  • BASCOM-AVR : How to know limit for $hwstack, $swstack, $framesize, is it : REPLY



    Some advice you will find in the CodeExplorer - just eneble it.
    Please also check Help topic - [b:4158968703]$hwcheck[/b:4158968703] - that give you oportunity to print stacks use values.

    [img:4158968703]https://www.mcselec.com/userpix/22760_explorer_1.jpg[/img:4158968703]

  • BASCOM-AVR : How to know limit for $hwstack, $swstack, $framesize, is it : REPLY



    [quote:89e5f98610="TSEYFARTH"]How to find the maximum value to use to set
    $hwstack, $swstack and $framesize ?[/quote:89e5f98610]Call the report(Ctrl+W) and look for 'Space left', which is the difference between available SRam size, minus variables, minus stacks/frame.
    [quote:89e5f98610]Is it bad to over allocate these?[/quote:89e5f98610]You shalt not allocate more than is free.

    Every byte of SRam not being used by variables, which start on the lower address range or by stack on SRamend, going down, is wasted memory.
    The big advantage of allocating and subdividing any free space into hardstack, softstack and frame is: it becomes less likely, that they overwrite each other.

    If for example hwstack = 64 and you use heavy recursion in code, then each recursion takes some stack, which moves from SRamend downwards.
    At a certain point it will overwrite the soft-stack and then the frame.

    If you have 12kByte SRam left and assign each 4k to hardstack, softstack and frame, then recursion has much more space till things go mad.
    The exact distribution is not necessarily same for each hw, sw, frame, instead it depends on how your program works.
    If the program relies heavily on recursion, you want a big hardware stack, if you use tons of locals, a bigger frame size is your friend.
    See the help how and for what each of the stack/frame memory ranges is used.

  • BASCOM-AVR : How to know limit for $hwstack, $swstack, $framesize, is it : NEWTOPIC



    Hello all,

    I am using an ATMEGA 1284.


    How to find the maximum value to use to set
    $hwstack, $swstack and $framesize ?

    Is it bad to over allocate these?

    My app cannot be simulated since it needs to use both UARTs connected and it is using many ISR's and the SPI bus. I can however print results to a terminal emulator.

    Thanks,
    Tim

    [b:18f9323e32][color=red:18f9323e32](BASCOM-AVR version : 2.0.8.3 )[/b:18f9323e32][/color:18f9323e32]

  • BASCOM-AVR : an array of values "word" : REPLY



    smile
    I know about this site. I have the link to this site on the second place
    the first place is circuit simulator Falstad: http://www.falstad.com/circuit/circuitjs.html

  • BASCOM-AVR : an array of values "word" : REPLY



    like you I am very unhappy with my poor English, I use Deepl as a translator, I find it much better than google

    Как и ты, я очень недоволен своим бедным английским, я использую "Deepl" в качестве переводчика, я нахожу это намного лучше, чем "Google".
    :wink:
    I hope Deepl do a good translation :smt024

  • BASCOM-AVR : an array of values "word" : REPLY



    [quote:85c8faa90e="albertsm"] i have seen your amazing projects so i can almost not believe you did not knew about it. [/quote:85c8faa90e]
    thank. That's right, for all the decades I have never used [b:85c8faa90e]Data[/b:85c8faa90e] of type "word" in your compiler :oops:
    Yes, I have not met the requirements for marking the parameters of the data block anywhere in other compilers. I worked with different computers (ZX-Spectrum, IBM, Soviet computers...) and compilers, but there was no such need. :shock:

    [quote:85c8faa90e="albertsm"] so only the actual data is stored. now if you have a value of 123, how should the compiler know that this is a byte? or a word, or dword, integer, etc. ? [/quote:85c8faa90e]
    yes, this is a logical decision. I completely agree with you.

    [quote:85c8faa90e="albertsm"] I hope this was just a quote and not your own writing. [/quote:85c8faa90e]
    this is a poorly translated phrase, :oops:
    I wrote the text, translated it in the [u:85c8faa90e]translate.google[/u:85c8faa90e] and sent it, but I did not check the quality of the translation.
    This phrase from a book for beginner programmers. The author is Hungarian or Pole, I do not remember.
    Completely this phrase sounds like this: (I specifically checked the translation several times. The meaning of the phrase is now translated correctly):
    "Having received a new compiler, my old experience of work with past compilers made me make stupid mistakes and wasted time learning new things."

| Date published: not known
Back to newsfeed list
Welcome
Username or Email:

Password:




[ ]
[ ]
Headlines

»Share your working BASCOM-AVR code here : tools for Nextion display on Arduino M2560 : REPLY
thank you :D :D
»Share your working BASCOM-AVR code here : tools for Nextion display on Arduino M2560 : REPLY
oops I add the 2 files missing :oops:
»Share your working BASCOM-AVR code here : tools for Nextion display on Arduino M2560 : REPLY
Hello Kasch If you look in the blog section you will find https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=view...
»Share your working BASCOM-AVR code here : tools for Nextion display on Arduino M2560 : REPLY
sorry for the stupid question: i downloaded the zip-file from Duval JP. I compiled the example but i got an errormessage: missing ...
»BASCOM-AVR : How to know limit for $hwstack, $swstack, $framesize, is it : REPLY
Some advice you will find in the CodeExplorer - just eneble it. Please also check Help topic - [b:4158968703]$hwcheck[/b:41589687...
»BASCOM-AVR : How to know limit for $hwstack, $swstack, $framesize, is it : REPLY
[quote:89e5f98610="TSEYFARTH"]How to find the maximum value to use to set $hwstack, $swstack and $framesize ?[/quote:89e5f98610]...
»BASCOM-AVR : How to know limit for $hwstack, $swstack, $framesize, is it : NEWTOPIC
Hello all, I am using an ATMEGA 1284. How to find the maximum value to use to set $hwstack, $swstack and $framesize ? ...
»BASCOM-AVR : an array of values "word" : REPLY
:) I know about this site. I have the link to this site on the second place the first place is circuit simulator Falstad: htt...
»BASCOM-AVR : an array of values "word" : REPLY
like you I am very unhappy with my poor English, I use Deepl as a translator, I find it much better than google Как и ты, я оче...
»BASCOM-AVR : an array of values "word" : REPLY
[quote:85c8faa90e="albertsm"] i have seen your amazing projects so i can almost not believe you did not knew about it. [/quote:85c...


Date published: not known
Details

»Lustiges
Quellcode (4 Zeilen) Quellcode (5 Zeilen)
»ILI9488 mit SPI
Hallo zusammen ich habe für ein Projekt ein grafisches Display 480x320 mit dem Kontroller ILI9488 gekauft (siehe hier). Im Forum habe ich zuvor ge...
»Probleme mit Pulsein
Hallo liebe Bascom Gemeinde Seit Tagen versuche ich mit dem Befehl Pulsein zu Arbeiten, aber folgendes Problem: Prozessor Atmega328p dim bPulseIn...
»ZFlasher AVR für Android zum kabellosen Flashen von Microkontrollern
Nachdem ich in den letzten Tagen nach einer Möglichkeit gesucht hatte, AVRs fernab vom PC zu programmieren, habe ich die im Betreff genannte Androi...
»Sub mit Parameter by Reg mit Alias
Hallo Ich versuche gerade Ausgabe-Routinen für das Display zu beschleunigen. Dafür habe ich 2 Sub-Routinen vorgesehen, die eine, um ein Byte ausz...
»ATXMega 128A1 und 7" SSD1963 Display
Hallo Leute, erstmal frohe Ostern und gute Gesundheit. Da ich gerade etwas Zeit habe wollte ich ein neues Projekt starten. Ich wollte mit einem A...


Date published: Tue, 22 Sep 2020 11:08:09 +0000
Details

»93c46 editor programmer bascom & vb93c46 editor programmer bascom & vb
»93c46 Bascom & VB693c46 Bascom & VB6
»Analog clock on SSD1289 3.2" 240x320 lcdAnalog clock on SSD1289 3.2" 240x320 lcd
»Nextion HMI lcd with KaraDio the best webradio esp8266Nextion HMI lcd with KaraDio the best webradio esp8266
»Adding 240x320 lcd to the WifiWebRadioAdding 240x320 lcd to the WifiWebRadio
»IV-17 Nixie clock GPS set time & date at power onIV-17 Nixie clock GPS set time & date at power on


Date published: not known
Details

»Bascom Can Bus Sniffer
»R.I.P Ben Zijlstra
Remembering Ben Zijlstra We hope that people who love Ben will remember and celebrate his life. more info at MCS www.mcselec.com/index2.ph...
»KaRadio webradio ESP8266
The Dimitris board is available at https://github.com/dsaltas/WiFi-WebRadio  This is a hardware project for Ka-Radio
»93C46
small tool to edit 93C46 eeprom written in BascomAVR & VB  Bascom control the 93C46 so we sent data via comport from VB code will be added later ...
»nRF24L01+ RC Controller
This is a RC controller TX & RX unit with nRF24L01+ nRF24L01+ / with PA and LNA for longer range facts: TX 1 x potmeter for servo ...
»RAW lcd
Connecting RAW lcd to atmega8 the lcd is 6 digit + time glass LCD Hour Meter for  tractor ,air compressor, ect the lcd have 4 com pins  & 14...


Date published: not known
Details


Proudly powered by e107 which is released under the terms of the GNU GPL License.