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

This page ever ...
total: 164
unique: 95

Site ...
total: 2524
unique: 1054
Online
  • Guests: 1
  • Members: 0
  • Newest Member: ole
  • Most ever online: 36
    Guests: 36, Members: 0 on Tuesday 11 April 2017 - 04:26:13
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
4 months ago
test
Royalsystems blog

MCS Electronics Forum

  • Share your working BASCOM-AVR code here : LCD menu with UI designer : REPLY



    [b:21d5969a57]LCD Menu V. 1.5[/b:21d5969a57]

    Enhancements:
    * Added option to preserve editable values in EEPROM
    * Changed file extensions from .bas to .inc
    * Added menu entry move up/down buttons

    Bug fixes:
    * Exported wrong count of values of type Long
    * Exported wrong data for Dword data types
    * Minor bug fixes

    Download: http://mat.midlight.eu/index.php/Simple_LCD_Menu_Main_Page#Download
    Older versions should receive an update notification on startup.

    br

  • BASCOM-AVR Old versions : String variables suddenly emptied : REPLY



    thanks Mark,
    I use the code explorer but I never open the info. I discover it just now !
    very usefull for the free Sram.

    is it working for all file of a project or only for the "in focus" file ?
    JP

  • BASCOM-AVR Old versions : tinyavr 1-series with bascomavr : REPLY



    No, Bascom do not support any tinyavr with only 16 general purpose working registers - 32 register (and additional SRAM) are needed.

  • BASCOM-AVR Old versions : String variables suddenly emptied : REPLY



    in 2080 version the code explorer can show the used stack. while that is a new option and you need to read the help about it, it gives a good idea of the minimum required stack.
    Without posting a piece of code that can demo the problem, there is little we can do.

    take in mind that :

    [code:1:4057a104e4]sub something()
    local mylocal as string * 100
    end sub
    [/code:1:4057a104e4]
    will use the frame space for 101 bytes already.

  • BASCOM-AVR Old versions : String variables suddenly emptied : REPLY



    I use :

    $hwstack = 128
    $swstack = 64
    $framesize = 128

    and I have a lot of warning:
    Source string could be too big to fit into target string [S_SECOND>___STRBUF] in line 213
    Source string could be too big to fit into target string [S_MINUTE>___STRBUF] in line 218
    Source string could be too big to fit into target string [S_HOUR>___STRBUF] in line 232
    Source string could be too big to fit into target string [S_DAY>___STRBUF] in line 249
    Source string could be too big to fit into target string [SHORT_MONTH>___STRBUF] in line 259

    Don't be worry about them if you do a good dim of the variable
    JP

  • BASCOM-AVR : tinyavr 1-series with bascomavr : NEWTOPIC



    Does BascomAVR support tinyavr 1-series?

    [b:b0751ca72c][color=red:b0751ca72c](BASCOM-AVR version : 2.0.7.8 )[/b:b0751ca72c][/color:b0751ca72c]

  • BASCOM-AVR Old versions : String variables suddenly emptied : REPLY



    I use the following:

    $regfile = "m328def.dat" 'ATMega 328P
    $crystal = 20000000 'Quarz: 20 MHz

    $baud = 19200
    $hwstack = 32 'hardware stack
    $swstack = 10 'software stack
    $framesize = 40 'frame space

    I tried to double the values, no effect ...

    The compiler gives the following warnings:
    [code:1:361f995fda]Source string could be too big to fit into target string [VSET_STRING>___STRBUF] in line 0
    Source string could be too big to fit into target string [VSET_STRING>___STRBUF] in line 0
    Source string could be too big to fit into target string [CSET_STRING>___STRBUF] in line 0
    Source string could be too big to fit into target string [CSET_STRING>___STRBUF] in line 0
    Source string could be too big to fit into target string [VOLT_STRING>___STRBUF] in line 0
    Source string could be too big to fit into target string [CURRENT_STRING>___STRB in line 0
    Source string could be too big to fit into target string [POWER_STRING>___STRBUF in line 0
    Source string could be too big to fit into target string [PV_STRING>___STRBUF] in line 0[/code:1:361f995fda]

    JW

  • BASCOM-AVR Old versions : String variables suddenly emptied : REPLY



    Hi,
    check your compilation directive about the stack, and framesize

    $regfile = "M168def.dat"
    $crystal = 16000000
    Config Clockdiv = 1 ' either use this or change the divider fuse byte

    $hwstack = ?
    $swstack = ?
    $framesize = ?

    You could try to increase it
    Read the help about them.
    JP :wink:

  • Various : LM75 sensor on different boards reads different temperatures : REPLY



    It seems 2 version of LM75 old device : 9bits, new only 7. see Paulvk code
    I read your sub to read the LM75
    read the Paul version.
    I really prefer the Paul ' s one :

    Function Lm75read(byval Num As Byte) As Single
    Local Lm75temp As Integer
    Local Waddress As Byte
    Local Raddress As Byte

    Waddress = Lm75ad(num) 'using address stored in EEPROM
    Raddress = Waddress + 1

    I2csend Waddress , 0
    I2creceive Raddress , Lm75temp , 0 , 2

    Swap Lm75temp 'swap the bytes as I2creceive reverses them
    If Lm75temp.15 = 1 Then 'its a negative number

    Shift Lm75temp , Right , 5 ' 5 unused bits plus the sign bit above
    [u:391789c2d6] ' Shift Lm75temp , Right , 7 'for older 9 bit devices[/u:391789c2d6]

    'as its a neagative number the first 5 bits are "1"
    Toggle Lm75temp.15
    Toggle Lm75temp.14
    Toggle Lm75temp.13
    Toggle Lm75temp.12
    [u:391789c2d6] '-for 9 bit devices[/u:391789c2d6]
    'Toggle Lm75temp.11
    'Toggle Lm75temp.10

    Else 'its a positive number

    Shift Lm75temp , Right , 5 ' 5 unused bits plus the sign bit above
    [u:391789c2d6] ' Shift Lm75temp , Right , 7 'for older 9 bit devices[/u:391789c2d6]

    End If

    Lm75read = Lm75temp * 0.125 'now we have the binary value

    End Function

    Maybe you used both version ?
    JP confused:

  • Share your working BASCOM-AVR code here : RGB8TO16 and 480x272 TFT LCD : REPLY



    thanks for the update cheesey

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

Password:




[ ]
[ ]
Headlines

»Share your working BASCOM-AVR code here : LCD menu with UI designer : REPLY
[b:21d5969a57]LCD Menu V. 1.5[/b:21d5969a57] Enhancements: * Added option to preserve editable values in EEPROM * Chang...
»BASCOM-AVR Old versions : String variables suddenly emptied : REPLY
thanks Mark, I use the code explorer but I never open the info. I discover it just now ! very usefull for the free Sram. is ...
»BASCOM-AVR Old versions : tinyavr 1-series with bascomavr : REPLY
No, Bascom do not support any tinyavr with only 16 general purpose working registers - 32 register (and additional SRAM) are neede...
»BASCOM-AVR Old versions : String variables suddenly emptied : REPLY
in 2080 version the code explorer can show the used stack. while that is a new option and you need to read the help about it, it g...
»BASCOM-AVR Old versions : String variables suddenly emptied : REPLY
I use : $hwstack = 128 $swstack = 64 $framesize = 128 and I have a lot of warning: Source string could be too big to fit...
»BASCOM-AVR : tinyavr 1-series with bascomavr : NEWTOPIC
Does BascomAVR support tinyavr 1-series? [b:b0751ca72c][color=red:b0751ca72c](BASCOM-AVR version : 2.0.7.8 )[/b:b0751ca72c][/colo...
»BASCOM-AVR Old versions : String variables suddenly emptied : REPLY
I use the following: $regfile = "m328def.dat" 'ATMega 328P $crystal = 20000000 ...
»BASCOM-AVR Old versions : String variables suddenly emptied : REPLY
Hi, check your compilation directive about the stack, and framesize $regfile = "M168def.dat" $crystal = 16000000 Config Cloc...
»Various : LM75 sensor on different boards reads different temperatures : REPLY
It seems 2 version of LM75 old device : 9bits, new only 7. see Paulvk code I read your sub to read the LM75 read the Paul v...
»Share your working BASCOM-AVR code here : RGB8TO16 and 480x272 TFT LCD : REPLY
thanks for the update :D


Date published: not known
Details

»Regelung schaltet nach Temperaturänderung nicht mehr richtig
Brauche wieder eure Hilfe!!! Habe ein neues Thema erstellt da es in meine "alten" nicht wirklich passt. Vor einigen Tagen habe ich wieder einen kle...
»Display ILI9225 176x220 Pixel 2.2"
Hallo, hier mal ein Programm zur Ansteuerung vom ILI9225 Display, nicht zu verwechseln mit dem ILI9325 das ist ein anderes Thema. Das Display wird...
»Spielereinen mit dem Max7219 und 8x8 Ledmatrixen
Als Ergänzung zu dem Lexikoneintrag Max7219 mit 8x8 Ledmatrix, scrollende Textdarstellung mit einem schmalen font hier noch ein paar Spielereien. D...
»Windows Software Visualisierung RS232
Kennt Jmd eine Stoftware mit der man Daten eines RS233- Ports ganz easy Visualisieren kann? Ähnlich wie es ein Nextion HMI-Display macht. Nur eben ...
»26F064 EEPROM an ATMEGA328
Hallo, seit einer Woche versuche ich nun schon, einen SPI EEPROM zu verwenden. Das Programm soll einfach 5 Zeichen in dem EEPROM speichern und wied...
»Hofbeleuchtung, Tipps für haltbare Leuchten/Leuchtmittel erwünscht
Ich hab' eine Hofbeleuchtung, bestehend aus Bewegungsmelder Dämmerungsschalter und eben Leuchtkörper. Im Laufe der Jahre haben sich die Leuchtkörpe...


Date published: Tue, 21 Nov 2017 19:18:49 +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.