Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20763

BASCOM-AVR : XRAM + HARD SPI not work!? : REPLY

$
0
0
Hi Mark! Yes library provides. comment = AVR XMEGA library libversion = 2.0.7.7 date = 21 July 2011 Was as follows: [code:1:b2e24235c2][_XSPI] _SPI2BASE: ;translate the SPI numbers passed in softstack to the base address ; SPI base is usual 8C0,9C0,AC0,BC0 but for the E series this is 8E0 ; Ld r23,y+ ; pop SPI number 0-3 back from the stack _SPI2BASE_NI: ; when called direct, R23 must be loaded with the SPI number 0-3 * ldi r26,lbyte(_SPI_BASE); base address LSB $C0 Ldi r27,8 ; base MSB add r27,r23 ; add SPI, registers now point to CTRL register #IF _HUGE Clr R26 ; page address Out RAMPX,R26 #ENDIF Ret[/code:1:b2e24235c2] Replaced by your code. Everything works. Thanks, Ruslan.

Viewing all articles
Browse latest Browse all 20763

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>