stm32 adc multi channel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-08 3:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-13 3:41 AM
hello ..this programe is working.now i wana get this data simultaneously on serial monitor..which command should i follow?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-13 4:40 AM
Just add some code to initialise the UART and associated pins, and the send functionality.
You will find plenty of examples around in the web, google is your friend (well, except if you insist on privacy ...). Coocox should maintain a collection of examples, and the StdPeripheralLibrary, as part of the F4 discovery firmware, is available from the ST website. The latter contains examples for all peripherals, including UART:- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-13 5:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-13 5:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-13 5:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-13 5:30 AM
hello .now i am interfacing pressure sensor (mpx415a) on stm32 discovery board .do u have any sample code in which we can see pressure sensor's data ,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-13 5:52 AM
[cc] C:\CooCox\CoIDE\workspace\usart/main.c:59: undefined reference to `uart_puts'
You call a function that nowhere exists in the project space. Either your toolchain/library supports routing printf()-like functions to UART, or you write it yourself. This forum contains several threads on how to do this with Keil. Not sure what your (undisclosed / gcc-based) toolchain provides. Writing it yourself can offer significant code space savings.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-13 6:03 AM
If you mean a MPX4105A/4115A, this devices have an analog output, and require a +5V supply.
You will need a buffer amplifier to interface the sensor output with the ADC, to reduce the impedance and to convert the 0..5V sensor output span to 0..3.3V of the ADC.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-13 6:19 AM
void uart_puts(char *s)
{
while(*s)
{
while(USART_GetFlagStatus(USART2, USART_FLAG_TXE) == RESET);
USART_SendData(USART2, *s++);
}
}
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-13 6:20 AM
Minor correction - the F4 Discovery ADC range is 0 to 3V.
This is a simple exercize for the student. Cheers, Hal