5秒后页面跳转
AN897 PDF预览

AN897

更新时间: 2024-09-17 03:18:51
品牌 Logo 应用领域
美国微芯 - MICROCHIP 温度传感
页数 文件大小 规格书
16页 430K
描述
Thermistor Temperature Sensing with MCP6SX2 PGAs

AN897 数据手册

 浏览型号AN897的Datasheet PDF文件第3页浏览型号AN897的Datasheet PDF文件第4页浏览型号AN897的Datasheet PDF文件第5页浏览型号AN897的Datasheet PDF文件第7页浏览型号AN897的Datasheet PDF文件第8页浏览型号AN897的Datasheet PDF文件第9页 
AN897  
The Signal Analysis PC Program commands the  
PIC16F684 firmware to perform a real-time sample.  
The firmware reads the ADC value and passes it to the  
PGA hysteresis routine. Figure 16 shows the detail of  
the PGA hysteresis routine. The routine checks to see  
what PGA gain is set (the variable “PGAgain”). Based  
on PGAgain, the ADC value is tested for end-point  
(trip) values. If the ADC value is beyond the trip point  
value, PGAgain is set to the next higher or lower gain  
setting. Upon exiting the PGA hysteresis routine, the  
firmware checks if PGAgain was changed. If there was  
no change (Return 0), the program continues. If there  
was a change (Return 1), the firmware re-reads the  
ADC.  
FLOWCHARTS  
The second design’s flowchart is shown in Figure 15. It  
is very similar to the first design program, with the  
exception that it has added a PGA hysteresis routine.  
The firmware is available in the 00897.zip file. The  
firmware was written in relocatable assembly code.  
The main.asm file controls the overall program flow.  
The PGA routines are in pga.inc and pga.asm. The  
thermistor routines are in Therm_PGA2.inc and  
Therm_PGA2.asm.  
Start  
Get Real Time Sample  
Once the PGA gain and ADC value are known, both  
values are passed to the piece-wise linear interpolation  
routine. Based on the PGA gain setting, the correct  
look-up table is referenced. The PwLI routine converts  
the 10-bit ADC value into a 16-bit fixed decimal point  
degrees Celsius value. The fixed decimal point format  
reports degrees Celsius in tenths of a degree.  
Performing the piece-wise linear interpolation in tenths  
of a degree provides better resolution of degrees  
Celsius. Finally, the 16-bit degrees Celsius value is  
sent to the Signal Analysis PC Program for display on  
the real-time strip chart graph.  
Read ADC  
PGA Hysteresis  
Was PGAgain  
Changed?  
Yes  
No  
Perform PwLI  
In the final design, the designer can elect to receive  
reports in tenths of a degree or that they be rounded up  
into whole degrees.  
Send °C to Strip Chart  
End  
FIGURE 15:  
Flowchart for Second  
Design.  
PGA Hysteresis  
IF  
IF  
PGAadc < 113  
PGAgain = 1  
Set PGAgain = 8  
Y
Y
Y
N
N
IF  
IF  
PGAadc < 226  
PGAgain = 8  
Set PGAgain = 32  
Set PGAgain = 1  
Y
Y
N
N
IF  
PGAadc > 960  
N
IF  
IF  
PGAgain = 32  
PGAadc > 960  
Set PGAgain = 8  
Y
Y
N
N
Return 0  
Return 1  
FIGURE 16:  
Flowchart for Second Design’s PGA Hysteresis Subroutine.  
DS00897B-page 6  
2004 Microchip Technology Inc.  

与AN897相关器件

型号 品牌 获取价格 描述 数据表
AN8981SB PANASONIC

获取价格

Telecom Circuit, 1-Func, Bipolar, PDSO28, 0.375 INCH, PLASTIC, SSOP-28
AN8982SB ETC

获取价格

映像?音響用 - TV
AN-90 FAIRCHILD

获取价格

74C Family Characteristics
AN-9008 FAIRCHILD

获取价格

The Use of QFETs in a Flyback Converter
AN-902 NSC

获取价格

Twisted Pair FDDI Magnetics Overview and Recommendations
AN-9032 FAIRCHILD

获取价格

SPM? TEST BOARD for use in Isolated Inverter GND
AN-9033 FAIRCHILD

获取价格

SPM? TEST BOARD for use in Isolated Inverter GND
AN-9037 FAIRCHILD

获取价格

8x8 MLP DriverMOS Packaging
AN904 STMICROELECTRONICS

获取价格

MAGNETIC AMPLIFIER WITH LPR30 CONTROLLER
AN-9040 FAIRCHILD

获取价格

Power33 Packaging