• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Microcontrollers » Stellaris® ARM® Microcontrollers » Stellaris® ARM® LM3S Microcontrollers Forum » Pin Toggling Max Frequency
Share
Stellaris® ARM® Microcontrollers
  • Forum
Options
  • Subscribe via RSS

Forums

Pin Toggling Max Frequency

This question is not answered
Shanjit Singh
Posted by Shanjit Singh
on Apr 14 2012 12:10 PM
Intellectual310 points

Hello,

I am using the LM3s811 evalution kit, i am trying to achieve the speed > 6MHz for interfacing a camera for a project. I manage to get upto ~4Mhz using the PWM generator on PWM0 pin. 

How can i get the frequency required on a GPIO pin ? Is it possible ? Can anyone please help me out ?

thanks!

--

Shanjit Singh Jajmann

lm3s811 Camera Frequency
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • cb1-
    Posted by cb1-
    on Apr 14 2012 12:23 PM
    Mastermind9430 points

    Insufficient information to dig deep - really assist.   A link to the camera spec would greatly help.

    Direct Register Writes will increase GPIO toggle frequency - suspect that you need to receive (and assemble/store) camera data in sync with 6MHz clock.  Check your MCU's SSI module - recall that it may operate beyond your 6MHz.

    Lastly - what symptoms/issues result from your reduced, 4MHz clock.  We've used "below spec" clocks and succeeded - may require buffering the data and this may/may not be suitable for your application.

    Camera ID, data would be most helpful...

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Shanjit Singh
    Posted by Shanjit Singh
    on Apr 14 2012 12:30 PM
    Intellectual310 points

    cb1-

    Insufficient information to dig deep - really assist.   A link to the camera spec would greatly help.

    The Camera i have,

     http://electronics123.net/amazon/datasheet/AA5620.pdf 

    http://electronics123.net/amazon/datasheet/OV5620_CLCC_DS%20%281.3%29.pdf

    cb1-

    Direct Register Writes will increase GPIO toggle frequency - suspect that you need to receive (and assemble/store) camera data in sync with 6MHz clock.  Check your MCU's SSI module - recall that it may operate beyond your 6MHz.

    I am intending to use the SD to store the image. Would be using the SPI bus there.

    cb1-

    Lastly - what symptoms/issues result from your reduced, 4MHz clock.  We've used "below spec" clocks and succeeded - may require buffering the data and this may/may not be suitable for your application.

    didn't quite get this.

    Many thanks for the quick reply!

    --

    Shan

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • cb1-
    Posted by cb1-
    on Apr 14 2012 12:54 PM
    Mastermind9430 points

    Shanjit Singh
    Lastly - what symptoms/issues result from your reduced, 4MHz clock.

    I'm asking if you actually tried clocking the camera IC @ 4MHz - if so - what were your results?  More than once we've seen clients do this and succeed.  (often buffering the data before presenting for display and/or analysis)

    If you did clock @ 4MHz and failed - describe in some detail what did not work - and how you made that measurement and judgement.

    Have prior commitment now - tried to assist those I could in brief time/effort today - seek to respond to your issue late tonight.  (USA - central)

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Shanjit Singh
    Posted by Shanjit Singh
    on Apr 14 2012 14:29 PM
    Intellectual310 points

    cb1-

    Shanjit Singh
    Lastly - what symptoms/issues result from your reduced, 4MHz clock.

    I'm asking if you actually tried clocking the camera IC @ 4MHz - if so - what were your results?  More than once we've seen clients do this and succeed.  (often buffering the data before presenting for display and/or analysis)

    If you did clock @ 4MHz and failed - describe in some detail what did not work - and how you made that measurement and judgement.

    Have prior commitment now - tried to assist those I could in brief time/effort today - seek to respond to your issue late tonight.  (USA - central)

    No i haven't tried that yet. I actually would be making a break out board for the camera, need to be sure of the pins first. Nevertheless i will give it a shot using individual jumper wires.

    --

    Shan

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • cb1-
    Posted by cb1-
    on Apr 15 2012 10:26 AM
    Mastermind9430 points

    That camera IC is from a leader - Now - having had time to review the camera IC spec - hazard the guess that the Nobel committee would be @ your door-step if you can harness the OV5620 @ anywhere near full data rates with only a Cortex M3!  (and a rather basic one at that)   (Said M3 not equipped with CCP "compact camera port") 

    Looking at the chip's block diagram proves instructive - obliterates most all previously thought/posited...  (diagram - please credit Omni Vision)

    Note that only an "XVCLK" is input to this device - and this only when you want the camera IC to be "slave" to your master.  (even that choice is fairly complex)

    Here's the real "deal-breaker" - as concerns basic Stellaris (and other ARM MCUs) and this/other camera chips equipped with CCP:

    TEN bits of parallel data are output by the camera IC with each clock - (2 lsb are thrown-away here.)   How do you propose to first capture - then store this data with your M3 Stellaris - and be ready in time for the succession of high speed clocks and data which make up the camera frame?  Clearly you'll need vast amounts of additional memory - along with the means to address, read/write, and strobe/control this added memory.

    We've worked with far lesser camera chips - sense that this really is the province of an MCU which includes the CCP - your goal to "reinvent the wheel" may well be a misuse of time/effort/funds...  (a good haunt of Omni-Vision site/forum (if any) probably provides deeper background than what my quick read of the 36 pg. datasheet revealed...

    Hate to be "negative" - however find it doubtful that "faster toggling GPIO" (your Subject) will harness this camera chip - especially when dedicated CCPs are in existence.  This may very well be the case when it's clearly best, "NOT to have invented here!"  (NIH)

    BTW - your post really did not center upon Fast Toggling GPIO - ask that you change post's Subject to, "performance camera chip interface" (or similar) as this seems far more appropriate...  (and considerate of follow-on readers/searches)

     

    camera ccp
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use