'--------------------------------------------------------------
'                   M32.BAS
'--------------------------------------------------------------
$regfile = "M32def.dat"
'This file is intended to test the Mega32
'The M32 has the JTAG enabled by default so you can not use
'pins PORTC.2-PORTC.5

'Use the following code to disable JTAG
Mcusr = &H80
Mcusr = &H80

'Or program the fuse bit
$crystal = 4000000
$baud = 19200
Print "test M32"

'Config Com1 = Dummy , Synchrone = 0 , Parity = Even , Stopbits = 2 , Databits = 8
' when you unremark the line above make sure to change the terminal emulator settings
Do
  Print "hello world"
  Waitms 500
Loop
End