Thank you for sharing your code.
you can calculate LCS by adding value to the LEN till it becomes 0.
So if LEN is 200, and we add 55 we get 255, if we add another 1, the byte overflow into 0.
So the 'forumula' is LCS=256-LEN
That is, that is how i read it.
↧
BASCOM-AVR : pn532 with bascom : REPLY
↧
BASCOM-AVR : pn532 with bascom : REPLY
I did simply program to collect datas from pn532. Under this link [url]https://www.youtube.com/watch?v=vNiot0elisQ[/url] you may see it.
Regards
↧
↧
BASCOM-AVR : pn532 with bascom : REPLY
Thanks for the video :-)
It seems to work excellent. Well done.
↧
BASCOM-AVR : pn532 with bascom : REPLY
Thanks :)
↧
BASCOM-AVR : "warm" reset doesn't work properly in assembly : REPLY
I would have mentioned which version Bascom was previously used to compile it but I don't know (other than it was sometime in 2012).
In any case, I made the following change to the m2560def.dat file as I am using UART0 for serial com to the outside world:
[code:1:67300cd8ab]
U2X0 = 0 ; Double the USART transmission speed[/code:1:67300cd8ab]
There is no difference in (mis)behavior.
↧
↧
BASCOM-AVR : Bascom stops to start : REPLY
Hello Mark,
I am trying desparately to fix the problem. No success.
Bascom 2.0.8.0 and later does not start (error as reported in my first post).
[quote:83bc7aa3ff]the only fundamental change is support for hid based programmers.[/quote:83bc7aa3ff]
Mark, could you give me a hint which files are involved?
Thank you, Meister
↧
BASCOM-AVR : Bascom stops to start : REPLY
Try run Bascom [b:09d70426cc]Installer[/b:09d70426cc] by right click and "Run as administrator".
↧
BASCOM-AVR : "warm" reset doesn't work properly in assembly : REPLY
- you really need to come up with a version
- then read the history, especial about u2x
here is what i mean :
- when using a serial boot loader compiled with an older version, and when calling it from code (not after a reset) you need to reset the u2x flag in ucsrxA.
Or you can compile both the bootloader and main code with the new version. When you want the old behavior, you can remark the u2x constant in the dat file.
It appears you changed the constant value to 0 which is not a good idea.
Again, and i repeat, there is nothing wrong with JMP, RJMP or GOTO in any of the releases. So if you think otherwise i want to see some good info.
↧
BASCOM-AVR : Bascom stops to start : REPLY
you can best contact support. one other thing that has changed is checking for illegal versions. in order to let hackers think they did a good patch there are some tricks built in.
Some customers with a valid license, sometimes download a new version from a non-mcs location, then they end up with wrong files. I have no idea why they do so, and i do not say you did so too, but when bascom does not start, it can be that an invalid license is detected.
but it can be something else too.
We always test releases on win10 but of course there are 1001 different configurations and hardware and drivers.
This forum is for users, by users, this is NOT the MCS support site. So please do not address me personally. There is really no guarantee that i read the topics especially since we recover from a server change.
↧
↧
BASCOM-AVR : Bascom stops to start : REPLY
[quote:266c7af257]run Bascom Installer by right click and "Run as administrator"[/quote:266c7af257]
Did not help.
↧
BASCOM-AVR : Bascom stops to start : REPLY
[quote:2eefbb916a="Meister"]difference between these versions, causing the recent version to be by sudden incompatible with an updated Win10.[/quote:2eefbb916a]
Win10 knows compatibility modes as well as a compatibility troubleshooter.
↧
BASCOM-AVR : Bascom stops to start : REPLY
[quote:5ee949650c]Win10 knows compatibility modes as well as a compatibility troubleshooter.[/quote:5ee949650c]
Tried each mode. Does'nt help.
Each of my other 20 or so programs, old and recent, are working.
There must be something specific that was changed in Bascom from 2079 to 2080 and later.
Mark mentioned HID.
If I knew the modules being called I could try.
I have a couple of backup-clones of the system drive (just to prevent insulting me...).
However, I am struggling now for three full days trying to restore one of them. It's a real mess.
Just because Bascom 2080 and later does'nt work....
So, if there were some suggestion concerning (maybe called HID-modules from Bascom) I would be happy.
↧
BASCOM-AVR : "warm" reset doesn't work properly in assembly : REPLY
Thanks Mark. As the original bootloader is already installed on some units that are already deployed, I opted to leave the bootloader code alone as well as the dat file and added the following to my reset call (and yes, changed it to GOTO as well)
[code:1:3da52ae887]UCSR0A.U2X = 0[/code:1:3da52ae887]
And in the startup part of the program that starts after boot, I added
[code:1:3da52ae887]UCSR0A.U2X = 1[/code:1:3da52ae887]
(sometimes I need a kick to remind me about the simple way to fix issues, thanks)
↧
↧
BASCOM-AVR : How to continue a long program line on the next line? Is it : NEWTOPIC
My LCD 16*2 program line has more than 80 caracters. I would like to use less than 80 caracters on first line and continue on the next line.
I want to print my program and limit the numbers of caracters per line less than 81.
I researched the help and I did not find how to do it.
Thank you.
MOR_AL
[b:d85d0b35f6][color=red:d85d0b35f6](BASCOM-AVR version : 2.0.8.1 )[/b:d85d0b35f6][/color:d85d0b35f6]
↧
BASCOM-AVR : How to continue a long program line on the next line? Is it : REPLY
The underscore does this trick.
↧
BASCOM-AVR : How to continue a long program line on the next line? Is it : REPLY
[quote:c5a7efc101="MWS"]The underscore does this trick.[/quote:c5a7efc101]
It worked.
Thank you.
MOR_AL
↧
BASCOM-AVR : Simulation : NEWTOPIC
I am trying o simulate the example [b:22baa74083]AN#144 - CodeLok AVR[/b:22baa74083].
I read on help file (pg. 86) "[i:22baa74083]When you simulate the Keyboard, it is important that you press/click the keyboard button [b:22baa74083]before [/b:22baa74083]simulating the getkbd() line !!![/i:22baa74083]"
103 Do
104 Keyread = Getkbd()
105 If Keyread <> 16 Then Gosub Gotkey
Ok!
I tried to do that many times without success. At all times Keyread = 16 ([i:22baa74083]when no key is pressed 16 will be returned[/i:22baa74083]).
Does anyone know what's going on?
Thank you
MOR_AL
[b:22baa74083][color=red:22baa74083](BASCOM-AVR version : 2.0.8.1 )[/b:22baa74083][/color:22baa74083]
↧
↧
BASCOM-AVR : Simulation : REPLY
[quote:fadcbbf8fb="MOR_AL"]Does anyone know what's going on?[/quote:fadcbbf8fb]
'Anyone' would guess that you do it wrong.
Set a breakpoint to line 114, press the desired key and keep pressed, single step with the F8-key to line 115, release the key, place the mouse pointer over Keyread, check the status line.
↧
BASCOM-AVR : Simulation : REPLY
[quote:1949c0c589="MWS"]...
[b:1949c0c589]'Anyone'[/b:1949c0c589] would guess that you do it wrong.
Set a breakpoint to line 104, press the desired key, single step with the F8-key to line 105, place the mouse pointer over Keyread, check the status line.
[b:1949c0c589]Edit:[/b:1949c0c589] Edited for more sense :D[/quote:1949c0c589]
Sorry about my English. English is not my mother language. I am using Google translate with my slight knowledge of English.
I followed your instructions in detail, several times, but it did not work.
I should be having problems with my Bascom-AVR simulador.
For several times the F8 key does not work, its icon has the same problem.
Sometimes by clicking F8 on the instruction line [b:1949c0c589]Lcd "WWW.AVR.4MG.COM[/b:1949c0c589]" Only "[b:1949c0c589]W[/b:1949c0c589]" is printed.
The time invested to use this simulation correctly is being too much. I realize that I should give up using it.
Thank you for responding promptly.
MOR_AL
↧
BASCOM-AVR : Simulation : REPLY
I tink it is not Bascom Simulator. It behave like it should, show you that something is not right here.
PORTB is chosen for keyboard reading but it also in the code description drive the LCD...
[code:1:0411203c04]'Config Lcd = 16x2
'Db4 = Portb.0 , Db5 = Portb.1 , Db6 = Portb.2 , Db7 = Portb.3
'Enable = Portd.6 , Rs = Portd.5[/code:1:0411203c04]
[code:1:0411203c04]
Config Kbd = Portb , Debounce = 40[/code:1:0411203c04]
I think this will cause the mess here. Something on the AN144 is not described till the end I think :D
↧