Reading literature about Counters and studying the usage
msiriwardena
Posts: 301
During my readings I came across this: ctra := constant(%0_11111_000 <<23) 'Logic always
The the counter Modes(CTRMODE Field Values) table list : %11111 - as logic always
ctra := %00100 <<26 --> sets CTRMODE to NCO mode(%00100) ---> this from the Propeller Manual.
What I don't understand lefshift (<<26 and <<23) in both statements.
What the shifting do/achieve
I think I understand ctra := %00100 <<26 - to set the countermode bits 30..26 is that correct?
Thanks
Siri
The the counter Modes(CTRMODE Field Values) table list : %11111 - as logic always
ctra := %00100 <<26 --> sets CTRMODE to NCO mode(%00100) ---> this from the Propeller Manual.
What I don't understand lefshift (<<26 and <<23) in both statements.
What the shifting do/achieve
I think I understand ctra := %00100 <<26 - to set the countermode bits 30..26 is that correct?
Thanks
Siri
Comments
Mike