Data Sheet
[Deleted User]
Posts: 0
HI,
·does anybody know if there is a data sheet for the propeller,not the one that shows the hub & cogs , but one that breaks down each cog (really just one,because there all the same)? I see bean asked the same question about the video generator does this fall in with that?
Thank's Brian
Post Edited (truckwiz) : 10/28/2006 7:42:33 PM GMT
·does anybody know if there is a data sheet for the propeller,not the one that shows the hub & cogs , but one that breaks down each cog (really just one,because there all the same)? I see bean asked the same question about the video generator does this fall in with that?
Thank's Brian
Post Edited (truckwiz) : 10/28/2006 7:42:33 PM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
The first time I opened the book up on the 8085 , I shuttered when looked at the block diagram , then when I the book on sx (& pic ) I shuttered again ,the first time looked at the propeller block I said "well this is just a quick refrence picture " ,but let me get this straight ,say you use the MOV instruction -· am· I right in saying that you can move from any one address to any other address & theres no working register in tha middle of this?
Post Edited (truckwiz) : 10/28/2006 11:05:39 PM GMT
Thank's Brian
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chip Gracey
Parallax, Inc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chip Gracey
Parallax, Inc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chip Gracey
Parallax, Inc.
One more & i'll leave you alone , where do the flags get set at ?
Thank's Brian
······················· test··· stat,#1········ wc····· 'if reset flag, transmit reset command
······· if_c··········· mov···· data,#$FF
······· if_c··········· call··· #transmit
·
You can see that the 'test' instruction writes the carry because of the "wc". The other two instructions execute only if the carry is set. You can do things a lot more complex than this and really create tight functionality. You'd be surprised at how seldom any flags need to get affected. It's nice to be able to write code that isn't always dealing with·unavoidable flag updates. The conditionals that can precede instructions (like these "if_c" examples) account for every logical combination of C and Z.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chip Gracey
Parallax, Inc.
Thank's Brian
Post Edited (truckwiz) : 10/29/2006 1:13:17 AM GMT
PUB Toggle
dira[noparse][[/noparse]16]~~
repeat
!outa[noparse][[/noparse]16]
waitcnt(3_000_000 + cnt)
if you look at the memory block of this code in hex this is what I see ,this is not all of it ,just the first code
20 00 02 00 = -INSTR - ZRCI _CON__ DEST_____ SRC
______________100000 0000 0000 000000001 000000000
Instrution is ADD dest to src , this is where my brain starts to melt , do I have a value of 1 in dest or is this the memory location that the real info is in , at address 001 hex
the next code is
08 00 00 00········001000 0000 0000 000000000 000000000
this in machine code is·ROR· ,am I doing this right , how can rotate right 0 or did my 000000001 sneak in here & now I have 111111111 ?
thanks ,brian
Post Edited (truckwiz) : 10/31/2006 3:01:53 AM GMT
[noparse][[/noparse]code]
PUB dummy
· COGNEW(@toggle,0)
DAT
toggle······· mov·· DIRA,Mask16
················mov·· OUTA,#0
:loop········ xor···· OUTA,Mask16
··············· mov··· temp,TimeCnt
··············· add····temp,CNT
················waitcnt temp,#0
··············· jmp··· #:loop
Mask16····· long···|<16
TimeCnt···· long·· 3_000_000
temp········ long·· 0
[noparse][[/noparse]/code]
·