參數(shù)資料
型號(hào): GPS140HR
廠商: Electronic Theatre Controls, Inc.
英文描述: GPS Positioning Module
中文描述: GPS定位模塊
文件頁(yè)數(shù): 30/38頁(yè)
文件大?。?/td> 282K
代理商: GPS140HR
GPS140HR
30
RTD Embedded Technologies, Inc.
The second major concern when writing ISR's is to make them as short as possible in
term of execution time. Spending long times in interrupt service routines may mean
that other important interrupts are not serviced. Also, if you spend too long in your ISR,
it may be called again before you have exited. This will lead to your computer hanging
up and will require a reboot.
Your ISR should have the following structure:
Push any processor registers used in your ISR. Most C compiler do this automatically
Put the body of your routine here
Clear the interrupt bit by reading GPS140HR RXD register
Issue the EOI command to the 8259 by writing 20h to address 20h
Pop all registers. Most C compilers do this automatically
The following C example shows what the shell of your ISR should be like:
/*-------------------------------------------------------------------------------
| Function:
new_IRQ_handler
| Inputs:
Nothing
| Returns:
Nothing
|-------------------------------------------------------------------------------*/
void interrupt far new_IRQ_handler(void)
{
IRQ_flag = 1;
// Indicate to main process interrupt has occurred
{
// Your program code to read UART data put here
// read to a data buffer for example:
Guc_buffer[Gi_bufpos++] = inp(gi_SERIAL_DATA);
}
outp(0x20, 0x20);
// Acknowledge the interrupt controller
}
Saving the Startup Interrupt Mask Register (IMR) and interrupt vector
The next step after writing the ISR is to save the startup state of the interrupt mask
register (IMR) and the original interrupt vector you are using. The IMR is located in
address
21h
. The interrupt vector you will be using is located in the interrupt vector
table which is an array of pointers (addresses) and it is locate din the first 1024 bytes
of the memory (Segment 0 offset 0). You can read this value directly, but it is better
practice to use DOS function 35h (get interrupt vector) to do this. Most C compilers
have a special function available for doing this. The vectors for the hardware interrupts
on the XT - bus are vectors 8-15., where IRQ0 uses vector 8 and IRQ7 uses vector 15.
Thus if your GPS140HR is using IRQ5 it corresponds to vector number 13.
相關(guān)PDF資料
PDF描述
GPS170TS-EPE SURFACE MOUNT LED LAMPS
GR500 HIGH RELIABILITY SOLID TANTALUM
GRF180 SURFACE MOUNT, MAGNETIC-LATCHING BROADBAND RF RELAYS DPDT
GRM1885C1H101JA01 Monolithic Ceramic Capacitors
GRM219E41H104MA01 Monolithic Ceramic Capacitors
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
GPS-14198 功能描述:GPS MOUSE - GP-808G (72 CHANNEL) 制造商:sparkfun electronics 系列:- 零件狀態(tài):在售 功能:接收器 調(diào)制或協(xié)議:Beidou,GLONASS,GNSS,GPS 頻率:1.575GHz 應(yīng)用:通用 接口:- 靈敏度:-167dBm 功率 - 輸出:- 數(shù)據(jù)速率(最大值):- 特性:- 電壓 - 電源:3.3 V ~ 5 V 標(biāo)準(zhǔn)包裝:1
GPS-1513R 制造商:RF Solutions LTD 功能描述:GPS MODULE SMD 65CH LP
GPS1575P 制造商:Laird Technologies Inc 功能描述:ANT GPS 1.575GHZ 1.25" TNC MALE 制造商:Laird Technologies Inc 功能描述:ANTENNA UNIT 制造商:Laird Technologies Inc 功能描述:GPS,GPO,LOW.1.575GHZ
GPS1575SM-001 制造商:Laird Technologies Inc 功能描述:GPS,GPO,LOW,1575.42
GPS1575SP26-004 制造商:Laird Technologies Inc 功能描述:GPS,MINI,PM,RG174,MMCX