| Electronic Components Datasheet Search |
|
UM0290 Datasheet(PDF) 65 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0290 Datasheet(HTML) 65 Page - STMicroelectronics |
|
65 / 76 page ![]() UM0290 USB voice demos 65/76 In each timer interrupt, the ADC conversion value is stored in a buffer with a size of 22 bytes. This buffer is copied to the PMA (endpoint 1) and sent to the host after receiving the IN token. a) Hardware configuration interface: The hardware configuration interface is used in the USB microphone demo for: – System and USB IP clock configuration. – Timer1 configuration. – ADC configuration & command. b) Endpoint configurations: In the STR USB microphone demo two endpoints are used to communicate with the PC host: endpoint 0 (control endpoint) and endpoint 1 (isochronous double buffer endpoint). The following C code describes how to configure an isochronous IN endpoint (see the file usb_prop.c function Micro_Reset()). SetEPType(ENDP1, EP_ISOCHRONOUS); SetEPDblBuffAddr(ENDP1,ENDP1_BUF0Addr,ENDP1_BUF1Addr); SetEPDblBuffCount(ENDP1, EP_DBUF_IN,22); ClearDTOG_RX(ENDP1); ToggleDTOG_RX(ENDP1); ClearDTOG_TX(ENDP1); SetEPTxStatus(ENDP1, EP_TX_VALID); SetEPRxStatus(ENDP1, EP_RX_DIS); c) Isochronous data transfer management: As with the speaker demo, the data transfer in the microphone example is based on the double buffer mode. There are two PMA buffers used for the endpoint 1 and the copy of the needed data is switched between these two buffers according to the IP and SW buffer usage. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |