Loading...
Welcome,
Guest
. Please
login
or
register
.
May 19, 2013, 03:00:43 am
|
Arduino Forum
::
Using Arduino
::
Programming Questions
:: SPI Mode
« previous topic
next topic »
Pages: [
1
]
Go Down
Print
Author
Topic: SPI Mode (Read 126 times)
0 Members and 1 Guest are viewing this topic.
Krupski
Offline
Sr. Member
Karma: 15
Posts: 463
SPI Mode
«
on:
February 06, 2013, 01:24:58 pm »
Bigger
Smaller
Reset
Hi all,
I have been looking at this diagram for several days and for some reason I feel like I'm missing something.
What confuses me is that it says "Data is outputted [sic} on the falling edge of SCK" but it looks like data is output on the RISING edge!
Based on this diagram, I think this is SPI Mode 3. Am I right?
(by the way, CS1 and CS2 are just chip select pins for each "chip". The device has two "chips" (display drivers) sharing a common SPI bus).
Thanks.....
-- Roger
«
Last Edit: February 06, 2013, 01:29:29 pm by Krupski
»
Logged
Riva
Norfolk UK
Offline
Edison Member
Karma: 23
Posts: 1316
Re: SPI Mode
«
Reply #1 on:
February 06, 2013, 01:40:02 pm »
Bigger
Smaller
Reset
I also think it's SPI mode 3
Logged
Krupski
Offline
Sr. Member
Karma: 15
Posts: 463
Re: SPI Mode
«
Reply #2 on:
February 06, 2013, 02:49:22 pm »
Bigger
Smaller
Reset
Edit: Nevermind. I found my problem. I forgot to use a tilde for bit clearing!
I did this:
Set bit: PORT != _BV(PIN); // right
Clr bit: PORT &= _BV(PIN); // wrong!
should have been
Clr bit: PORT &=
~
_BV(PIN); // wrong!
Oh well......
«
Last Edit: February 06, 2013, 06:15:09 pm by Krupski
»
Logged
Pages: [
1
]
Go Up
Print
« previous topic
next topic »
|
Arduino Forum
::
Using Arduino
::
Programming Questions
:: SPI Mode
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> General Discussion
-----------------------------
Using Arduino
-----------------------------
=> Installation & Troubleshooting
=> Project Guidance
=> Programming Questions
=> General Electronics
=> LEDs and Multiplexing
=> Displays
=> Audio
=> Motors, Mechanics, and Power
=> Sensors
=> Networking, Protocols, and Devices
=> Interfacing w/ Software on the Computer
-----------------------------
Topics
-----------------------------
=> E-Textiles and Craft
=> Robotics
=> Science and Measurement
=> Home Automation and Networked Objects
=> Device Hacking
=> Education and Teaching
=> Interactive Art
=> Product Design
-----------------------------
Development
-----------------------------
=> Suggestions for the Arduino Project
=> Other Hardware Development
=> Other Software Development
-----------------------------
Community
-----------------------------
=> Website and Forum
=> Products and Services
=> Gigs and Collaborations
=> Workshops and Events
=> Local Groups
=> Exhibition / Gallery
=> Bar Sport
-----------------------------
International
-----------------------------
=> Deutsch
=> Español
=> Français
=> Italiano
=> Portugues
=> Scandinavia
-----------------------------
Forum 2005-2010 (read only)
-----------------------------
===> Uno Punto Zero
===> Bar Sport
===> Frequently-Asked Questions
===> News
===> Exhibition
===> Workshops
===> Interfacing
===> Bugs & Suggestions
===> Development
===> Troubleshooting
===> Portugues
===> Deutsch
===> Español
===> Français
===> Italiano
===> Scandinavia
===> Development
===> Interfacing
===> Syntax & Programs
===> Bugs & Suggestions
===> Troubleshooting
===> Report Spam at Arduino.cc
===> Forum
===> Playground Wiki
=> General
=> Hardware
=> Software
=> International
=> Web/Forum/Email/Spam
-----------------------------
Using Arduino
-----------------------------
=> Storage
=> Microcontrollers
-----------------------------
International
-----------------------------
===> Humor y Debate
===> Talleres, Encuentros, ...
===> Tutoriels et cours
===> Réalisations et Projets Finis
===> Le bar
=> Nederlands
===> Software
===> Hardware
===> Proyectos
===> Documentación
=> India
===> Hardware
===> Software
===> Megatopic
-----------------------------
Products
-----------------------------
=> The Arduino Starter Kit
=> Arduino Due
-----------------------------
International
-----------------------------
===> Generale
-----------------------------
Products
-----------------------------
=> Arduino Esplora
=> Arduino GSM Shield
-----------------------------
Maker Faire Rome - The European Edition
-----------------------------
=> Makers
=> Events and Tour
Loading...