|
![](static/image/common/ico_lz.png)
楼主 |
发表于 2011-10-27 23:44:57
|
显示全部楼层
1.11.9.7
- This is a new Xmega update but also included some fixes and features for non Xmega.
- CONFIG ADCA of CONFIG ADCB added for ADC converter
- config INPUT|INPUT1|INPUT2.... INPUT8, is supported by Xmega
- all uarts are supported now. use COM1-COM8.
While all UARTS are supported, some options are not implemented such as buffered serial COM.
- new power mode support. the IDLE, POWERSAVE and POWERDOWN are replaced by POWER MODE
the old modes still work but will be removed in a future version. It is advised to use the new POWER command which supports all modes.
The supported modes depend on the micro hardware.
For example in the M88DEF.DAT for the Mega88 you will find :
Powermodes=5
PM1=Idle,SMCR.SM0-0,SMCR.SM1-0,SMCR.SM2-0
PM2=Powerdown,SMCR.SM0-0,SMCR.SM1-1,SMCR.SM2-0
PM3=Standby,SMCR.SM0-0,SMCR.SM1-1,SMCR.SM2-1
PM4=ADCnoise,SMCR.SM0-1,SMCR.SM1-0,SMCR.SM2-0
PM5=Powersave,SMCR.SM0-1,SMCR.SM1-1,SMCR.SM2-0
In this case the modes are IDLE, POWERDOWN,STANDBY,ADCNOISE,POWERSAVE
Use as : POWER IDLE
Other chips might have more modes.
- m328P has some fusebits on a different fuse compared to m88, m168p. this is now corrected.
- number of include files increased to 500. It was actual 500, but a type error resulted in 50 instead of 500.
- a bug in an update of a third party component caused an error on windows 2000.
- portQ, portR added to CONFIG for Xmega
- added COM5,6 and 7 for Xmega. Notice that for Xmega you can dynamic change the COM at run time.
- CONFIG COM for xmega changed : instead of using COM0 it is better for compatibility with other commands to start with COM1
So the range for xmega is now the same as for normal AVR : COM1-COM8
Internally, the uart channel is working with 0-7.
The TX pin is set to output in this release.
1.11.9.6
- Elektor ATM18 LCD driver added. Use $lib "lcd4-elektor.lbx". See also sample elektor-lcd-final.bas
### XMEGA NOTES ###
! 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
- CONFIG EXTENDED_PORT= WARNING | ERROR
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. |
|