Presentation is loading. Please wait.

Presentation is loading. Please wait.

Team 6. Code Modules Codec Bluetooth Module Rotary Encoder Menu State Machine.

Similar presentations


Presentation on theme: "Team 6. Code Modules Codec Bluetooth Module Rotary Encoder Menu State Machine."— Presentation transcript:

1 Team 6

2 Code Modules Codec Bluetooth Module Rotary Encoder Menu State Machine

3 Codec Interface Uses the DCI module for communication Interrupt based Uses 4 interrupts per 16 frame packet Each interrupt simultaneously transmits and stores 4 frames

4 Bluetooth Module Uses Asynchronous serial at 9600 bps for communication Microcontroller uses internal Uart module Is interrupt based Uses a 100 character circular buffer for transmit and a 30 char static buffer for receive

5 Rotary Encoder Is polling based Polled during each iteration of the main loop Controlled with a small state machine to determine the number of change in increments, direction, and pushbutton.

6 Menu State Machine Main loop is running a state machine that controls the current state and function of the unit The state machine takes input from the rotary encoder and displays the current operating mode and relevant information on the lcd screen. Each state has a function call and arguments associated with it.

7 Codec Audio Input DCI AC’97 DFFT String Frequency Detect Motor Controller PWM Module PWM Signal 6 PORTD RPM Decoder Menu Control State Machine LCD Controller PORTA RPG Input LCD Output Uart Bluetooth Adapter Input Parser Tx Buffer Hierarchical Block Diagram

8 Start Init PLL Init Uart Init LCD Init RPG Init DCI Init PWM Setup State Machine Change State? Get RPG Input Run State Function No Change to new state Update state Variable Yes Main State Machine

9 Start String Tune Start up DCI Module Detect Strum If strum Detected No Yes Acquire Sound Data Data Full? Run DFFT String Freq Detection Calculate Required String Movements Move Strings If Desired accuracy reached No Tuning Finished Tuning Algorithm Yes

10 Questions?


Download ppt "Team 6. Code Modules Codec Bluetooth Module Rotary Encoder Menu State Machine."

Similar presentations


Ads by Google