This example describes how to use the ADC and DMA to transfer continuously
converted data from ADC to a data buffer.
The ADC is configured to converts continuously ADC channel14.
Each time an end of conversion occurs the DMA transfers, in circular mode, the
converted data from ADC1 DR register to the ADC_ConvertedValue variable.
The ADC1 clock is set to 14 MHz.
This example provides a description of how to use a DMA channel to transfer a
word data buffer from memory (Flash) to memory (RAM).
The dedicated DMA channel is configured to transfer once a time a 32 word data buffer
stored as constant in the Flash memory to another buffer in the RAM memory.
The received data are stored in the DST_Buffer.
The DMA channel transfer complete interrupt is enabled to generate an interrupt at
the end of the buffer transfer. As soon as the transfer is completed an interrupt is
generated and in the DMA channel interrupt routine the transfer complete interrupt
pending bit is cleared.
The data counter is stored before and after the transfer to show that all data has been
transfered.
TransferStatus gives the data transfer status where it is PASSED if transmitted and
received data are the same otherwise it is FAILED
M-file uses random data which BPSK modulates a carrier to configure a BPSK UWB transmitter. The receiver demodulates the BPSK UWB carrier and the data is recovered
NRF905驅(qū)動(dòng)代碼
// The content of this struct is nRF905 s initialize data.
// CH_NO=1 433MHZ Normal Opration,No Retrans RX,TX Address is 4 Bytes
// RX TX Payload Width is 32 Bytes Disable Extern Clock Fosc=16MHZ
// 8 Bits CRC And enable
This a simple algorithm that downloads all most updated data from the stocks in the SP500 index, for as many day you want and for different frequencies (daily, weekly and monthly).
富士通單片機(jī)MB902420系列
CAN Project:
CAN0 will work as a simple Repeater.
Received data will appear at Port P47..P40 (UserLEDs of FlashCan100P)
and will send out again as byte-packages to ID#2
Receive-Buffer #1 : basic can
Transmit-Buffer #6 : full-can ID #2
KMEANS Trains a k means cluster model.CENTRES = KMEANS(CENTRES, DATA, OPTIONS) uses the batch K-means
algorithm to set the centres of a cluster model. The matrix DATA
represents the data which is being clustered, with each row
corresponding to a vector. The sum of squares error function is used.
The point at which a local minimum is achieved is returned as
CENTRES.