PICSimLab - Programmable IC Simulator Laboratory
0.9.2
PICSimLab - API
Loading...
Searching...
No Matches
io_MM74C922.h
1
/* ########################################################################
2
3
PICSimLab - Programmable IC Simulator Laboratory
4
5
########################################################################
6
7
Copyright (c) : 2021-2024 Luis Claudio GambĂ´a Lopes <lcgamboa@yahoo.com>
8
9
This program is free software; you can redistribute it and/or modify
10
it under the terms of the GNU General Public License as published by
11
the Free Software Foundation; either version 2, or (at your option)
12
any later version.
13
14
This program is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
GNU General Public License for more details.
18
19
You should have received a copy of the GNU General Public License
20
along with this program; if not, write to the Free Software
21
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22
23
For e-mail suggestions : lcgamboa@yahoo.com
24
######################################################################## */
25
26
#ifndef IO_MM74C922
27
#define IO_MM74C922
28
29
/*
30
pinout
31
1 ROW Y1
32
2 ROW Y2
33
3 ROW Y3
34
4 ROW Y4
35
5 OSC 1 uF (50Hz scan rate)
36
6 KBM 0.1uF (1ms debounce time)
37
7 COL X4
38
8 COL X3
39
9 GND
40
10 COL X2
41
11 COL X1
42
12 DA
43
12 /OE
44
14 D
45
15 C
46
16 B
47
17 A
48
18 VCC
49
*/
50
51
typedef
struct
{
52
unsigned
long
freq;
53
unsigned
int
count;
54
unsigned
char
cols;
55
unsigned
short
out;
56
unsigned
char
da;
57
unsigned
char
key;
58
unsigned
int
srate;
59
}
io_MM74C922_t
;
60
61
void
io_MM74C922_rst(
io_MM74C922_t
* kc);
62
void
io_MM74C922_init(
io_MM74C922_t
* kc);
63
void
io_MM74C922_set_clk_freq(
io_MM74C922_t
* kc,
const
unsigned
long
freq);
64
65
unsigned
short
io_MM74C922_io(
io_MM74C922_t
* kc,
unsigned
char
Y);
66
67
#endif
// IO_MM74C922
io_MM74C922_t
Definition
io_MM74C922.h:51
src
devices
io_MM74C922.h
Generated by
1.9.8