Bascom 2.0.6.2

Bascom, Wiring és Arduino frissítések, hátterei esetleges hibái
Avatar
Robert
Elektronbűvölő
Hozzászólások: 10191
Csatlakozott: 2005. december 9. péntek, 7:00

Bascom 2.0.6.2

Hozzászólás Szerző: Robert »

A megjlenés várható. Ami tervezett javítás:

Globális és lokális változóként (Sub/Function) azonos néven is lehessen változó. Ezzel a Bascom 2.0.6.1 verzióban (2.0.6.0 ?) probléma lehet.
Ezen verziókban NE legyen az átadott változó neve azonos az átvettel!
Avatar
Robert
Elektronbűvölő
Hozzászólások: 10191
Csatlakozott: 2005. december 9. péntek, 7:00

Hozzászólás Szerző: Robert »

2.0.6.2
- added sample for MyAVR MK3 (display, 7-seg)
- extended fuse byte added to 2313,2313A and 4313.
- if you use INITLCD in your code, the compiler will not call _init_lcd any longer as part of the initalization.
this way you can control when the lcd is initialized. for an xmega this should be done after the oscillator is chosen and the clock is stable.
- lcd4busy_anypin lib changed to support xmega
- set/reset will use register r23 instead of r24

2.0.6.1
- power modes did not update power mode registers, this would make the power modes fail.
- rs485 sample added from MAK3 for xmega and arduino
- ds1307_GER.lib added for European date/time convention. Mods by MWS.
- pulsein adapted for xmega, also sample added from MAK3.
- report module calculated baud, but this gave an error if the uart was not used and bascomp.exe was used.
- dma channel repeat counter is a byte (and probably a word in the future) but it is moved back from the WIO section since it is a byte.
- {xxx} dit not work for data statements due a change in 2060.
Avatar
Robert
Elektronbűvölő
Hozzászólások: 10191
Csatlakozott: 2005. december 9. péntek, 7:00

Hozzászólás Szerző: Robert »

A köv program 2.0.6.2 alatt NEM megy (bit-manipulálás)
2.0.6.1 alatt OK.

Kód: Egész kijelölése

'bit test 
$regfile = "m88def.dat" 
dim wm(5) as word 
dim b as byte,xx as bit 
dim j as byte, ar(3) as byte 
b=2 
j=3 
ar(j)=2 

wm(ar(j)).1=1 'should set wm(2).1 

wm(b).ar(j)=1     'should set wm(2).2 
wm(b).j=1         'should set wm(2).3 
wm(b).j=0 

set wm(2).0 
reset wm(2).0 

set wm(b).j       'set wm(2).3 
reset wm(b).j 


set wm(1).15 
reset wm(1).15 

set wm(1).16 
reset wm(1).16 

set portb.0 
set portb.b 

set j.0 

'wm(3).0=1 
'wm(4).0=1 
'wm(5).0=1 
xx=wm(2).0 

print xx;wm(1);wm(2);wm(3);wm(4);wm(5) 
end
Válasz küldése