The sample program OP71.C below cycles through through the outputs
參數(shù)資料
型號: 101-0303
廠商: Rabbit Semiconductor
文件頁數(shù): 77/126頁
文件大?。?/td> 0K
描述: SMARTSCREEN OP7100 DISPLAY
標(biāo)準(zhǔn)包裝: 1
系列: SBC
模塊/板類型: 單板計算機模塊,帶顯示器
適用于相關(guān)產(chǎn)品: 單板計算機
OP7100
54
Software
The sample program OP71.C below cycles through through the outputs
with one bit high at a time while it displays the state of the digital inputs.
Real-Time Clock (RTC)
The OP7100 has an Epson 72423 chip. The chip stores time and date, and
accounts for the number of days in a month, and for leap year. A backup
battery will allow the values in the RTC to be preserved if a power failure
occurs.
The Dynamic C function library DRIVERS.LIB provides the following
RTC functions.
The Dynamic C Function Reference manual describes these
functions and the associated data structure tm.
tm_rd
Reads time and date values from the RTC.
tm_wr
Writes time and date values into the RTC.
The following points apply when using the RTC.
1. The AM/PM bit is 0 for AM, 1 for PM. The RTC also has a 24-hour
mode.
2. Set the year to 96 for 1996, 97 for 1997, and so on.
Constantly reading the RTC in a tight loop will result in a loss
of accuracy.
OP71.C
void delay( unsigned wDelay ){
for(;--wDelay;hitwd());
}
void main( void ){
unsigned wAddr;
for (;;)
for(wAddr=0x4140;wAddr<0x4148;++wAddr){
outport( wAddr,0x01 );
printf( "%04x%02x\n",wAddr,inport(0x4140) );
delay( 0x8000 );
outport( wAddr,0x00 );
}
相關(guān)PDF資料
PDF描述
101-0383 MODULE RABBITCORE RCM2020
101-0435 MODULE RABBITCORE RCM2110
101-0453 MODULE RABBITCORE RCM2300
101-0494 MODULE RABBITCORE RCM2250
101-0518 MODULE RABBITCORE RCM3110
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
10103042SP 制造商:Pentair Technical Products / Hoffman 功能描述:HTR COMP 240V 25W W ADH TIES
1010-3-05-00-00-00-01-0 功能描述:電路板硬件 - PCB PRESS FIT WRAPOST RECPT 3 WRAPS RoHS:否 制造商:Harwin 類型:Shield Clip 長度:9.4 mm 螺紋大小: 外徑: 材料:Beryllium Copper 電鍍:Tin
1010-3-05-01-00-00-01-0 功能描述:電路板硬件 - PCB 200u SN/PB OVER NI 3 WRAPS RoHS:否 制造商:Harwin 類型:Shield Clip 長度:9.4 mm 螺紋大小: 外徑: 材料:Beryllium Copper 電鍍:Tin
1010-3-05-15-00-00-01-0 功能描述:電路板硬件 - PCB 10u AU OVER NI 3 WRAPS RoHS:否 制造商:Harwin 類型:Shield Clip 長度:9.4 mm 螺紋大小: 外徑: 材料:Beryllium Copper 電鍍:Tin
1010-3-05-21-00-00-01-0 功能描述:電路板硬件 - PCB 20u AU OVER NI 3 WRAPS RoHS:否 制造商:Harwin 類型:Shield Clip 長度:9.4 mm 螺紋大小: 外徑: 材料:Beryllium Copper 電鍍:Tin