| Motore di ricerca datesheet componenti elettronici |
|
ATtiny261-ESSZ Scheda tecnica(PDF) 156 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
ATtiny261-ESSZ Scheda tecnica(HTML) 156 Page - ATMEL Corporation |
|
156 / 227 page ![]() 156 7753C–AVR–07/09 ATtiny261/ATtiny461/ATtiny861 19.9.1 Manufacturing Calibration Calibration values determined during test are available in the signature row. The temperature in degrees Celsius can be calculated using the formula: 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 sig- nature row. The table below summarizes the parameter signature row address vs product. The following code example allows to read Signature Row data .equ TS_GAIN = 0x0007 .equ TS_OFFSET = 0x0005 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 Table 19-3. Parameter Signature Row Address vs. Product ATtiny261 ATtiny461 ATtiny861 TS_OFFSET 0x1F 0x05 0x05 TS_GAIN 0x1E 0x07 0x07 T ADCH << 8 〈〉 I ADCL [] 273 25 TS_OFFSET – + 〈〉 – () 128 × TS_GAIN ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- 25 + = |
|
Link URL |
| Lei ha avuto il aiuto da alldatasheet? [ DONATE ] |
Di alldatasheet | Richest di pubblicita | contatti | Privacy Policy | Collegamento alla scheda tecnica | scambio Link | Ricerca produttore 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 |