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

BASCOM-AVR : lib and obj : REPLY

$
0
0
- you really should read some data sheet. it contains good valuable information. - this forum is free, do not confuse it with official support - the object code is the same for all chips. it would be very dumb if it were different. BUT : not all chips implement all the instructions. once in a while atmel implements a new assembler mnemonic. and it is hard to understand for me why they do not implement all the instructions in all the new chips. maybe it is a question of space/cost, i do not know. for the virtual ports you can map a port which has an extended address to a port with a low address. Config Vport0 = D ' portD can now be accessed as port0 See also the sample "Mapping Real Ports to Virtual Ports.bas" in the samplesxmega folder Now the beauty of Xmega is that all the registers are at the same address. So portD: DDR0=16 'DECIMAL !!! PORT0=17 PIN0=18 so the lib becomes : .EQU LCDDDR=16 ; decimal .EQU LCDPORT=17 ; changed for xmega So watch the $ !!

Viewing all articles
Browse latest Browse all 20639

Trending Articles



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