| Electronic Components Datasheet Search |
|
ATmega328P Datasheet(PDF) 255 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
ATmega328P Datasheet(HTML) 255 Page - ATMEL Corporation |
|
255 / 345 page ![]() 255 7810A–AVR–11/09 ATmega328P [Preliminary] Where:. a. ADCH & ADCL are the ADC data registers, b. is the temperature sensor gain c. TS_OFFSET is the temperature sensor offset correction term TS_GAIN is the unsigned fixed point 8-bit temperature sensor gain factor in 1/128th units stored in the signature row. TS_OFFSET is the signed twos complement temperature sensor offset reading stored in the signature row. See Table 26-5 on page 280 for signature row parameter address The following code example allows to read Signature Row data .equ TS_GAIN = 0x0003 .equ TS_OFFSET = 0x0002 LDI R30,LOW(TS_GAIN) LDI R31,HIGH (TS_GAIN) RCALL Read_signature_row MOV R17,R16 ; Save R16 result LDI R30,LOW(TS_OFFSET) LDI R31,HIGH (TS_OFFSET) RCALL Read_signature_row ; R16 holds TS_OFFSET and R17 holds TS_GAIN Read_signature_row: IN R16,SPMCSR ; Wait for SPMEN ready SBRC R16,SPMEN ; Exit loop here when SPMCSR is free RJMP Read_signature_row LDI R16,((1<<SIGRD)|(1<<SPMEN)) ; We need to set SIGRD and SPMEN together OUT SPMCSR,R16 ; and execute the LPM within 3 cycles LPM R16,Z RET |
|
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 |