Forum Index
HomeZBasic Home   Forum RulesForum Rules   Forum FAQForum FAQ   MemberlistMemberlist   UsergroupsUsergroups   RSS FeedRSS Feed
Site SearchSite Search   LinksLinks   DownloadDownload   Digests and SubscriptionsDigests and Subscriptions
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in   RegisterRegister
ShiftinEx clock phase

 
Post new topic   Reply to topic    Forum Index -> ZBasic Language
Author Message
pjc30943



Joined: 02 Dec 2005
Posts: 220

Posted: 13 December 2005, 4:12 AM    Post subject: ShiftinEx clock phase Reply with quote

During which part of the clock cycle does ShiftInEx look at data?

I'd guess it to be the same as with ShiftOutEx (i.e. sample data on the trailing clock edge), but have been burned by even more simple assumptions...
Back to top
dkinzer
Site Admin


Joined: 03 Sep 2005
Posts: 2499
Location: Portland, OR

Posted: 13 December 2005, 5:35 AM    Post subject: Reply with quote

Quote:
During which part of the clock cycle does ShiftInEx look at data?


It is selectable whether it is sampled before or after the leading edge of the clock. In both cases, the clock output is assumed to be initially in the desired "idle state". If bit 1 of the 'flags' parameter is zero, the clock line changes state and then the input is sampled. Otherwise, the input is sampled and then the clock line changes state. Then, for both cases, the clock line is changed back to the idle state.

Other 'flags' bits control whether the clocking is done as fast as possible or if it is "throttled" and whether the shifting is LSB first or MSB first.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> ZBasic Language Time synchro. with the server - Timezone/DST with your computer
Page 1 of 1

 


All content Copyright © 2005-2012 Elba Corp. All Rights Reserved.
Opinions expressed in posts are those of the author and not necessarily those of Elba Corp.
Powered by phpBB © 2001, 2005 phpBB Group