18 lines
286 B
Text
18 lines
286 B
Text
con
|
|
_clkmode = xtal1 + pll16x
|
|
_clkfreq = 80_000_000
|
|
|
|
obj
|
|
ser : "FullDuplexSerial.spin"
|
|
|
|
pub main | m, n
|
|
ser.start(31, 30, 0, 115200)
|
|
|
|
repeat n from 1 to 5
|
|
repeat m from 1 to n
|
|
ser.tx("*")
|
|
ser.str(string(13,10))
|
|
|
|
waitcnt(_clkfreq + cnt)
|
|
ser.stop
|
|
cogstop(0)
|