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
  • DAB
    DAB over 13 years ago

    If you get some time, I think you can decouple these events to get a better control and a smoother transition between the various tasks.

     

    The MSP430 provides a great set of independently operable timers and event triggered ISR options.  By using the full device capabilities, you can decouple the events into a cleaner structure, which might also alleviate some of your buffer issues.

     

    Just a thought,

    DAB

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

    If you get some time, I think you can decouple these events to get a better control and a smoother transition between the various tasks.

     

    The MSP430 provides a great set of independently operable timers and event triggered ISR options.  By using the full device capabilities, you can decouple the events into a cleaner structure, which might also alleviate some of your buffer issues.

     

    Just a thought,

    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