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

BASCOM-AVR : Getting Xmega128A4U usart0 working : NEWTOPIC

$
0
0
Hi all, This is probably a easy / stupid question but I can't get any output from the xmega usart!! [code:1:f78a74823d] $regfile = "xm128a4udef.dat" $crystal = 32000000 '32MHz $hwstack = 64 $swstack = 40 $framesize = 64 $lib "xmega.lib" : $external _xmegafix_clear : $external _xmegafix_rol_r1014 Config Osc = Enabled , 32mhzosc = Enabled Config Sysclock = 32MHZ , Prescalea = 1 , Prescalebc = 1_1 Config Com1 = 9600 , Mode = ASYNCHRONEOUS , Parity = None , Stopbits = 1 , Databits = 8 Config PORTD = OUTPUT stop watchdog do set portd.0 waitms 100 print "Testing" reset portd.0 waitms 100 loop [/code:1:f78a74823d] The port D set/reset is a LED Thanks Steve [b:f78a74823d][color=red:f78a74823d](BASCOM-AVR version : 2.0.7.6 , Latest : 2.0.7.7 )[/b:f78a74823d][/color:f78a74823d]

Viewing all articles
Browse latest Browse all 20563

Trending Articles



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