element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Ultimate RoadTest
  • Challenges & Projects
  • Design Challenges
  • Ultimate RoadTest
  • More
  • Cancel
Ultimate RoadTest
Blog Project "code name" PostScript 011
  • Blog
  • Forum
  • Documents
  • Files
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: COMPACT
  • Date Created: 16 Jul 2012 12:28 PM Date Created
  • Views 963 views
  • Likes 2 likes
  • Comments 3 comments
  • ultimate_roadtest
Related
Recommended

Project "code name" PostScript 011

COMPACT
COMPACT
16 Jul 2012

16th July

A Great Progress Day

I have been continuing SIT testing and today I have my project producing sound whilst responding to Wi-Fi datagrams.

Although this does not sound like much to most you will need to consider what is happening.

 

The Basic WiFi Demonstration uses a SPI port with interrupts to service the CC3000.

As not to interfere with this activity, I have connected the 256K FRAM buffer, DAC and LCD to the other SPI port.

 

The Basic Wi-Fi Demonstration also uses a Timer A for handling its events.

As not to interfere with this activity, I have used Timer B0 to generate a 8KHz Interrupt for sound and mouth articulation processing.

 

Sound is produced using a sample rate of 8kHz.

When the Interrupt Service Routine (ISR) for Timer B0 is invoked,

     It firstly checks to see if sound is to be produced by checking the sound enable flag

     If this flag is set then the following occurs

          The FRAM Buffer is taken out of its hold state

          The FRAM Buffer is accessed to obtain the next DAC value

          The FRAM Buffer is accessed to obtain the next mouth value

          The DAC is loaded with the new value

          The mouth is loaded with its new value

          The FRAM Buffer is put back into its hold state

     The Timer is reloaded.

 

Using the hold state enables the use of quicker FRAM buffer accesses by utilising its auto increment address feature.

 

For SIT testing, this ISR is even more complicated because I have given it the ability to produce a continuous sound by relooping through the FRAM buffer.

I may leave this feature in because I am finding it useful. I am currently generating sine waves of a nominated frequency.

This feature would be useful for creating Alarm sounds.

  • Sign in to reply
Parents
  • COMPACT
    COMPACT over 13 years ago

    Hi DAB,

    The buffer issues are only related to the CC3000 Buffer allocated and within the MSP430 used in the Basic Wi-Fi Demo and not the additional FRAM Buffer.

    What I have worked out thus far is the buffer needs to larger than the original value 5 and no greater than 256.

    I've been getting everything else working and have not had the opportunity to look further into the reasons why.

     

    I just looked up TI e2e forum and it mentions that the minimum buffer size for the current driver is 119 bytes.

     

    With a bit of effort I think I will be able to find the cause and expand the buffer as necessary up to Wi-FI's MTU of 7981 bytes.

    (I didn't realise Wi-Fi datagrams could be so big!)

     

     

    Cheers

    Very Compact

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 13 years ago in reply to COMPACT

    I think that size is a carry over from the old ethernet specifications.  To make it easier to get qualified, the wifi group just set up the specs to be compatible so they could claim plug and play capability.  I am surprised the TI guys didn't take that into account, but it sounds like the limitation might be a side effect of their simply wifi software.  You might take a look there to see if it is hard coded or just limited for the more simple protocol.

     

    From my perspective, the simple protocol is a greater benefit for embedded devices.  If you really need that higher message size, you need to step up to a more capable connection technology.

     

    Have fun,

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • DAB
    DAB over 13 years ago in reply to COMPACT

    I think that size is a carry over from the old ethernet specifications.  To make it easier to get qualified, the wifi group just set up the specs to be compatible so they could claim plug and play capability.  I am surprised the TI guys didn't take that into account, but it sounds like the limitation might be a side effect of their simply wifi software.  You might take a look there to see if it is hard coded or just limited for the more simple protocol.

     

    From my perspective, the simple protocol is a greater benefit for embedded devices.  If you really need that higher message size, you need to step up to a more capable connection technology.

     

    Have fun,

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube