Author |
Message |
Topic: Problem with 2.0.1.0 and Mega 2561? |
albertsm
Replies: 16
Views: 1432
|
Forum: BASCOM-AVR Archive Posted: Wed Nov 24, 2010 8:59 pm Subject: Problem with 2.0.1.0 and Mega 2561? |
To make it more clear for the users that did not follow this problem:
An update broke some code. And as anybody, i do not like (potential) bugs.
Old AVR chips had a problem with skip instructions wh ... |
Topic: bootoader and atxmega128a1 |
albertsm
Replies: 8
Views: 884
|
Forum: BASCOM-AVR Archive Posted: Wed Nov 24, 2010 12:32 pm Subject: bootoader and atxmega128a1 |
I just verified that with the stk600/pdi protocol and bascom 2.0.2.0 it works perfect. you can upload the bootloader, set the boot fusebyte and after that MCS bootloader works correct.
I think your ... |
Topic: bootoader and atxmega128a1 |
albertsm
Replies: 8
Views: 884
|
Forum: BASCOM-AVR Archive Posted: Wed Nov 24, 2010 9:53 am Subject: bootoader and atxmega128a1 |
first you need to check serial comms. when it works in a normal application it is ok.
then you need to make sure your programmer is working and can write all the pages correctly. I have had support t ... |
Topic: Strange ATMEGA8, DS18B20, 7SEGMENTS GLITCH |
albertsm
Replies: 15
Views: 1294
|
Forum: BASCOM-AVR Archive Posted: Tue Nov 23, 2010 10:20 pm Subject: Strange ATMEGA8, DS18B20, 7SEGMENTS GLITCH |
If you put the 1wire bus on a different port then then bits used for 7-segment it should work fine. If not, make a proteus project and upload your code again, i lost track about your changes.
Also ... |
Topic: Strange ATMEGA8, DS18B20, 7SEGMENTS GLITCH |
albertsm
Replies: 15
Views: 1294
|
Forum: BASCOM-AVR Archive Posted: Tue Nov 23, 2010 8:50 pm Subject: Strange ATMEGA8, DS18B20, 7SEGMENTS GLITCH |
The 1wire pass the address of the port, and using an offset you can access port, ddr and pin registers.
for example to read a value you can use LD r24, z
To alter a value ;
ld r24,z
;change bit in ... |
Topic: Menu issues |
albertsm
Replies: 2
Views: 315
|
Forum: BASCOM-AVR Archive Posted: Mon Nov 22, 2010 9:47 pm Subject: Menu issues |
If you use 2.x.x.x the ADR2 will not work!
A bug was discovered introduced with a fix for including large fonts. This broke the ADR2 in the internal assembler.
For all other versions it should work ... |
Topic: Strange ATMEGA8, DS18B20, 7SEGMENTS GLITCH |
albertsm
Replies: 15
Views: 1294
|
Forum: BASCOM-AVR Archive Posted: Mon Nov 22, 2010 3:58 pm Subject: Strange ATMEGA8, DS18B20, 7SEGMENTS GLITCH |
I read "ATMEGA 8 DS18B20 7SEGMENTS BASCOM GLITCH"
That is indeed not a very good topic description.
The glitch seems to be in your code.
I find it great to see video's on youtube with projects ... |
Topic: Read Statement, R8 & R9, and 128K address space |
albertsm
Replies: 2
Views: 276
|
Forum: BASCOM-AVR Archive Posted: Mon Nov 22, 2010 3:46 pm Subject: Read Statement, R8 & R9, and 128K address space |
It will not work since adr and adr2 only provide the address in byte/word.
they do not load or contain the RAMPZ register value.
While that could be possible, all the adr2 labels should contain this ... |
Topic: ATXMEGA SUPPORT A1,A3,A4? |
albertsm
Replies: 8
Views: 1067
|
Forum: BASCOM-AVR Archive Posted: Sun Nov 21, 2010 9:56 am Subject: ATXMEGA SUPPORT A1,A3,A4? |
The next release will have all xmega dat files. But, for the one that atmel supplied with avr studio. and i did not see 384 versions there.
It is a pity to see that they create these low end versions ... |
Topic: Is the Xmega a good choice (yet)? |
albertsm
Replies: 2
Views: 515
|
Forum: BASCOM-AVR Archive Posted: Fri Nov 19, 2010 9:09 am Subject: Is the Xmega a good choice (yet)? |
since you can access all registers without problem you are never stuck.
Lately i changed the datetime.lib for xmega as it used absolute register addressing. And this is IMO the only source of problem ... |
Topic: eeprom programming |
albertsm
Replies: 35
Views: 4006
|
Forum: BASCOM-AVR Archive Posted: Fri Nov 19, 2010 8:52 am Subject: eeprom programming |
I like to add that there are 2 libs for ramtron chips
FM24C16 and FM25C256.lib for i2c/spi ramtron chips that allow to use ramtron as if it was internal eeprom.
this means you can use : dim b(100) ... |
Topic: Returning values from a function |
albertsm
Replies: 4
Views: 336
|
Forum: BASCOM-AVR Archive Posted: Thu Nov 18, 2010 10:23 pm Subject: Returning values from a function |
you can pass it, but what i mean is that when you pass a parameter which you also assign as a result of the function, and you alter this in the function after assigning it, it will give wrong results. ... |
Topic: Problem with 2.0.1.0 and Mega 2561? |
albertsm
Replies: 16
Views: 1432
|
Forum: BASCOM-AVR Archive Posted: Thu Nov 18, 2010 8:30 pm Subject: Problem with 2.0.1.0 and Mega 2561? |
woeps : $norampz is inverted. it should be on by default, but if you define it, you will turn it off, that is not good.
why is it needed to clear rampz? when a routine crosses a boundery or when data ... |
Topic: Problem with 2.0.1.0 and Mega 2561? |
albertsm
Replies: 16
Views: 1432
|
Forum: BASCOM-AVR Archive Posted: Thu Nov 18, 2010 8:14 pm Subject: Problem with 2.0.1.0 and Mega 2561? |
You say when you add $norampz code increases.
And when you remove it, code decreases?
I will have a look. By default rampz is on, and $norampz turns it off.
When you send an email to support i ... |
Topic: Problem with 2.0.1.0 and Mega 2561? |
albertsm
Replies: 16
Views: 1432
|
Forum: BASCOM-AVR Archive Posted: Thu Nov 18, 2010 8:00 pm Subject: Problem with 2.0.1.0 and Mega 2561? |
your answer is not clear to me.
- you test 2.0.0.0 and have the same problem?
- when you use $norampz (only in 2.0.1.0) you get bigger code? it does not generate rampz clear code so should be the sa ... |
|