I have looked under the help and several threads.
I have been unable to determine what the &B _ means in the xmega???
thread :
http://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=8941&highlight=xmega+pin+control+register
Code:
[code:1:ab580a79e2]$regfile = "xm128a1def.dat"
$crystal = 32000000
$hwstack = 64
$swstack = 40
$framesize = 40
$lib "xmega.lib"
$external _xmegafix_clear
$external _xmegafix_rol_r1014
Config Osc = Enabled , 32mhzosc = Enabled
Config Sysclock = 32mhz , Prescalea = 1 , Prescalebc = 1_1
Ddra = &B0000_0000 'PORTA = INPUT
Porta_pin1ctrl = &B0001_1000 'set Pull up in PORTA - Pin 1 Control Register
'Portf_pin1ctrl = &B0001_0000 'set Pull DOWN in PORTA - Pin 1 Control Register
Do
'do something...
Loop
End 'end program
[/code:1:ab580a79e2]
What does the underscore mean?
I have read the datasheet but at a loss of what the _ is doing????
In AVR-DOS mark has the file Config_MMCSD_HC.inc as
[code:1:ab580a79e2]
portc_pin6ctrl=&B00_011_000 ' MISO pin pull up
[/code:1:ab580a79e2]
What is the difference???? The underscores????
[b:ab580a79e2][color=red:ab580a79e2](BASCOM-AVR version : 2.0.7.6 )[/b:ab580a79e2][/color:ab580a79e2]
↧