Bascom, Wiring és Arduino frissítések, hátterei esetleges hibái
Hozzászólások: 9964
Csatlakozott: 2005. december 9. péntek, 7:00
Tartózkodási hely: Budapest


HozzászólásSzerző: Robert » 2009. december 3. csütörtök, 9:25


Elektor ATM18 LCD driver added. Use $lib "lcd4-elektor.lbx". See also sample elektor-lcd-final.bas
! In XMEGA the memory is not lineair, you can not access the registers with a pointer! registers are in a separate dataspace
! In XMEGA the access order of 16/24/32 bit registers is changed. It is now from LSB-MSB for both reading and writing !
Following comment is for XMEGA only. Please look in the help for a full description.
- CONFIG COM starts at 0 for xmega , other parameters differ slightly too
Config Com0 = 38400 , Mode = Asynchroneous , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0
- When using EEPROM, you need to add : Config Eeprom = Mapped
- CONFIG DACA|DACB : Config Daca = Enabled , Io0 = Enabled , Channel = Single , Reference = Int1v , Interval = 64 , Refresh = 64
- Config Osc = Enabled , 32mhzosc = Enabled
- Config Sysclock = 32mhz , Prescalea = 1 , Prescalebc = 1_1
- Config Priority = Static , Vector = Application , Lo = Enabled
Notice that Xmega support is not fully implemented. But it is well enough to use it and get familiair with it.
In the coming period there will be a number of xmega updates that will implement all 8 UARTS, ADC, multiple SPI , TWI and timers.
- Notice that while JTAG programming is supported now, it does NOT support Xmega JTAG. Atmel has changed the protocol and they could not
give an update yet that describes the changes related to XMEGA. So JTAG will work for non-xmega but not for Xmega.
We advise to use stk600 programmer and load the/a bootloader.

- close (for UART) is now ignored. close was never needed but when you used it, it had to be done after code that was using the UART (last lines of your program).
now it does not matter anymore where you put the close, since you can not reuse a SW UART, it is ignored
- Box in glcd.lib had an error for filling the complete box
- glcd showpic command has been changed so it will not use R23 for retrieving the data. This was done for cases where the control port is an extended port (portF on M128)
and these chips can not handle all asm commands. R23 is used in such cases.
- attiny88 support added. notice that this is not a good replacement for Mega88 since it has less memory and NO UART
- attiny48 support added, see sample file.
- usb add on updated with mouse sample and some mods for the new M32U.
- M32U (m32 with usb) added.
- using NOT on a byte, indexed as a bit, and assigned to a bit, was processed as byte.
- M64def file did not had xram setting info.
- Print with a large number of parameters could lead to a crash.
- bccard lib adjusted for ZC312 cards. Notice that these cards need some delay between 2 BCCALLS.
- tiny261,461 and 861 had a type error for the LKJ-110=Brown Out 1.8 V entry (the - was an = by mistake)
- USBASP programmer support added.
- added relative to other asm mnemonics too (brcc, brcs,etc)
- Charpos() function added which is simlar to INSTR() but searches for a single digit and is quiker and uses less code.
- you need to select COM port again for STK500 native programmer. (the way it is stored has been changed)
Also added option to skip the setting of the ISP frequency, this is done for incompatible programmers.
You can enter any clock freq now. when it is below 4000, 4000 will be used!
- Added myAVR MK2 programmer. This programer uses AVR910 AN so will work for all AVR910 based programmers
by default chips that have extended ports can not handle CBI instructions. the internal assembled will convert the code automatic.
but for some instructions a register is needed.
This option is inteded for asm programmers : you can get either a warning or an error.
- m88Pdef.dat : the megajmp value was wrong resulting in a wrong interrupt jump
Also added reference for CONFIG CLOCK
- M124P,324P and 644P had TCCR2 mapped to the wrong register in the def file. it must map to TCCR2B
- $BIGSTRINGS directive added together with bigstrings.lib. With this directive, you can use big strings. Big strings
are strings that are more then 255 bytes and can be up to 65535 bytes long(if you have enough memory)
This is a first release. The library should work on all string operations but was not tested extensively for all string operations. Please report if you find a bug.

Vissza: “Bascom/Arduino/Wiring frissítések”

Ki van itt

Jelenlévő fórumozók: nincs regisztrált felhasználó valamint 1 vendég