Hello, angryone. Try dropping the "1" after "hserin":
Code:
hserin main, 8000,[indata]
In their attempt to unify the code between all the Atom parts, and having the BAP40 contain two USARTs, the coder(s) at BMicro are going to hserial1 and hserial2. Apparently they haven't "melded" all this entirely. I had to use the "1" with "sethserial", but not elsewhere.
My code compiled to completion under Studio 2004 on one PC (XP Pro), and looks like:
Code:
indata var word
enablehserial
sethserial1 h9600 ; this is all you need for a Nano chip, Pro needs more
hserin1 nomore, 10000, [indata]
nomore
;place timeout code here
Mind you, I haven't actually run this in a real circuit.
However, I can't do a compile to completion on the PC with XP Home and Studio 2000. It goes to compile, the Task Manager shows 100% CPU use, and then things just stay at that state. I exit Studio, but the MBasic.exe stays open under "Processes". I have to kill that to get my CPU usage to go back to its usual 0 to 10% levels. Other programs compile OK.
Try again and let us know how it goes.