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

This page ever ...
total: 221
unique: 152

Site ...
total: 4272
unique: 2453
Online
  • Guests: 2
  • Members: 0
  • Newest Member: ole
  • Most ever online: 170
    Guests: 170, Members: 0 on Sunday 15 January 2023 - 07:39:26
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
5 years ago
test
Royalsystems blog

MCS Electronics Forum

  • BASCOM-AVR : Local variables naming & speed : REPLY



    Thank you

  • BASCOM-AVR : Local variables naming & speed : REPLY



    no that should not be an issue. and the length is not important as well.
    i would prefix a global van with g and a local with l(L)
    when you assign a variable in a sub/function the compiler will first check if it is a passed parameter or a local variable. in that case it will assign it.
    only when not found it will check to see if it is global.

    so there should not be any issue. if there is send me a sample cheesey

  • BASCOM-AVR : Local variables naming & speed : NEWTOPIC



    Hello guys,
    teoretical question. I found somwhere on this forum that naming locals same name in different subs or functions can cause problems. Is it really an issue? Since then I started to prefix every local variable after first characters of sub or function name. But it gives sometimes quite long names for that varibles. Does it affect speed of operation with manipulating variables? Thanks for further explanation.


    [code:1:a80a025b6e]
    function Motor_config_mode() as byte
    Local Mcm_tempvar_b As Byte
    Local Mcm_tempvar_b2 As Byte
    Local Mcm_result As Word
    Local Mcm_phase As Byte
    'more code here
    end function
    [/code:1:a80a025b6e]

    [b:a80a025b6e][color=red:a80a025b6e](BASCOM-AVR version : 2.0.8.6 )[/b:a80a025b6e][/color:a80a025b6e]

  • BASCOM-AVR : Installing EMBUD USB-ISP prog on win 10 (64bit) : REPLY



    Thank you both for replying. The second solution worked out for me, thanks again.

  • Share your working BASCOM-AVR code here : 1.3inch 65K FullColorLCD 240x240dot [ST7789V] : REPLY



    Hi O-Family

    Passing the data is not a real problem. But the operations on the data require an additional register. And if i remember correct, they are used up.
    But i will see what is most efficient. Thanks for your thoughts. I will contact you separately later.

  • BASCOM-AVR : Installing EMBUD USB-ISP prog on win 10 (64bit) : REPLY



    The ones from EDC will not work since they are not compatible.
    you need to use the EMBUD drivers.
    in windows you need to disable driver enforcement so you can install the drivers. look on this forum or google for driver enforcement under win10.

  • Share your working BASCOM-AVR code here : 1.3inch 65K FullColorLCD 240x240dot [ST7789V] : REPLY



    Hi, Mark

    I also thought that we needed to make the 2-byte passing compatible, so I looked for a way to do it.

    For example, if you could pass 16-bit parameters using word variables such as {___GlcdX1}, {___GlcdX2}, {___GlcdY1}, {___GlcdY2}, , and in addition to the current Y pointer passing, it would be easy to choose whether to use 8-bit Y pointer data on the library side or 16-bit data in the new variable.

    It might also be possible to extend the currently used , , , and variables.

    , {___lcdrow+1}, {___lcdrow2}, {___lcdrow2+1} --- , {___FGCOLOR+1}, etc.

  • BASCOM-AVR : Installing EMBUD USB-ISP prog on win 10 (64bit) : REPLY



    If I remmember right then EMBUD was such a AVR ISP MKII.
    Then, if you don want to download whole Microchip Studio then you need driver-bundle.

    After quick search i found it here -> [url=https://www.microchip.com/en-us/search?searchQuery=drivers%20bundle&category=ALL&fq=start%3D0%26rows%3D10]LINK

    Download for example "driver ATmel bundle 7.0.888"

    After installation sear for program Zadig-2.9 because it is the quickest way to add filter and replace driver to libusbK(3.1.0.0)
    Run program with admin rights and go to "Options->List all devices". Now search for AVR ISP and replace driver to libusbK.
    Then everything should work wit Bascom.

  • Share your working BASCOM-AVR code here : 1.3inch 65K FullColorLCD 240x240dot [ST7789V] : REPLY



    hello O-Family

    As usual a great contribution from you.
    Thanks for sharing. I did not see this LCD yet but it is good to know it exists for future projects.

    About restriction of byte vs word. Yes that is also still on my todo list. But as you understand it need to do it so the existing libs remain compatible.

  • BASCOM-AVR : Installing EMBUD USB-ISP prog on win 10 (64bit) : NEWTOPIC



    Hi.
    I came back to Bascom after along time of absence due to a required update to one of my projects. Using the latest version (2.0.8.6) I tried to install the driver for the EMBUD USB-ISP programmer but windows says something about corrupt files or something and does not go thru with the instalaltion. As a result Bascom says "USB programmer not found".
    I have Win 10 64 bit installed. Are these drivers suitable for this version ?


    [b:188fd77862][color=red:188fd77862](BASCOM-AVR version : 2.0.8.6 )[/b:188fd77862][/color:188fd77862]

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

Password:




[ ]
[ ]
Headlines

»BASCOM-AVR : Local variables naming & speed : REPLY
Thank you
»BASCOM-AVR : Local variables naming & speed : REPLY
no that should not be an issue. and the length is not important as well. i would prefix a global van with g and a local with l(L)...
»BASCOM-AVR : Local variables naming & speed : NEWTOPIC
Hello guys, teoretical question. I found somwhere on this forum that naming locals same name in different subs or functions can c...
»BASCOM-AVR : Installing EMBUD USB-ISP prog on win 10 (64bit) : REPLY
Thank you both for replying. The second solution worked out for me, thanks again.
»Share your working BASCOM-AVR code here : 1.3inch 65K FullColorLCD 240x240dot [ST7789V] : REPLY
Hi O-Family Passing the data is not a real problem. But the operations on the data require an additional register. And if i rem...
»BASCOM-AVR : Installing EMBUD USB-ISP prog on win 10 (64bit) : REPLY
The ones from EDC will not work since they are not compatible. you need to use the EMBUD drivers. in windows you need to disable...
»Share your working BASCOM-AVR code here : 1.3inch 65K FullColorLCD 240x240dot [ST7789V] : REPLY
Hi, Mark I also thought that we needed to make the 2-byte passing compatible, so I looked for a way to do it. For example, i...
»BASCOM-AVR : Installing EMBUD USB-ISP prog on win 10 (64bit) : REPLY
If I remmember right then EMBUD was such a AVR ISP MKII. Then, if you don want to download whole Microchip Studio then you need d...
»Share your working BASCOM-AVR code here : 1.3inch 65K FullColorLCD 240x240dot [ST7789V] : REPLY
hello O-Family As usual a great contribution from you. Thanks for sharing. I did not see this LCD yet but it is good to know i...
»BASCOM-AVR : Installing EMBUD USB-ISP prog on win 10 (64bit) : NEWTOPIC
Hi. I came back to Bascom after along time of absence due to a required update to one of my projects. Using the latest version (2...


Date published: not known
Details

»Programme per Funk an den AVR senden
Hallo allerseits Es währe für mich sehr interessant neue Programme in den Avr über eine Funkverbindung einzuspielen. Ich programmiere kleine selbst...
»Arduino ähnliches Board mit evtl besserem AVR-Prozessor
Hallo, ich habe ein arduino ähnliches Bord entdeckt das einen Prozessor enthält der mit dem Befehlssatz des Atmega328P kompatibel ist. Jedoch u.U. ...
»Wiedermal der Arduino: Fehlermeldung wenn Print zu Anfang
Einen schönen Sonntag Nachmittag euch allen. Da es in meinem Hobbykeller angenehmer ist, habe ich mal einen UNO im Bascom 2.0.8.6 versucht zu progr...
»QiangLi matrix RGM Q6.6Eco + Atmega2560
Hello! On your forum I found code for controlling RGB matrices. Slightly redesigned to control the QiangLi Q6.6Eco matrices together with the Atmeg...
»MPU 6050
Hallo Freunde von Bascom Ich programmiere gerade mit dem (ich weiß, schon älter) MPU 6050. Ich benötige einen Drehwinkel, x y z, egal einer reicht ...
»Daten in EEPROM retten bei Spannungsausfall
Guten Morgen, ich habe vor einem halben Jahr für einen Kollegen einen Aufzug auf einem Bahnsteig seiner H0-Anlage gebaut. Dabei wird die Bewegung ...


Date published: Fri, 06 Sep 2024 08:19:25 +0000
Details

»4 January 20244 January 2024
»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


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.