@Mark
any news with this feature?
↧
BASCOM-AVR : wish for BASCOM future versions => user defined stuctures : REPLY
↧
Various : Structure Type ... End Type : REPLY
[quote:adbe78af35="six1"]Hi Mark,
maybe it's time to change strategy...
Buying Version of Bascom with free Bugfix inside the Version.
Upgrade with upgrade fee for new Versions.
Iwill be on board...
best regards, michael[/quote:adbe78af35]
Full ACK !!
I'm a professional user and I (my boss) would pay for updates and a support contract.
I don't know how much, but sure more than 99$ per year.
We developed a complete system for a high power BLDC, with 3 devices based on a XMEGA256A3U
a) Battery managment system
b) Motor Controller
c) HMI with FT810
The 3 systems communicate via RS485-Bus (Motor Controller as polling Master, HMI and up to 8x BMS as Slaves) every 32ms
We use nearly every feature which XMEGA & BASCOM has as:
many, many interrupts
DMA
Event System
SPI
I2C
ADC
AC
DAC
...
FT810
...
I also would do beta tests....
↧
↧
BASCOM-AVR : wish for BASCOM future versions => user defined stuctures : REPLY
it's frustrating
as Mark told you: It's a matter of time and it will be there if you can see it it newer version...
you can't speed up the process by asking multible times...
clear now?
↧
BASCOM-AVR : Atmega 328p How reset by software ? : REPLY
acjacques
Hi my friend, I wrote one tutorial with many examples in Bascom to newbies, here is Brazil :
https://www.clubedohardware.com.br/forums/topic/937085-projetos-com-avr-design-programa%C3%A7%C3%A3o-em-basic-e-assembly/
You can download my tutorial with more than 150 pages, with Proteus simulations too.
Paulo
↧
BASCOM-AVR : Problem Including Bootloader Code in Application Program : REPLY
I have tried to include the compiler as indicated in this thread with version 2.0.8.1 and get the error:
Error : 344 Line : 200 Program will overwrite bootloader [ 256840 too long] , in File : D:DESARROLLOEi_2.26Main.bas
Just want to know if problem has not been solved in 2.0.8.1 or am I doing something wrong.
Regards
↧
↧
BASCOM-AVR : wish for BASCOM future versions => user defined stuctures : REPLY
[quote:6d242d740d="six1"]multible times...[/quote:6d242d740d]
Is this what a multiviprator does? :D
↧
AVR-DOS : error dateline : NEWTOPIC
Hello
I have been using AVR-DOS with Hkipnik routines for a long time
included in its programs to drive displays with SD card readers, I never had a problem.
I want to change the display but continue to use AVR-DOS
I started the step-by-step writing of the file reading and writing program
and everything is going well until I want to add my date and time routines (as a remark in the program)
I then have a "label datetime not found" error [img][img:5dc0727244]https://www.mcselec.com/userpix/115_20190608_111828_1.jpg[/img:5dc0727244]
[code:1:5dc0727244]
'programmateur Arduino STK500/V2 115200 baud 200 timeout et port visible dans diagnostic
' Arduino mega 2560
' SCK= PB1 (20) {52}
' Miso=PB3 (22){50}
' mosi=PB2 (21) {51}
' ss =PB0 (19) {53}
'I Use A Lot Of Part From
'Hkipnik@aol.com
'---------------------------------------------------------------------------------------------------------------------------------------------------------------
$regfile = "m2560def.dat"
$crystal = 16000000
$hwstack = 250
$swstack = 250
$framesize = 430
Config Submode = New
'---les config*****************************************************************************
Config Com1 = 38400 , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0
Config Com2 = 57600 , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0
Config Serialin1 = Buffered , Size = 20
Config Serialout1 = Buffered , Size = 20
$lib "i2c_twi.lbx" ' we do not use software emulated I2C but the TWI
' Configure the SCL and SDA pins
Config Sda = Portd.1
Config Scl = Portd.0
Config Twi = 400000 '100000
'(
'------------les config date &time------------------------------------------------------
Config Clock = User ' we use I2C for the clock
Config Date = Dmy , Separator = /
_year = 19
_month = 6
_day = 8
_hour = 11
_min = 0
_sec = 30
')
'*******************************************************************************
Const Ds3231r = &B11010001 'Ds3231 is very similar to DS1307 but it include a precise crystal
Const Ds3231w = &B11010000
Const Sd_card = 1 'with SD Card = 1 -- without SD Card = 0
'*******************************************************************************
$include "I2C-DS3231.inc"
$include "sd-card_routines-JP.inc"
'*******************************************************************************
$include "Config_MMCSD_HC.bas"
Call Sdcard_initialize()
'****Variable to use with AVR-dos****************************************************
Dim Ff As Byte 'freefile)
Dim Stdir As String * 35 'name of directory or other sentence to write
Dim Lenstring As Word
'****variable used here ************************************************************
Dim Sentence As String * 60
Dim Help_str As String * 10
'write a sentence in a file named fileone*****************
Sentence = "hello word"
If Stdir = "" Then
Stdir = "fileone"
Stdir = Stdir + ".TXT"
End If
Ff = Freefile()
Open Stdir For Output As #ff 'or append if you need to append some text
Write #ff , Sentence
Close #ff
Waitms 100
Print "Write stdir : " ; Stdir
Print "write sentence : " ; Sentence
Waitms 200
'Read a sentence in the same file**********************
Stdir = "fileone"
Stdir = Stdir + ".TXT"
Ff = Freefile()
Open Stdir For Input As #ff
Do
If Filelen(stdir) > 0 Then 'un fichier anniv existe
Lineinput #ff , Sentence ' read a line line input is used to read a line of text from a file
If Len(sentence) > 0 Then
If Left(sentence , 1 ) = Chr(34) Then ' delete the of "
Delchar Sentence , 1
End If
If Right(sentence , 1) = Chr(34) Then ' delete the of "
Lenstring = Len(sentence)
Delchar Sentence , Lenstring
End If
End If
End If
Loop Until Eof(#ff) <> 0 'The EOF() function returns a non-zero number when the end of the file is reached
Close #ff 'This way we know that there is no more data we can read
Print "read stdir : " ; Stdir
Print "read sentence : " ; Sentence
Waitms 200
End
[/code:1:5dc0727244]
many thanks for your help
JP :cry:
↧
AVR-DOS : error dateline : REPLY
Hi,
Have a look in the help text for config clock:
[quote:0c94dc70e3]When you choose the USER option, only the internal variables are created (like _sec , _min , _hour....).
With the USER option you need to write the clock code yourself (so the USER need to update for example the System Second or Secofday).
This means the one second clock must be generated by a "USER" source like a Timer which use the internal clock or an XTAL depending on the Xtal configuration.
There are so called "AVR Timer Calculator" online available where you input the clock frequency from xtal, which Timer you use (8 or 16 Bit) and the period you want to achieve (like 1 second or 1000ms) than it will give you number which you need to configure the timer.
You also configure the interrupt of the timer and then the program will jump to the timer interrupt routine where you can set the new system second.
Config Clock = User 'Use USER to write/use your own code
You also need to include the following labels with config clock = user:
Getdatetime:
'called when date or time is read
Return
Setdate:
'called when date$ is set
Return
Settime:
'scanned when time$ is set
Return
[/quote:0c94dc70e3]
Regards
Ian Dobson
↧
AVR-DOS : error dateline : REPLY
thanks you Ian
I did the routines for time, date in a .Inc file
But I forgot to call them BEFORE the AVR-dos . It is a little bit tricky
:wink:
JP
↧
↧
BASCOM-AVR : Atmega 328p How reset by software ? : REPLY
[quote:d1286a780c="aphawk"]acjacques,
Hi my friend, I wrote one tutorial with many examples in Bascom to newbies, here in Brazil :
https://www.clubedohardware.com.br/forums/topic/937085-projetos-com-avr-design-programa%C3%A7%C3%A3o-em-basic-e-assembly/
You can download my tutorial with more than 150 pages, with Proteus simulations too, in Portuguese language.
Paulo[/quote:d1286a780c]
Prezado Antonio Paulo Hawk;
Obrigado pelo tutorial. Bem interessante e útil.
Tenho alguma experiencia prévia em PICBasic Pro. Estou usando placas Arduino Nano que são bem praticas por incluir o conversor USB e poder programar com Bootloader.
ACJacques
↧
Various : corrupted settings file ??? : NEWTOPIC
Hello,
I use the bascom Version 2.0.7.8 at WIN10. This works fine for long time now. Some days ago I had a blue screen during working with Bascom. After that Bascom does not recognize my settings any longer. Equal what I choose in the option register, after new start of Bascom , it starts again with default settings.
I deinstalled Bascom complete and installed new, but without Progress.
What can I do to get it run again?
Thank you
↧
BASCOM-AVR : corrupted setting file ??? : NEWTOPIC
Hello,
I use the bascom Version 2.0.7.8 at WIN10. This works fine for long time now. Some days ago I had a blue screen during working with Bascom. After that Bascom does not recognize my settings (i.e. no tips, file folder, last files...) any longer. Equal what I choose in the option register, after new start of Bascom , it starts always again with default settings. This is now very boring to use.
I deinstalled Bascom complete and installed new, but without progress. I also installed new with different installing folders, also no progress.
What can I do to get it run again? Where are the settings/options stored on the PC ?
Thank you
Sorry first I made this post in the various forum, perhaps you can delete it there.
[b:666c907aba][color=red:666c907aba](BASCOM-AVR version : 2.0.7.8 , Latest : 2.0.8.1 )[/b:666c907aba][/color:666c907aba]
↧
BASCOM-AVR : corrupted setting file ??? : REPLY
In the Bascom IDE ->Help->About you will find link to "App data dir"
Open this link and then close Bascom.
Now rename file with *.xml extension. This is the file that holds settings.
After renaming previous new file will be created.
↧
↧
BASCOM-AVR : corrupted setting file ??? : REPLY
Hello,
now it works again.
Thank you very much
↧
BASCOM-AVR : wish for BASCOM future versions => user defined stuctures : REPLY
maybe :D
english isn't my native language and sometimes i can be very creative :P
↧
BASCOM-AVR : wish for BASCOM future versions => user defined stuctures : REPLY
[quote:cfddaaa576="six1"]english isn't my native language[/quote:cfddaaa576]I know, but I was not able to resist.
[quote:cfddaaa576]sometimes i can be very creative :P[/quote:cfddaaa576]Be creative all the time :D
↧
BASCOM-AVR : wish for BASCOM future versions => user defined stuctures : REPLY
in Hessisch wird babbeln auch mit "b" geschrieben, also what shalls :lol:
↧
↧
AVR-DOS : AVR Dos with a SDHC card in HW SPI mode on a atmega1284p : REPLY
Hello Ian,
I try to run a Sdcard with AVRdos
I was succesfull with Arduino ATMEGA2560
but I want to use also a Display HMI nextion, and I have a lot of pb with the couple Arduino and nextion , I don't want to rewrite all inc file that I did for ATMEGA644 ( I have to change the port com)
I know you are succefull with ATMEGA1284 and SD card and AVRdos
would you please send me the modified Config_MMCSD_HC.bas you did
Dont let me be crazy please
](*,)
jp
↧
AVR-DOS : AVR Dos with a SDHC card in HW SPI mode on a atmega1284p : REPLY
Hi JP,
I'll have a look when I get back home, which should be next Weekend. This Project is 7 years old so I'm not sure if I still have the code (I never finished to project).
Regards
Ian Dobson
↧
BASCOM Project Blog : Aluminium robot arm. : REPLY
Next step - with arms. still a lot to do... but it develops.
[url]https://www.youtube.com/watch?v=nW0IslMvxqQ[/url]
↧