PDA

View Full Version : Port Init (one stupid cuestion)



Sapieha
09-09-2007, 09:26 PM
·
· dira[CS]~~
· dira[SClock]~~
· dira[SData]~~
· dira[Reset]~~
·
It is posible Init it·on same line?
Like it?
· dira[CS]~~ , [SClock]~~ , [SData]~~ , [Reset]~~
·
Same
·
· outa[CS]~~ , [SClock]~~ , [SData]~~ , [Reset]~~
·

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sapieha

Skogsgurra
09-10-2007, 02:06 AM
That would be an easy matter to test. Wouldn't it?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

deSilva
09-10-2007, 04:30 AM
The denotation


special_register[ bit_number]


is convenient, but rather special (and most likely not cheap in terms of time... not to speak of SR[ N..M])

I generally write:


DIRA|= constant(|<CS + |<SClock + |<SData + |<Reset)

Post Edited (deSilva) : 9/9/2007 10:17:25 PM GMT

Sapieha
09-10-2007, 07:01 AM
deSilva

Thanks for reply

It is fine for clarity in code

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sapieha