$regfile = "xm32A4Udef.dat" '4k RAM
$crystal = 32000000
$hwstack = 256
$swstack = 256
$framesize = 512
config submode = new
$lib "xmega.lib"
$external _xmegafix_clear
$external _xmegafix_rol_r1014
$PROG &HFF , &HFF , &H00 , &HFD , &HFF , &HFE , &HDF
Config osc = enabled , EXTOSC = enabled , pllosc = enabled , range = 2MHZ_9MHZ , startup = XTAL_16KCLK , pllsource = extclock , pllmul = 4 '8 MHz-Quarz
Config Sysclock = PLL , Prescalea = 1 , Prescalebc = 1_1
Config Priority = Static , Vector = Application , Lo = enabled , Med = enabled , Hi = enabled
Config Serialout0 = Buffered , Size = 100
Config Com3 = 9600 , mode = 0 , Parity = none , Stopbits = 1 , Databits = 8 'USART_D0 (TX:D.3, RX:D.2) 460800Baud
config Pinc.0 = output : tp1 alias PORTc.0 'TP Test-Ausgang
'Enable USARTD0_RXC , med 'Enable Receive Interrupt for COM1
'Enable USARTD0_TXC , med 'Enable Receive Interrupt for COM1
'enable urxc2 , med
'enable udre2 , med
Open "COM3:" For binary As #1
Enable Interrupts
do
tp1 = 1 'high for 9.38 ms
print #1 , "1234567890"
tp1 = 0
waitms 100
loop
|