Written by AT91SAM webmaster
Hits (558) || Votes (1) || Comments (0)
Created Wednesday, 18 August 2010
Last updated Wednesday, 18 August 2010
| Title | SAM3S ADC12 Temperature Sensor Example | |
| Description | The adc12_temp_sensor example demonstrates how to use the temperature sensor feature inside the microcontroller. Requirements This package can be used with at91sam3s-ek. To enable full scale measurement ,Close jumper jp18 on 1 and 2,the outer pins of it. Description The adc12_temp_sensor is aimed to demonstrate the temperature sensor feature inside the device. To use this feature, the temperature sensor should be turned on by setting TSON bit in ADC_ACR. The channel 15 is connected to the sensor by default. With PDC support, the Interrupt Handler of ADC is designed to handle RXBUFF interrupt. The temperature sensor provides an output voltage (VT) that is proportional to absolute temperature (PTAT). The relationship between measured voltage and actual temperature could be found in Electrical Characteristics part of the datasheet. Usage 1.Build the program and download it inside the evaluation board. Please refer to the SAM-BA User Guide, the GNU-Based Software Development application note or to the IAR EWARM User Guide, depending on your chosen solution. 2.On the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings: - 115200 bauds - 8 bits of data - No parity - 1 stop bit - No flow control 3.In the terminal window, the following text should appear (values depend on the board and chip used): -- ADC12 Temperature Sensor xxx -- -- AT91xxxxxx-xx -- Compiled: xxx xx xxxx xx:xx:xx -- 4.The application will output converted value to hyperterminal per second. | |
| Type of project | Software | |
| Development tools | IAR EWARM | |
| Product series | ||
| AT91SAM kits | ||
| More details |
| |
| File | 1282137827_ADC_Temperature_sensor.zip (Size: 934 Kb | Hits: 22) |
Comments
There are no comments for this item
Be the first to leave a comment
Login to leave a comment



