$regfile = "m128def.dat" ' specify the used micro $crystal = 16000000 ' used crystal frequency $baud = 19200 ' baud rate on UART#1 $baud1 = 19200 ' baud rate on UART#2 $hwstack = 32 ' default use 32 for the hardware stack $swstack = 10 ' default use 10 for the SW stack $framesize = 40 ' default use 40 for the frame space 'The M128 has an extended UART. 'when CONFIG COMx is not used, the default N,8,1 will be used Config Com1 = Dummy , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0 Config Com2 = Dummy , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0 'try the second hardware UART Open "com2:" For Binary As #1 Print #1 , Version() 'show date and time of compilation Do Print #1 , "LED: ON" Porta.6 = 0 ' Turn LED om Wait 1 ' wait a sec Print #1 , "Hello World!!" ' shout out to the world Wait 1 ' wait a sec Print #1 , "LED: OFF" Porta.6 = 1 ' Turn LED off Wait 1 ' wait a sec Loop Close #1 End