Natvie Mode Start

Discussion of issues related specifically to writing code for native mode devices. This includes ZBasic code as well as assembly language code and C code, both inline and standalone.
Post Reply
pdubinsky
Posts: 70
Joined: 24 November 2005, 18:19 PM
Location: South Carolina
Contact:

Natvie Mode Start

Post by pdubinsky »

I have no experience using the ZX24N so here goes:

I've written a simple "hello world" program which compiles, loads and runs fine. However, when I power off and then power on the 24N, the program will not run until I press the reset key on the breakout board. I know this must be something obvious but it's got me stumped.

Code: Select all


Public Sub Main()
dim m as integer

	m = 1
	while m > 0
		debug.print "hello world!"
	wend

end sub
Tia,
Paul
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Re: Natvie Mode Start

Post by dkinzer »

pdubinsky wrote:[W]hen I power off and then power on the 24N, the program will not run until I press the reset key on the breakout board.
I've never seen similar behavior. Does the same issue occur with a ZX-24a or ZX-24p?

I suppose that it could be an issue with slowly rising power. Is the ZX-24n being powered with 5 volts directly or using the on-board regulator? Whichever it is, you might try the other method of powering it.

Also, you might try adding a capacitor to the reset line, perhaps 47uF or 100uF. This capacitor will be charged via the on-board 10K pullup resistor, keeping the device in reset a while longer after power up.
- Don Kinzer
pdubinsky
Posts: 70
Joined: 24 November 2005, 18:19 PM
Location: South Carolina
Contact:

Post by pdubinsky »

I tried the same code on 2 other 24N's and they execute properly. I'll try your suggestions on this one and get back to you.

Happy Holidays,
P
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Post by dkinzer »

pdubinsky wrote:I tried the same code on 2 other 24N's and they execute properly.
If the one behaves differently under identical circumstances it is likely that there is something wrong with it. If that is the case we'll replace it, of course.
- Don Kinzer
Post Reply