Elo TouchSystems 15A1 User Guide 36
Cash Drawer Port Signal Definition and Control
Pin #
Signal Name
1
Frame Ground
2
CD 1 Drawer kick-out drive signal 1
3
SW ( + ) connected on the side of the open/closed detection
switch on the drawer
4
L ( + ) +12V DC for drawer kick-out supplied
5
CD 2 Drawer kick-out drive signal 2
6
( - ) Ground
Control
Below is the source code of the test application showing how the cash drawer port is
implemented. The cash drawer is controlled by two GPIOS to open the drawer and one
GPIO to read back status.
*/
#include <stdio.h>
#include <conio.h>
#include <time.h>
#define GPIO_BASE
0x480
#define
PMBASE
0x800
#define GPE0_STS3
0x2B
#define
GP_LVL3
GPI 0x0F
#define
GPIO_2
0x08
#define
GPIO_3
0x10
#define CASH_STS_MSK
0x20
#define DRAWER1
0x01
#define DRAWER2
0x02
void Sleep(clock_t t);
int open_drawer(int drawer);
/*
=============================================================================
Function:
Parameters:
Return:
Exit:
Description:
=============================================================================
Summary of Contents for 15A1
Page 1: ...Touchcomputer User Guide 15A1 15 LCD Multifunction Touchcomputer...
Page 9: ...Elo TouchSystems 15A1 User Guide 9 Display Orientation...
Page 10: ...Elo TouchSystems 15A1 User Guide 10 Display Orientation with Peripherals...
Page 27: ...Elo TouchSystems 15A1 User Guide 27 C H A P T E R 4 Maintenance...
Page 31: ...Elo TouchSystems 15A1 User Guide 31 C H A P T E R 5 Technical Specifications...