EasyManua.ls Logo

EMBRON Hatteland E Series - Page 116

Default Icon
136 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
116
RTC Timer (Apollolake) - User Guide
Appendix
IND100077-195
DOC207017- rev 01 2018-09-24 - Created by: 6644
Page 8 of 12
Hatteland Display AS, Stokkastrandvegen 87B, N-5578 Nedre Vats, Norway
Tel: (+47) 4814 2200 - mail@hatteland-display.com - www.hatteland-display.com
User Guide RTC Timer - ApolloLake
All intellectual properties belongs to Hatteland Display AS
1. Time/Date Register definition in RTC timer
3 Driver support
3.1
Windows
Windows does not provide direct IO address access in user-space, so a third party driver/library is
required to implement the IO control logic in application.
Here we recommend a method of 3
rd
party driver: Inpout driver.
http://www.highrez.co.uk/downloads/inpout32/default.htm
The InpOut32 device driver supports writing to "old fashioned" hardware port addresses. It does NOT
support USB devices such as USB Parallel ports or even PCI parallel ports.
The device driver is installed at runtime. To do this however needs administrator privileges. On Vista
& later, using UAC, you can run the InstallDriver.exe in the \Win32 folder to install the driver
appropriate for your OS. Doing so will request elevation and ask for your permission (or for the
administrator password). Once the driver is installed for the first time, it can then be used by any user
*without* administrator privileges
[1]
The inpout driver package consists of:
- Driver: Inpout.sys
- DLL file: Inpout.dll
Driver file is required to install beforehand. Then the user application call the provided interface to
read/write on IO port:
1. Set Output to IO port.
void Out32(short Address, short Data);
2. Read Input from IO address
short Inp32(short Address);
3. Check if InpOut driver is opened.
BOOL IsInpOutDriverOpen(void);
3.1.1 Example Code Windows
typedef void (__stdcall *lpOut32)(short, short);
DOC207017- rev 01 2018-09-24 - Created by: 6644
Page 7 of 12
Hatteland Display AS, Stokkastrandvegen 87B, N-5578 Nedre Vats, Norway
Tel: (+47) 4814 2200 - mail@hatteland-display.com - www.hatteland-display.com
User Guide RTC Timer - ApolloLake
All intellectual properties belongs to Hatteland Display AS
9
Wait 1 sec
10
Read Execute Bit
IN
Base Address +
0x02
(Expected 0x08)
11
Read Returned
data
IN
Base Address +
0x05
(See note 1
Time/Date
Register
Definition)
Note:
1. Time/Date Register definition in RTC timer
2.1.3 Write Data to RTC timer
Step
Description
IN/OUT
Address
Data
1
Clear Host Status
OUT
Base Address +
0x00
0xFE
2
Wait 1 sec
3
Read Host Status
IN
Base Address +
0x00
4
Wait 1 sec
5
Read Host Status
IN
Base Address +
0x00
(Expect 0x40)
6
Set Device
address
OUT
Base Address +
0x04
0x64
7
Set Slave Device
Register Address
OUT
Base Address +
0x03
0xXX
(See note 1
Time/Date
Register
Definition)
8
Set Slave Device
Register Data
OUT
Base Address +
0x05
0xXX
(See note 1
Time/Date
Register
Definition)
9
Set Execute Bit
OUT
Base Address +
0x02
0x48
10
Wait 1 sec
11
Read Execute Bit
IN
Base Address +
0x02
(Expected 0x08)
Note:

Table of Contents

Related product manuals