80 likes | 243 Views
Digital Sound Projection ECE 477 Group 6 Software Narrative. Steve Anderson Mike Goldfarb Shao -Fu Shih Josh Smith. Software Design Considerations. ADSP-21262 SPORTS – Serial Audio Interface I2S Clock Generation Use Precision Clock Generator (PCG) peripheral
E N D
Digital Sound ProjectionECE 477 Group 6 Software Narrative Steve Anderson Mike Goldfarb Shao-Fu Shih Josh Smith
Software Design Considerations • ADSP-21262 • SPORTS – Serial Audio Interface • I2S Clock Generation • Use Precision Clock Generator (PCG) peripheral • Set clock source, period, phase for normal I2S mode • Clock source may be nRF24Z1 or oscillator • Interrupt driven, send and receive sample blocks while processing • Signal Routing Unit • Map internal peripheral signals to external pins ECE477 Group 6
Software Design Considerations • ADSP-21262 • Serial Peripheral Interface • Simple polling based device drivers • Need to be careful about blocking the main loop • Manual slave select needed to work with some devices • Memory • On-chip peripherals and CPU registers mapped to lowest addresses • Organized into segments • Most data memory is located in seg_dmda • Need to use the program memory data segment seg_pmda for extra space. • Access depends on word size • Supports 16, 32 and 64 bits
Software Design Considerations • ATmega168 • SHARC <-> ATmega168 Communication • Read and write to addresses representing UI settings • SPI slave driver is interrupt driven • Simple state machine • Synchronize/reset using slave select • Pushbuttons, Switches and Rotary Encoder • De-bounce using timer • Handle events depending on current UI screen • LCD • Driven by UART ECE477 Group 6
Software Design Hierarchy Status: All complete, except ADSP-21262 nRF24Z1 driver ECE477 Group 6
Software Design Hierarchy Status: Still working on UI menu routines ECE477 Group 6
Software Design Hierarchy Status: All complete ECE477 Group 6