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
#define
PMBASE
#define GPE0_STS3
#define
GP_LVL3
#define
GPIO_2
#define
GPIO_3
#define CASH_STS_MSK
#define DRAWER1
#define DRAWER2
void Sleep(clock_t t);
int open_drawer(int drawer);
/*
=============================================================================
Function:
Parameters:
Return:
Exit:
Description:
=============================================================================
0x480
0x800
PMBASE + 0x2B
GPIO_BASE + 0x0F
0x08
0x10
0x20
0x01
0x02
Elo TouchSystems 17A2 User Guide 44