This application note provides a functional description of VHDL source code for a N x N DigitalCrosspoint Switch. The code is designed with eight inputs and eight Outputs in order to targetthe 128-macrocell CoolRunner™-II CPLD device but can be easily expanded to target higherdensity devices. To obtain the VHDL source code described in this document, go to sectionVHDL Code, page 5 for instructions.
用LPC213X系列的PWM來產生語音。語音數據來源于PC機轉換后得到的。最大可以是16位的。
由于是PWM所以輸出端口需要低通濾波才能夠得到比較干凈的聲音。
可以經過修改使用LPC2132以上的ARM的D/A來產生。
This project Outputs audio on PWM0 using wave samples that are stored in the on-chip Flash ROM.
This example program shows how to configure and use the A/D Converter of the following microcontroller:
STMicroelectronics ST10F166
After configuring the A/D, the program reads the A/D result and Outputs the converted value using the serial port.
To run this program...
Build the project (Project Menu, Build Target)
Start the debugger (Debug Menu, Start/Stop Debug Session)
View the Serial Window (View Menu, Serial Window #1)
View the A/D converter peripheral (Peripheral Menu, A/D Converter)
Run the program (Debug Menu, Go)
A debug script (debug.ini) creates buttons that set different analog values in A/D channels. As the program runs, you will see the A/D input and output change.
Other buttons create signals that generate sine wave or sawtooth patterns as analog inputs. µ Vision3 users may enable the built-in Logic Analyzer to view, measure and compare these input signals graphically.
EXAMPLE SOURCE CODE FOR IMPLIB FILTER
This filter accepts input through the standard input stream, convertsit and Outputs it to the standard output am. The streams are linkedthrough pipes, such that the input stream is the output from the import librarian being invoked, and the output stream is connected to the message window of the IDE, ie.
EXAMPLE SOURCE CODE FOR TASM FILTER
his filter accepts input through the standard input stream, converts it and Outputs it to the standard output stream. The streams are linked
through pipes, such that the input stream is the output from the assembler
being invoked, and the output stream is connected to the message window of the IDE, ie.
Generate a great circle "trajectory" from [lat1,lon1] to [lat2, lon2].
% Resulting points will be seperated by approximately delta_ft feet.
% By default, delta_ft = 100 feet. All lat/lon inputs & Outputs are in
% degrees.
// This program demonstrates how to configure the C8051F060 to write to and read
// from the UART interface. The program reads a word using the UART0 interrupts
// and Outputs that word to the screen, with all characters in uppercase
vhdl編寫,8b—10b 編解碼器設計
Encoder:
8b/10b Encoder (file: 8b10b_enc.vhd)
Synchronous clocked inputs (latched on each clock rising edge)
8-bit parallel unencoded data input
KI input selects data or control encoding
Asynchronous active high reset initializes all logic
Encoded data output
10-bit parallel encoded output valid 1 clock later
Decoder:
8b/10b Decoder (file: 8b10b_dec.vhd)
Synchronous clocked inputs (latched on each clock rising edge)
10-bit parallel encoded data input
Asynchronous active high reset initializes all logic
Decoded data, disparity and KO Outputs
8-bit parallel unencoded output valid 1 clock later