In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Staryi wrote: I find the strange work of the SX48 and SX52 MCU's. This is a simple program for demonstration this bug: [code] DEVICE PINS52,OSCHS2 IRC_CAL IRC_SLOW FREQ 5000000 ; May be any offset = 0x004 ; May be other (0x004..0x700..) RESET start org 0x0a R0 ds 1 ; R1 ds 1 ; watch R0,8,udec org 0 jmp @serv start page main jmp main org offset+2 serv reti main Mov RTCC,#19 Mov !option,#10001000b ; RTCC start jmp @Work org offset+0x800 Work nop clr R0 Mov R1,#200 :loop nop nop inc R0 djnz R1,:loop nop break jmp $-1 end [color=#000099>The]But it is 201! Why? When I move "Work" in other program memory address (nor offset + 0x800), all work fine. When disabled RTCC interrupt, this works fine too.[/color] [/code] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=146451 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)