SX/B mode question
Sawmiller
Posts: 276
another question for the SX/B experts...
im programming a sx48
it uses 5 bits for mode if i'm reading things right , versus 4 for the sx28
so i am getting a warning in my sxkey compiler when i try to clear the timer1 using the sx/b comand
CLEART1
the warning says
MODE register value truncated to 4 bits
i dont get this when i switch modes a lil farther in my code using asm...
whats up with the warning, i belive its just due to programming a sx48 and the complier reconizing such
thanks for any input, you dont want to see my code... its terrible
dan
im programming a sx48
it uses 5 bits for mode if i'm reading things right , versus 4 for the sx28
so i am getting a warning in my sxkey compiler when i try to clear the timer1 using the sx/b comand
CLEART1
the warning says
MODE register value truncated to 4 bits
i dont get this when i switch modes a lil farther in my code using asm...
whats up with the warning, i belive its just due to programming a sx48 and the complier reconizing such
thanks for any input, you dont want to see my code... its terrible
dan
Comments
That appears to be a bug in the compiler. You're right that should be:
MOV W,#$10
MOV M,W
I will alert Parallax to the problem.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
"SX-Video OSD module" Now available from Parallax for only·$49.95
http://www.parallax.com/detail.asp?product_id=30015
Product web site: www.sxvm.com
"Ability may get you to the top, but it takes character to keep you there."
·
I'm wondering about the alias's too
if you go timeL = T1CPL· when you go to the list it shows you MODE $00 , where in assembly
its always mov w, #$00
·············· mov m,w
·············· mov !rb,w
etc
stilll puzzling..
Does MODE reset bit 5 of M or does it leave it alone ?
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
"SX-Video OSD module" Now available from Parallax for only·$49.95
http://www.parallax.com/detail.asp?product_id=30015
Product web site: www.sxvm.com
"Ability may get you to the top, but it takes character to keep you there."
·
It leaves it alone.
See my post of Dec 13, this forum titled "SX asm snippet" at 10:05
Cheers,
Peter (pjv)
Post Edited (pjv) : 1/16/2006 4:42:31 AM GMT
Do you know if that is in the manual ? I didn't see it.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
"SX-Video OSD module" Now available from Parallax for only·$49.95
http://www.parallax.com/detail.asp?product_id=30015
Product web site: www.sxvm.com
"Ability may get you to the top, but it takes character to keep you there."
·
I have very little in the way of "manuals", but I don't recall reading that anywhere, or reading it in the Ubicom docs on the SX 48/52.
It's just one of those things you find out along the way......the hard way.
By the way what is an easy way of pointing to a previous post or thread?
Cheers,
Peter (pjv)
isn't a problem until you have to access the upper registers (M.5 =1)...
It·was a rather long and frustrating time with the mode register when I first ran into the trouble...
Glad you guys are finding the bugs in SX-B...·· ...when I finally get around to ti, it should be
bug free!
-Dan
·
I think SX/B is very reliable on the SX28 the SX48 is a relative new addition. As the C compiler coders have found, the SX is kind of a odd architecture (RAM Banks, code pages, call to 1st half of pages). SX/B was designed from the ground up specifically for the SX processor. I would encourage members to post anything that does not seem to work as-it-should. It could be an unfound bug, if you just "code around" the problem the bug may never get fixed.
I think most would agree that Parallax has been good (much better than most) about updates and bug fixes.
And Dan, what are you waiting for... I know SX assembly very well and if you look at the code to my video module you will see that alot of it is in SX/B. Life it too short to code everything in assembly. Check it out (SX/B that is) and I think you'll be glad you did.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
"SX-Video OSD module" Now available from Parallax for only·$49.95
http://www.parallax.com/detail.asp?product_id=30015
Product web site: www.sxvm.com
"Ability may get you to the top, but it takes character to keep you there."
·
In addition to being very proactive, kudos also should be passed out to the openness and honesty when bugs are found. In stead of saying something to the effect "we'll pass the information on to QA for evaluation" there is a very timely and frank acknowledgement, and open discussion.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
John R.
8 + 8 = 10
Oh, don't worry, I will have a use for it someday.·I will take the proper time to learn it then! [noparse]:)[/noparse]
-Dan
·