G01G02G02G03G04G05G05G06G06G06G07G08G09G02G0AG0BG0CG0DG07G0AG0BG0EG07G0AG0FG01 G01 G01G01G01G01G01G01G01G01G01G01G01G01G02G01 G01 G01G01G01G01
G01G02G03G04G05G06G07G08G09G0AG0BG0CG0DG0EG0FG10G03
G01G02G03G04G03G05G06
G01G02G03G04
G01
G05
G02G03G04
G06G07G08G09
G05G06
G0AG0AG0BG0CG0DG0EG0FG10G11
G12G13G14G01G02
是一片具有串行接口的 可同时驱动G01G02G03G04G03G05G06 G07
位共阴式数码管或 只独立 的智能显示驱动芯G08G09G0A G0BG0CG02G0D
片 该芯片同时还可连接多达 键的键盘矩阵 单G09G0A
片即可完成 显示 键盘接口的全部功能G0BG0CG02
内部含有译码器 可直接接受 码或G01G02G03G04G03G05G06 G0EG0FG02
进制码 并同时具有 种译码方式 参见后文G10G09 G04
此外 还具有多种控制指令 如消隐 闪烁 左移 右移 段寻址等具有片选信号 可方便地实现多于 位G01G02G03G04G03G05G06 G07
的显示或多于 键的键盘接口G09G0A
G01G02G03G04
G01G02G01G03 G04G05G06G07G02 G08G09G0AG0BG02 G06G07G0CG0D
G05G06
G01G02G03G04 G05G06G07G08G09G0AG0BG0CG03G0DG0EG0BG0CG02
G0FG10G11G12G13G14G15G16G17G15G16G18G19G1AG1BG1CG1DG1EG1FG11
G20G21G22G23 G20G21G24G23G25G26G08G0DG11G08G0D
G27G28G29G2AG2BG25G26 G2CG2DG13G14G11G12G0BG0CG02
G2EG2EG2FG13G14G30 G31G32G33G34G0EG35G36G09G0A
G28 G1B G37G38G39G3AG3BG3CG3DG3EG3FG02G12G13 G14G15G12G0F
G16
G01G01
G02G03G04G05G06G07G03G08
G10G11G11
G10G11G11
G12G13
G10G14G14
G12G13
G13G14
G14G15
G14G16
G14G17
G14G11
G14G13
G13G18G19
G11G1AG1BG1A
G19G17G1C
G14G1D
G14G1A
G11G1E
G11G1FG15G20
G11G1FG15G21
G11G1FG15G22
G11G1FG15G23
G11G1FG15G24
G11G1FG15G25
G11G1FG15G26
G11G1FG15G27
G13G18G19G28
G29G13
G29G17G14G17G1B
G01G02
G03G04
G03G05
G06
G0E
G01
G01G02G02G03G04G05G05G06G06G06G07G08G09G02G0AG0BG0CG0DG07G0AG0BG0EG07G0AG0FG01 G01 G01G01G01G01G01G01G01G01G01G01G01G01G04G01 G01 G01G01G01G01
G01G02G03G04G05G06G07G08G09G0AG0BG0CG0DG0EG0FG10G03
G07G05G08 G17G0FG0FG18G19G1AG1BG17G1CG1DG18G10G1AG19G1EG1CG0FG18G10G19G1FG20G1CG21G06G18G04G19
G03G01
G02
G0FG10 G11G12 G13G14G08G15 G16G17 G18G19 G16G1A G1BG1C
G17G0FG0F G1DG1EG1DG1F G0AG1AG19 G19G1AG1B G19G1AG19 G17
G12G0FG0F G04G20G1DG21 G22G23G0BG0CG02 G22 G19 G23G06
G12G0FG0F G04G20G1DG21
G0BG0CG02G24G25 G12G14G0CG24G18G10
G1BG23G06
G09G1B G10G1BG1B G23G06
G17G12G01 G26G27G28G29G2AG1DG2B G04G1AG1B G19G1AG19 G17
G17G12G0B G26G27G28G29G2CG1DG2B G1BG1BG1AG07G17
G21G1EG0CG25 G2DG2EG2FG30G31G32 G33G34G35G36G31G32 G10G1B G10G07 G0AG1B G23G14
G12G1EG15 G1EG0CG25G37G38G28G39G1DG21 G03G23G06
G12G1EG12 G1EG0CG25G37G38G3AG29G1DG21 G10G1B G23G06
G21G10 G3B
G0FG14G3CG3DG3EG3FG0FG0BG1EG40G41G31
G04G19 G19G1B G04G19G1B G14
G21G04 G42G43G44G45G31G0FG0BG1EG40G41G46G47 G19G07G04G19G1BG14
G21G22 G48G49G42G43G4A
G0FG0BG1EG40G41G31G32
G19G07G04G19G1BG14
G21G0A G44G45G4BG12G4CG31G32G32G4D G10G19 G04G19 G04G19G1B G14
G21G19
G4EG2EG4FG44G45G4AG44G45G4BG28G39
G12G4CG31G32G32G4D
G10G19 G04G19 G04G19G1B G14
G21G09 G28G39G2EG4FG12G4CG50G51G31G32 G19G07G26G14
G21G03 G4EG2EG4FG12G4CG31G0FG0BG1EG40G41G46 G19G07G04G19G1BG14
G21G07
G4EG2EG4FG12G4CG52G53G54G02G06G21G06G55
G56G28G29G57G58G31G32
G19 G14
G01G02G02G03G04G05G05G06G06G06G07G08G09G02G0AG0BG0CG0DG07G0AG0BG0EG07G0AG0FG01 G01 G01G01G01G01G01G01G01G01G01G01G01G01G05G01 G01 G01G01G01G01
G01G02G03G04G05G06G07G08G09G0AG0BG0CG0DG0EG0FG10G03
G09G0AG0BG0C
G03G03
G0DG0EG0FG10G01
G59G06G07G44G45G5AG56G5BG1AG5C G5DG44G45G5EG5FG60G12G4CG59G44G45G01G02G03G04G03G05G06
G40G25G26
G61G1CG62G63G44G45G10G08G0DG06G0AG01
G04G05 G04G06 G04G07 G04G08 G04G09 G04G03 G04G01 G04G0A
G01G0AG01G0AG0AG01G0AG0A
G16
G64 G65G66G67G44G45G54 G68G69G60G59G0AG0BG62G63 G69G60G6AG6BG59G48G0FG6CG6D G6EG6FG70G71G72G01G02G03G04G03G05G06
G73G74G75G76G62G63 G77G78G67G44G45G54 G79G7AG69G7BG59G57G58G4BG7CG7DG7EG1DG54G69G7BG59G57G58G75G7F
G13G14G44G45G04G16G16 G0EG20G01
G04G05 G04G06 G04G07 G04G08 G04G09 G04G03 G04G01 G04G0A
G01G0AG01G01G01G01G01G01
G09
G67G44G45G80G69G60G59 G24G81G82G25 G83G7BG84G6EG6FG57G58 G85G86G87G84G13G14G0BG0CG02
G37G38 G88G89 G8AG8B
G10 G04G17G02G02 G8CG1DG1E
G22 G19G27G0F G8DG8EG23 G8FG90G91G92
G0AG17G14G23G93
G09G0FG14
G7AG94G28G29G95 G96G37G38G56G2CG1DG2BG31 G97G98G79G7AG99G43G44G45
G9AG4EG9BG2EG4FG12G4C
G03G0FG0BG1E
G9CG9DG31G9EG28G29G95 G98G79G7AG99G43G12G4CG9AG4EG9BG2EG4FG12G4CG31
G96G37G38G1DG2BG7EG9FG3EG03G0BG12G4CG60GA0
G07G02G06G21G06
GA1G78G12G4CG28G29G11G28G39G95 G64G79G7AG23G65G44G45G31 G96G37G38G56
G28G29G95 G64G4EG9BG2EG4FG12G4CG31 G96G37G38GA2 G4E G44G45G16
G54G75GA3G31G9EG59G3CG3DG3EGA4G56G28G39G95
G05G1EG0CG25
G2DG2EG60GA0G28G39G95 G2BG31G56G2AG1DG2B G64GA5G13G66G60GA0G2DG2E
G31 G96G37G38GA4G56G2CG1DG2B
G10G1BG26G10G09 G14G24 G14G06 GA6G28 GA6G29GA7G36G28G39
G10G03 G02G13 G17G12G82GA7G36G28G39
G10G07G26G04G19 G02G12G24G1B G02G12G24G03 G12G48G1B G12G48G03GA7G36G28G39
G04G09 G0FG0BG1EG15 GA8GA9G28G39G95
G04G03 G1DG0F G1DG0FGA8GA9G02G8EG23G95
G04G07 G1DG0CG14G0CG21 G61G1CG95
G01G02G02G03G04G05G05G06G06G06G07G08G09G02G0AG0BG0CG0DG07G0AG0BG0EG07G0AG0FG01 G01 G01G01G01G01G01G01G01G01G01G01G01G01G06G01 G01 G01G01G01G01
G01G02G03G04G05G06G07G08G09G0AG0BG0CG0DG0EG0FG10G03
GAAGABG44G45G22 G0AG0BG0C
G04G05 G04G06 G04G07 G04G08 G04G09 G04G03 G04G01 G04G0A
G01G0AG01G0AG0AG0AG0AG01
G09
G80G69G60G59G0AG0BGACGADG98GAAG3BGAE G1CG98GAE G1CGABG36G75G1CGAFGB0G7BG84G6CG6DG57G58G59G0AG0BG1C GB1G08G10 G07G0D G08 G0D
GB2GB3G1CG69G6AG6BG59G6CG6DG9AG6EG6FG71G72G22GA4 GABG36G54 G16GADGB4G75G1CG56G92G8DG0AG0B GB5GB6 GB7G0AG08G0D
G0BG56
4252LP39
G16
GB8G4AGAE G1C G5EGAE G1C G56G6EG6FG0AG0B G77G78GB9GAAGABG44G45G54 G0AG0BGA4G56G04G22 G0AG0B
252LP39
G16
GAEG5BG1C G5EGAEGBAG1C G56G6EG6FG0AG0BG05G13
GADGABG44G45G0AG06G1BG01
G04G05 G04G06 G04G07 G04G08 G04G09 G04G03 G04G01 G04G0A
G01G0AG01G0AG0AG0AG0AG0A
G16
G4BGAAGABG44G45G5CGBB GB1G69GBCGABG36G56GACGAAG98GADG3BGAE G1CG98GAE G1CGABG36 GABG36G54 G16GAAGB4G75G08G07 G10G0D
G1CG56G92
GBDGBEGAAGABG44G45G19G06G22G01
G04G05 G04G06 G04G07 G04G08 G04G09 G04G03 G04G01 G04G0A
G01G0AG01G0AG0AG0AG01G01
G16
G4BGAAGABG44G45G5CGBB G22G9CGBFG7BGA2G84GABG36G54GB7G16GAAGB4G75G1CGAE G1CG59GC0GC1G0AG0BG84G16GADG1CGAEG08G07G0D G08
G1C GA2G7EGB5G4A G77G78G52GBDGBEGAAGABG44G45G54G59G0AG0BG56G10G0D
252LP394
G16
GAEG5BG1C G5EGAEGBAG1C G56G6EG6FG0AG0BG05G13
GBDGBEGADGABG44G45G09G06G04G01
G04G05 G04G06 G04G07 G04G08 G04G09 G04G03 G04G01 G04G0A
G01G0AG01G0AG0AG0AG01G0A
G16
G4BGBDGBEGAAGABG44G45G5CGBB GB1GABG36GC2G98GC3GC4
G41G28G42G43G44G25G26
G3CGC5G12G4CGC6G2DGC2GC7 GC8GC9G10G1B
G01G02G02G03G04G05G05G06G06G06G07G08G09G02G0AG0BG0CG0DG07G0AG0BG0EG07G0AG0FG01 G01 G01G01G01G01G01G01G01G01G01G01G01G01G07G01 G01 G01G01G01G01
G01G02G03G04G05G06G07G08G09G0AG0BG0CG0DG0EG0FG10G03
G04G05 G04G06 G04G07 G04G08 G04G09 G04G03 G04G01 G04G0A G04G05 G04G06 G04G07 G04G08 G04G09 G04G03 G04G01 G04G0A
G01 G0A G0A G0A G0A G0BG03 G0BG01 G0BG0A G04G0C G0D G0D G0D G0EG09 G0EG03 G0EG01 G0EG0A
G16
G8DGCAG2FG2AG18
GCBG45GCCG5BGA3G48G49GCDG53 GCEGCFG81G5AG56G44G45 GB8G4A G56G1CG93GD0 GD1GD2G5AGD3GB6G3CG29G04G16 G29G10 G29G1B
G0AG0BG1CGD4G10GD5G11GD6G18G19G30G87G1DGD7G0EG08G0D
G0BG03 G0BG01 G0BG0A
G0AG0BG1C
G0AG0AG0A G01
G0AG0AG01 G03
G0AG01G0A G09
G0AG01G01 G08
G01G0AG0A G07
G01G0AG01 G06
G01G01G0A G05
G01G01G01 G0F
G16
G56G12G4C G65G66G96G44G45G31 G2DGD8G3CGD9GDAGC8GC9GC2GC7 GDBG78GC8GC9 GB6G3CG03G2BG1B G2BG22 G01G02G03G04G03G05G06 G08 G1BG0D
G0EG09G10G0EG0AG11
GDCGDDGDBG07
G12G0EG09 G0EG03 G0EG01 G0EG0A G05
GA6G0AG0B
G0AG0AG13 G0A G0A G0A G0A G1B
G0AG01G13 G0A G0A G0A G01 G10
G0AG03G13 G0A G0A G01 G0A G04
G0AG09G13 G0A G0A G01 G01 G22
G0AG08G13 G0A G01 G0A G0A G0A
G0AG07G13 G0A G01 G0A G01 G19
G0AG06G13 G0A G01 G01 G0A G09
G0AG05G13 G0A G01 G01 G01 G03
G0AG0FG13 G01 G0A G0A G0A G07
G0AG14G13 G01 G0A G0A G01 G05
G0AG15G13 G01 G0A G01 G0A G26
G0AG16G13 G01 G0A G01 G01 G0C
G0AG17G13 G01 G01 G0A G0A G01
G0AG04G13 G01 G01 G0A G01 G0B
G0AG18G13 G01 G01 G01 G0A G13
G0AG19G13 G01 G01 G01 G01
G92
G11
G8DG0AG0B
G12
G16
G03G22
G17G12G82G59G0AG0BGCC G1CG06G07 G31 G17G12G82G0AG0B G31 G17G12G82G22G0AG0BG02G13 G02G13G18G10 G02G13G18G1B
G01G02G02G03G04G05G05G06G06G06G07G08G09G02G0AG0BG0CG0DG07G0AG0BG0EG07G0AG0FG01 G01 G01G01G01G01G01G01G01G01G01G01G01G01G08G01 G01 G01G01G01G01
G01G02G03G04G05G06G07G08G09G0AG0BG0CG0DG0EG0FG10G03
G3CGC5G12G4CGC6G2DGC2GC7 GC8GC9G04G10
G04G05 G04G06 G04G07 G04G08 G04G09 G04G03 G04G01 G04G0A G04G05 G04G06 G04G07 G04G08 G04G09 G04G03 G04G01 G04G0A
G01 G01 G0A G0A G01 G0BG03 G0BG01 G0BG0A G04G0C G0D G0D G0D G0EG09 G0EG03 G0EG01 G0EG0A
G16
G8DGCAG2FG2AG18
G96G44G45G4BG7EG75G08G44G45GDEGDFGC3G9C G69G22G9CG59GE0GC8GC9GC2GC7 G67G44G45G59GC8GC9G2DG3CG03GDBG78
G0EG09G10G0EG0AG11
GDCGDDGDBG07
G12G0EG09 G0EG03 G0EG01 G0EG0A G05
GA6G0AG0B
G0AG0AG13 G0AG0AG0AG0A G1B
G0AG01G13 G0AG0AG0AG01 G10
G0AG03G13 G0AG0AG01G0A G04
G0AG09G13 G0AG0AG01G01 G22
G0AG08G13 G0AG01G0AG0A G0A
G0AG07G13 G0AG01G0AG01 G19
G0AG06G13 G0AG01G01G0A G09
G0AG05G13 G0AG01G01G01 G03
G0AG0FG13 G01G0AG0AG0A G07
G0AG14G13 G01G0AG0AG01 G05
G0AG15G13 G01G0AG01G0A G06
G0AG16G13 G01G0AG01G01 G2C
G0AG17G13 G01G01G0AG0A G0F
G0AG04G13 G01G01G0AG01 G2B
G0AG18G13 G01G01G01G0A G0C
G0AG19G13 G01G01G01G01 G20
G16
G03G0A
G3CGC5G12G4CGB1G22GC8GC9G22
G04G05 G04G06 G04G07 G04G08 G04G09 G04G03 G04G01 G04G0A G04G05 G04G06 G04G07 G04G08 G04G09 G04G03 G04G01 G04G0A
G01 G0A G0A G01 G0A G0BG03G0BG01G0BG0A G04G0CG15 G16 G17 G04 G18 G19 G1A
G16
GB8G4A G56G1CG93GD0G11GE1 G3CGC5G12G4CGC6GC8GC9 G44G45 G5E G56G0AG0BG12G29G04G16 G29G10 G29G1B G08 G0D G06G26G24 G02G13
G4C G5AGE2GB2G30 GA6 G12GC9GE3G59GB3GA6 G12GC9GE3GB3GA6G59GE4GE5GE1G3CG0E G64GC3G30G59G12G4CG1CG56G03G0BG0CG02
G31 G67GA6G82G25 GE6GDAG22G25G10
G16
G01G02G02G03G04G05G05G06G06G06G07G08G09G02G0AG0BG0CG0DG07G0AG0BG0EG07G0AG0FG01 G01 G01G01G01G01G01G01G01G01G01G01G01G01G09G01 G01 G01G01G01G01
G01G02G03G04G05G06G07G08G09G0AG0BG0CG0DG0EG0FG10G03
G6EG6FG06G07G0AG07G07G01
G04G05 G04G06 G04G07 G04G08 G04G09 G04G03 G04G01 G04G0A G04G05 G04G06 G04G07 G04G08 G04G09 G04G03 G04G01 G04G0A
G01G0AG0AG0AG01G0AG0AG0A G0EG0FG0EG05G0EG06G0EG07G0EG08G0EG09G0EG03G0EG01
G16
G96GCBG45G06G07GB3GA3G12GC9GE3G59G6EG6FG71G72 G5AGE2GB2G30G12GC9GE3 G6EG6F G22G6EG2BG10G26G16G2BG07 G10G26G07 G1BG18 G10G18
G6F GE7GE8G54 GE9GEAG59G57G58G56GB3G1CGEBG22G6EG6F
G6CG6DG06G07G0AG05G07G01
G04G05 G04G06 G04G07 G04G08 G04G09 G04G03 G04G01 G04G0A G04G05 G04G06 G04G07 G04G08 G04G09 G04G03 G04G01 G04G0A
G01G0AG0AG01G01G0AG0AG0A G0EG0FG0EG05G0EG06G0EG07G0EG08G0EG09G0EG03G0EG01
G16
G96GCBG45G06G07GB3GA3G12GC9GE3G59G6CG6DG71G72 G5AGE2GB2G30G12GC9GE3 G0AG0B G6CG6DG2BG10G26G16G2BG07 G10G26G07 G10G18 G1BG18
G64GECG75G1CG74GEDGEEGB9G6CG6DG71G72G54 GA2GEFGF0G31G68GF1GF2G67G1C GF3G96GA2GF4GF5GF6GF7G3CG8DGF8G01G02G03G04G03G05G06
GB2G67G1CGF9G29GFAGFB GEBG22GFCG74G0AG0B GB1GF9G29G59GFBG68G74GFDGFE GA2G68G67G1CGFFG01G6AG56G0AG0BG57G58
G54 G16G54G75G02GF9G29G59G12G4CG68G74G0AG0BG39G03 G64G8DG04G87G66G24G81 GA3G12GC9GE3G0AG0BG59G31G05 G68G22G07
G87G59G1CG6AG56G6CG6DG71G72 G97GD8G06G2AG0AG0BG59G25G47
G45G46 G47G48G49G28G4AG10G4BG4CG4DG4EG4FG50 G51G52G19G1AG13G14G25G26G53 G54G55G56 G57G25G26G58G17G59G2BG10G26G16G2BG07 G1B
G03G5A G4BG4CG5BG5CG44G19G1AG4FG50G17G5DG01G02G03G04G03G05G06
GA6G82G25G44G45G19G0CG1BG01
G04G05 G04G06 G04G07 G04G08 G04G09 G04G03 G04G01 G04G0A G04G05 G04G06 G04G07 G04G08 G04G09 G04G03 G04G01 G04G0A
G01G01G01G0AG0AG0AG0AG0A G0DG0DG0EG06G0EG07G0EG08G0EG09G0EG03G0EG01
G16
G96G56GA6G07GD0G44G45 G20G87G56G82G25G12GC9GE3G4AGECG75G44GE4G59GA6 G08G09G0AG4AGECG75G44GE4G59G0BG0CG02
G44G45G4A G8DGCAG2F G56GA6G93GD0 G0BG0CG3B GD1GD2G5AGD3G56G0BG0CG02 G2AG18 G2BG1BG26G16G2BG19 G1BG1BG01 G22G20G01
GAE GA3G12GC9GE3G59 GA6G93GD0G56 GA6G56 GA6G56 G17G12G82 G56 GAEGA3G10 G24 G1BG1BG01 G20G1BG10G01 G06 G1BG09G01 G02G13 G1BG03G01 G04
G12GC9GE3G59 GA6G56 GA6G56 G0DG96G5CG0EG0FG3FGAE GA3G12GC9GE3G59G17G12G82 G93GD0G56G24G1BG07G01G20G1BG05G01 G07 G02G13
G22G20G01
GA6G10G11G44G45G09G0FG1BG01
G04G05 G04G06 G04G07 G04G08 G04G09 G04G03 G04G01 G04G0A G04G05 G04G06 G04G07 G04G08 G04G09 G04G03 G04G01 G04G0A
G01G01G0AG0AG0AG0AG0AG0A G0DG0DG0EG07G0EG08G0EG09G0EG03G0EG01G0EG0A
G16
GA6G07GD0GCBG45 G20G87G56G10G11G12G13G12GC9GE3G4AG59GECG75GA6 G44G45G14G15G4B GA6G82G25G44G45 GC3G08G0D
G9C GD5G11GD6G7EG16
G01G02G02G03G04G05G05G06G06G06G07G08G09G02G0AG0BG0CG0DG07G0AG0BG0EG07G0AG0FG01 G01 G01G01G01G01G01G01G01G01G01G01G01G01G0AG01 G01 G01G01G01G01
G01G02G03G04G05G06G07G08G09G0AG0BG0CG0DG0EG0FG10G03
G4EG2EG4FG12G4CG44G45G03G10G19G01
G04G05 G04G06 G04G07 G04G08 G04G09 G04G03 G04G01 G04G0A G04G05 G04G06 G04G07 G04G08 G04G09 G04G03 G04G01 G04G0A
G0AG0AG0AG01G0AG01G0AG01 G0EG05G0EG06G0EG07G0EG08G0EG09G0EG03G0EG01G0EG0A
G16
G67G44G45G3B G4EG39G64GCEG59G2DG2EG17GC9 G4BGB8G18G44G45G22G9C G96GCBG45G59GCEG75GA3G48G49G01G02G03G04G03G05G06
G56G19G06G07G02G42G43G66 G59G44G45 G1AG54G75GA3G48G49 GDAG56 G1BG1BG1BG1BG10G1BG10G1BG10G0E G01G02G03G04G03G05G06 G2BG1BG26G16G2BG03 G01G02G03G04G03G05G06
G1CG59G2DG2EG17GC9 GB8G0BG0CGE0 G8DG2EG2DG3CG31G56 GB3G2EG2EG4FG17GC9G59GE4GE5 GD5G11GD6G0EG1BG26G22G20G01G08 G1BG2DG20G20G0D G04
G9AG18G19G30G87G1DGD7G0E G0EG4AG59G2EG10G1DG2EG4FG17GC9
G96G44G45G59GCEGCFGA6 G59 G37G38G7BG84G2AG1EG28G29G57G58 GD8G23G1FG03GACG19G7BG20G02G59G44G01G02G03G04G03G05G06 G02G06G21G06
G45 GA2G44G45G59G54GCFGA6 G37G38G3BG28G29G57G58G55G56G28G39G57G58 G28G39G2EG4FG17GC9G59GFB G21G19G02G06G21G06
G7BG20G02G8EG23G66 G37G38G59 G22G30G60G75G3BG28G39G58G66G28G29G58G59G55G23GF2G24 G25GF6GD5G11GD6GDFG16G02G06G21G06 G12G11G15
GA1G78G23G22 G75G49G59GC0GC1
G64 GA5G13G66G60GA0G59G2DG2EG31 G37G38G3BG2AG1DG2BGA4G56G2CG1DG2B G83G75G0FGFDG26G66G2DG01G02G03G04G03G05G06 G1EG0CG25
G2EG14G27 GA2G96G28G32 GB6G29 G23G65G66 G4EG2EG4FG12G4CG44G45 GDAG28G39G64GCEG2DG2EG59G2EG4FG01G02G03G04G03G05G06
G17GC9 GB6G29GA2G65G66 G4EG2EG4FG44G45 G31G2AG60G60GA0G2DG2E G68G28G39G01G02G03G04G03G05G06 G20G20G01G16G08
G10G10G10G10G10G10G10G10G0EG0D
G11G12G13G14
G2BG87GA1G78GC2GC7G4BG19G7BG20G02G2CG2D GA1G78G12G4CG3B G37G38G43G29G79G7A G83GCCG01G02G03G04G03G05G06 G16 G02G06G21G06
G95G9CG9D G64G7AG94G2EG10GA4G56G2CG1DG2BG54 G37G38G7EG59G12G4CGA2 G37G38G59G7EG9FG3EG74GF9G0FG0BG1E G02G06G21G06 G0FG0BG1E
G29G59G2FG41G30G31G02G01G02G03G04G03G05G06
G59G44G45G14G15G60G32GF5G5CG19 G22G5FG12G4CG59G5DG44G45 G44G45G59G46G47G56 GA3 G1DG01G02G03G04G03G05G06 G10 G07 G0EG12G21
G19G7BG20G02G04G99G43 GA3 G40G41 G5FG60G12G4CG59G44G45 G46G47G56 GA3 G1DG19G7BG20G02G04G99G07G0FG0BG1E G04 G10G09G0EG12G21
G43GA3 G40G41 G4EG9BG2EG4FG12G4CG44G45 G46G47G56 GA3 GCEGA3G56G19G7BG20G02G99G43G66G10G09 G0FG0BG1E G22 G10G09 G0EG12G21 G07
G59G44G45 G54GA3 G56 G1BG1CG59G2EG4FG17GC9 G77G78G96G44G45G31 G59G01G02G03G04G03G05G06 G07 G0EG12G21 G01G02G03G04G03G05G06 G01G02G03G04G03G05G06
G95GA2GAE GA3 G40G41G59G7EG9FG3EGA4G56G28G39G57G58 G83G4BGAE GA3G40G41G59G3CG3DG3EG33G61G56G28G29G02G06G21G06 G05 G0FG0BG1E G10G09
G57G58 G70G34G23G65G3CG75GA3G44G45
GA1G78G23G22G59G31G35GB6G3CG0E
G5DG44G45G10
G01G02G02G03G04G05G05G06G06G06G07G08G09G02G0AG0BG0CG0DG07G0AG0BG0EG07G0AG0FG01 G01 G01G01G01G01G01G01G01G01G01G01G01G01G0BG01 G01 G01G01G01G01
G01G02G03G04G05G06G07G08G09G0AG0BG0CG0DG0EG0FG10G03
G01G02
G03G03G03G03G01G02 G01G03
G01G04G05
G03G03
G01G02
G06G07G08G07
G16
G5FG12G4CG44G45G04
G01G02
G03G03G03G01G04
G01G04G05
G06G07G08G07
G16
G1CG44G45G2AG1CGA2GCE G1CG12G4CG2AG1CGA2GCEG16G16 G16G16 G16G16G16G07 G08 G0DG16 G16G16 G16G07 G08 G0D
G4EG2EG4FG44G45G22
G01G02
G03G03G03G01G05 G06 G06 G06 G01G07
G01G04G05
G03G03G01G08 G03G03G03G03G01G09
G06G07G08G07
G16
G4EG2EG4FG44G45 G1C G2AG1CGA2GCE G28G39G59G2EG4FG17GC9G1CG2AG1CGA2GCEG16G16 G16G16G16G16G16G16G16G16 G08G07 G0DG16G16G16G16G01G02G03G04G03G05G06 G08G07 G0D
G01G02G02G03G04G05G05G06G06G06G07G08G09G02G0AG0BG0CG0DG07G0AG0BG0EG07G0AG0FG01 G01 G01G01G01G01G01G01G01G01G01G01G01G01G02G0CG01 G01 G01G01G01G01
G01G02G03G04G05G06G07G08G09G0AG0BG0CG0DG0EG0FG10G03
G03G04
G59G18G19G30G87G0EGB6G3CG01G02G03G04G03G05
G16
G01G02G02G03G04G05G05G06G06G06G07G08G09G02G0AG0BG0CG0DG07G0AG0BG0EG07G0AG0FG01 G01 G01G01G01G01G01G01G01G01G01G01G01G01G02G02G01 G01 G01G01G01G01
G01G02G03G04G05G06G07G08G09G0AG0BG0CG0DG0EG0FG10G03
G30G8EG23G36G37GC7G12GC9GE3 G30G87G4A G8DG04G87G66G59G2EG4FG5EG12GC9GE3G97GD8G22G8EG23 GEAG01G02G03G04G03G05G06
G34G12GC9GE3G08GB2G12GC9GE3G6AG6BG6CG6DG71G72GEBG22GFCGCAG2FG2EG4FG59G80G87
GB6G29G22G87G2EG4F GDAG18G19G1DGD7G0EG4AG8EG23G66G2EG4FG59 G38 G1DG1EG5E G38 G3CG39G1DG1EGEBG97G07G10G1BG1E G07G10G1BG1BG1E
GD8GEAG34 GB6G29G80G87GB9G2EG4F GDAG1DGD7G4AG59 G38 G3CG39G1DG1EGEBG22G3AGEAG3B G63G3CG22G23G29G12GC9G07 G10G1BG1BG1E
GE3 GE6GDAGA1G29 G9A G8EG3DG59 G38 G1DG1EGEBG22G3EGEAG34G02G13 G14G06 G14G24 G07 G04G1BG1B
G3FG40G30G87G4A G38G3CG39G1DG1EG5E G38G2EG4FG8EG23G1CG94G3D G59 G38G1DG1E GD8G3CG41G89G1CG94G07G07 G02G12G24G1BG26G02G12G24G03G07
G1DG1E G30G42G3BG75GE4G59G43GB5G10G7C G3CG39G1DG1EG30G1AG84G1CG94G1DG1EG59 G44G1AG17G84GB8 G44 G18G19G19G19G1B
GFBG56 G44 G3CG39G1DG1EG59G9BGFBG0BG0CGE0 G1CG94G1DG1EG59G9BGFBG0BG0CGE0 GA2G22GCAG10G1B G10G1BG1EG26G10G1BG1BG1E G10G1EG26G10G1BG1E
G2FG0AG0BG59GCEG06G3C G3CG39G1DG1EG30G45G97G3EG93G9BG46G17G59GFB GF4G7FG97GD8G06G2AG2EG4FG81G5AG59G47G48G49G3E
G4A
GF3G56G2BG87GBDGBEGEFGF0G59G04G20GC2GC7 GB6G29G2BG87G4BG2CG59G12GC9GE3 G25G47G60G97G3EG22G4C G2BG87G2AG25
G08G4DG2AG25G59G19G10 G97GD8G4EG4FGF4GA3G50G51 G12GC9GE3G59G52G53 G54G22G55G94G3AGF2G1A G75G56G48G0FG2AG47
G22G55G4DGF2 G57G53 GB6G80G87G1AG19G59G12GC9GE3 G30G80G87G58G64G59GA7G36G1DGD7G10
G04G86G75G59G23G59 GA8GA9G1DGD7GD8G5AG7CG7DG04G20 GB8G18G19GFBG5AGE2G56G01G02G03G04G03G05G06 G1DG0F G1DG18G10G1AG19G1E G0FG18
GB6G29G79G7AG8DG5BG8CG5CG04G20 GD5G5DG5EGA5G5FG96GA8GA9G1DGD7 GA2G60G61G1DGD7G0DG62G3DG31 G69G60G63G10G19G1FG20
G15 G64GB8GE0GA8GA9G1DGD7G59G63G15G30G45G65G66G67 G83G45G65G80G1DGD7G8EG3DG16G68G01G02G03G04G03G05G06
G59G61G1CG95GA2G75G56G30G87GF6GF7G3C G97GD8G0FG23G4BG8CG1DG1EG8EG23 GA2G04G86G46G2AG01G02G03G04G03G05G06 G1DG0CG14G0CG21
G97G66G72G59GF6GF7G3C G97GD8G8EG23G75G59G81G59G61G1CG1DGD7 G08G0FG23GCC G1BG7AGE8 G06G07 GA2G7EG1DG2EG0FG2F
G08 G95GCCG2CG1DG2BGA4G56G2AG1DG2BG54 G1AG69G04G86G6AGF2G59G31G32G6BGFCGDBG29G1DG0CG14G0CG21 G01G02G03G04G03G05G06 G10G07G26G04G19G2EG14
G8CG5CG04G20G57G58
G7EG1DG54 G69G60G59G0AG0BGEBG56G92 G69G60G0AG0BG1CG59G0AG0BG71G72GEBG56 G0AG0B G9A G22G6EG6F G64
G60G2EG2DG3CG31 G37G38G28G39GA4G56G2CG1DG2B G96G31GB6G29G23G65G66 G4EG2EG4F G44G45 G68G1EG0CG25 G01G02G03G04G03G05G06
G28G39G69G2DG3CG2EG59G17GC9 G2EG4FG17GC9G59GE4GE5 GD5G11GD6G0E G9AG18G19G30G87G1DGD7G0E G0EG4AG59G2EG10G1DG04
G2EG4FG17GC9 G0EG4AG17GC9GD8 GDBG07G03G0B GB6G29GA2G2AG60G2DG2EG59GF6GF7G3CG65G66 G4EG2EG4F G44G45G10G1B
G68G28G39G01G02G03G04G03G05G06 G20G20G01G08G04G19G19G0D
G24G35G4A G45G97G3EG93G6CG6D GB2G59G6EG50G02G12 G97GD8G80G3AG24G35G6FG60GA0G70G0FG13G2F G01G02G03G04G03G05G06
GF3G56G79G7AG0FG23GA7G36 G12GC9GE3G0AG0B G1DG21G46G1A GC6G56G36G58GEFGF0GC2GC7 G21GB6G29G67G81G5AG1DG0BG0CG02
GD7G1DG1EG8EG3DG46G71G46G72 G97G3EGFCG37G29G46G1AG59G1DG1EG73G74G48G49 G68G59G8CG75G1DG1EG95G7EG83G01G02G03G04G03G05G06
G29G34G76G1DGC1G97GD8G06G2AG1DGD7G59G47G48G49G3EG4A
G45G46 G51G52G28 G5EG2EG5FG60G61G62 G58G63G64G65G66G67G53G4AG5EG2EG44G68G16 G69G6AG04 G01G02G03G04G03G05G06
G17G6BG6CG49G6DG6EG06G6F G5EG70 G5EG71G72G2EG5FG60G61G62G44G73G74G01G02G03G04G03G05G06 G04 G04
G03G04G75G76G4EG77
G3CG0CG77G39 G78G79G59G9AG78G79G59G4BG8EG06G21G2EG0CG0B G06G21G07G05G0FG04G1BG19G10 G2EG12G0FG1DG15G0FG01G12G13 G13G12G0FG10G09G0FG19G0A G01G02G03G04G03G05G06
G01G02G02G03G04G05G05G06G06G06G07G08G09G02G0AG0BG0CG0DG07G0AG0BG0EG07G0AG0FG01 G01 G01G01G01G01G01G01G01G01G01G01G01G01G02G04G01 G01 G01G01G01G01
G01G02G03G04G05G06G07G08G09G0AG0BG0CG0DG0EG0FG10G03
G23G59G30G87G3FGB5 GA3G24G35G69G52G53G59G7AG3EGC3G9C GEBG56G70G34G2EG4FG28G29 G7BG54G68G69G4EG66G59G2EG4FG04
GC9G55G23G53GDBG07G54G43G1C G0AG0B G9CG31G68GCEG0CG59G0AG0BGC0GC1GAAGABG10G1B G01G02G03G04G03G05G06
G23G22G24G35G10 G06G21G07G05G0FG04G1BG19G10
G7CG15G8EG23GB6G0E G69G87G31G9EG7DG70G56 G24G35G80G87 GD4GC8G2CG06G21G07G05G0FG04G1BG19G10 G10G04G2EG01G30 G20G31G29G32G33G34G35G32G16G06G19G10
GF2 G83G6AGF2G7EG7F G24G35G4AG80G31G31G32GD8 G59G23G56G81 GB6G80G87G22G9CG01G02G03G04G03G05G06 G1DG18G10G1AG19G1EG1CG16G0FG18G10G19G1FG20
G59G31G9EG7DG70G08G22G9CG59 G11G12 GD5G82G83G84G85G80G31G31G32G0FG13G2F G1DG11G0F
$ title (HD7279A Test Program)
$ DB;*********************************
GE4GE5; RAM;*********************************
BIT_COUNT DATA 07FH
TIMER DATA 07EH
TIMER1 DATA 07DH
TEN DATA 07CH
DATA_IN DATA 020H
DATA_OUT DATA 021H;*******************************************
G22GE4GE5; I/O;*******************************************
G59G8EG23G84DAT BIT P1.2 ;HD7279A DATA P1.2
G59G8EG23G84KEY BIT P1.3 ;HD7279A KEY P1.3
G59G8EG23G84CS BIT P1.4 ;HD7279A CS P1.4
G59G8EG23G84CLK BIT P1.5 ;HD7279A CLK P1.5
ORG 000H
JMP START
ORG 100H
GE4GE5G86G87START,MOV SP,#2FH ;
G22G88G89G8A MOV P1,#11011011B ;I/O
G80G31G69 MOV TIMER,#50 ; 25MS
G01G02G03G04
G01G02G03G05
G01G02G03G06
G01G02G03G07
G08G09G0AG09
G0BG0CG0D
G0EG0F
G0EG10G0B
G06G21G07G05G0FG04G1BG19G10
G01G02G03G04G03G05G06
G01G02G02G03G04G05G05G06G06G06G07G08G09G02G0AG0BG0CG0DG07G0AG0BG0EG07G0AG0FG01 G01 G01G01G01G01G01G01G01G01G01G01G01G01G02G05G01 G01 G01G01G01G01
G01G02G03G04G05G06G07G08G09G0AG0BG0CG0DG0EG0FG10G03
START_DELAY,MOV TIMER1,#255
START_DELAY1:DJNZ TIMER1,START_DELAY1
DJNZ TIMER,START_DELAY
G99G61G1CG62G63G44G45 MOV DATA_OUT,#10100100B ; ( )
CALL SEND
G33G61G56G2AG1DG2B SETB CS ; CS
GA5G13GE0GE6G60G2EG2DG3CMAIN,JB KEY,MAIN ;
G60G2EG2DG3C G99G43G4EG2EG4FG44G45 MOV DATA_OUT,#00010101B ;
CALL SEND
CALL RECEIVE
G6AG56G2AG1DG2B SETB CS ; CS
GDBG07 GC9G55G23 MOV B,#10 ;16 BCD
MOV A,DATA_IN
DIV AB
MOV TEN,A
G99 G02GAAGABG44G45 G80G64GCEG0AG0B MOV DATA_OUT,#10100001B ; 2
GC0GC1GAAGAB GFEG39G92G1CG5AG0AG0BG01 ;,
G12G4C ;
G99G43G44G45G66 CALL SEND ; HD7279A
MOV DATA_OUT,#10100001B
CALL SEND
G3CGC5G12G4CGC6GC8GC9G44G45 GAE G1C MOV DATA_OUT,#10000001B ; ( 2 )
CALL SEND
G99G43GDCG1CG12G48G66 MOV DATA_OUT,TEN ; HD7279A
CALL SEND
G3CGC5G12G4CGC6GC8GC9G44G45 GAE MOV DATA_OUT,#10000000B ; ( 1
G1C ;)
CALL SEND
G99G43GA3G1CG12G48G66 MOV DATA_OUT,B ; HD7279A
CALL SEND
SETB CS
G70G34G2DG2EG8BGE7WAIT,JNB KEY,WAIT ;
JMP MAIN;*******************************************
G99G43 GA3G48G49G66 G2AG1CGA2GCE; 1 HD7279;*******************************************
G6AGE4G1CG8CG12G02SEND,MOV BIT_COUNT,#8 ; =8
G6AG56G2CG1DG2B CLR CS ; CS
G72G80G31 CALL LONG_DELAY ;
G01G02G02G03G04G05G05G06G06G06G07G08G09G02G0AG0BG0CG0DG07G0AG0BG0EG07G0AG0FG01 G01 G01G01G01G01G01G01G01G01G01G01G01G01G02G06G01 G01 G01G01G01G01
G01G02G03G04G05G06G07G08G09G0AG0BG0CG0DG0EG0FG10G03
G28G39 G1CSEND_LOOP,MOV C,DATA_OUT.7 ; 1
MOV DAT,C
G6AG56G2AG1DG2B SETB CLK ; CLK
G34G99G43G12G4CGAAGAB MOV A,DATA_OUT ;
RL A
MOV DATA_OUT,A
G68G80G31 CALL SHORT_DELAY ;
G6AG56G2CG1DG2B CLR CLK ; CLK
G68G80G31 CALL SHORT_DELAY ;
GA5G5FGE0GE6 G1CGEBG99G43G52G8D DJNZ BIT_COUNT,SEND_LOOP ; 8
G99G43G52G8D G1BG1C CLR DAT ;
RET;*******************************************
G3B G23G65G75GA3G48G49 G2AG1CGA2GCE; HD7279;*******************************************
G6AGE4G1CG8CG12G02RECEIVE,MOV BIT_COUNT,#8 ; =8
G6A G22G56G2AG1DG2B SETB DAT ; P1.2(DATA)
G28G29G57G58 ;( )
G72G80G31 CALL LONG_DELAY ;
G6BG56G2AG1DG2BRECEIVE_LOOP,SETB CLK ; CLK
G68G80G31 CALL SHORT_DELAY ;
G12G4CGAAGAB MOV A,DATA_IN ;
RL A
MOV DATA_IN,A
G4EG9BG75G1CG12G4C MOV C,DAT ;
MOV DATA_IN.0,C
G6BG56G2CG1DG2B CLR CLK ; CLK
CALL SHORT_DELAY
GE0GE6G8EG23G65 G1CG12G4C DJNZ BIT_COUNT,RECEIVE_LOOP; 8
GFFG6A G22G56G2CG1DG2B G28G39G57G58 CLR DAT ; DAT ( )
RET;*******************************************
G80G31G8FG24G35;;*******************************************
G6AGE4G80G31G31G32G56G69LONG_DELAY,MOV TIMER,#25 ; 50uS
DELAY_LOOP,DJNZ TIMER,DELAY_LOOP
RET
G6AGE4G80G31G31G32G56G69SHORT_DELAY,MOV TIMER,#4 ; 8uS
SHORT_LP,DJNZ TIMER,SHORT_LP
G01G02G02G03G04G05G05G06G06G06G07G08G09G02G0AG0BG0CG0DG07G0AG0BG0EG07G0AG0FG01 G01 G01G01G01G01G01G01G01G01G01G01G01G01G02G07G01 G01 G01G01G01G01
G01G02G03G04G05G06G07G08G09G0AG0BG0CG0DG0EG0FG10G03
RET
END
G23G22G24G35G04G13G12G0FG10G09G0FG19G0A
G7CG15G8EG23GB6G0E G69G87G31G9EG7DG70 G24G35G80G87 G78G79G59G13G12G0FG10G09G0FG19G0A G0AG2EG01G30 G2EG12G0FG1DG15G0FG01G12G13
GD4GC8G24G35GD4GC8G2CGF2 G83G6AGF2G7EG7F G24G35G4AG80G31G31G32GD8 G59G23G2EG13G06G14G2E G01G02G03G04G03G05G06 G1DG18G10G1AG19G1EG1CG16G0FG18
G56G81 GB6G80G87G22G9CG59 G31G9EG7DG70G08 G11G12 GD5G82G83G84G85G80G31G31G32G10G19G1FG20G0FG13G2F G1DG11G0F
TITLE "HD7279A TEST"
LIST P=16C54
INCLUDE P16C5X.INC;**********************************
G30G31G02GE4GE5;;**********************************
BIT_COUNT SET 0X07
DATA_OUT SET 0X08
DATA_IN SET 0X09
TEN SET 0X0A
TIMER SET 0X0B
TIMER1 SET 0X0C;**********************************
G22GE4GE5; I/O;**********************************
G8EG23G84 G59CS EQU 0 ;CS 16C54 RA0
G8EG23G84 G59CLK EQU 1 ;CLK 16C65 RA1
G8EG23G84 G59DAT EQU 2 ;DAT 16C54 RA2
G8EG23G84 G59KEY EQU 3 ;KEY 16C54 RA3
ORG 0x1FF
GOTO START
ORG 0X00;*******************************************
G80G31G8FG24G35;;*******************************************
G6AGE4G80G31G31G32G56G69LONG_DELAY MOVLW D'16' ; 50uS
MOVWF TIMER
G11G09G04
G11G09G05
G11G09G12
G11G09G02
G08G09G0AG09
G0BG0CG0D
G0EG0F
G0EG10G0B
G13G12G0FG10G09G0FG19G0A
G01G02G03G04G03G05G06
G01G02G02G03G04G05G05G06G06G06G07G08G09G02G0AG0BG0CG0DG07G0AG0BG0EG07G0AG0FG01 G01 G01G01G01G01G01G01G01G01G01G01G01G01G02G08G01 G01 G01G01G01G01
G01G02G03G04G05G06G07G08G09G0AG0BG0CG0DG0EG0FG10G03
DELAY_LOOP DECFSZ TIMER
GOTO DELAY_LOOP
RETLW 0
G6AGE4G80G31G31G32G56G69SHORT_DELAY MOVLW D3 ; 8uS
MOVWF TIMER
SHORT_LP DECFSZ TIMER
GOTO SHORT_LP
RETLW 0;*******************************************
G99G43 GA3G48G49G66 G2AG1CGA2GCE; 1 HD7279;*******************************************
G34G99G43G12G4CG31G29SEND MOVWF DATA_OUT ; DATA_OUT
MOVLW D'8'
G6AGE4G1CG8CG12G02 MOVWF BIT_COUNT ; =8
G6AG56G2CG1DG2B BCF PORTA,CS ; CS
G72G80G31 CALL LONG_DELAY ;
SEND_LOOP BCF STATUS,C
G28G39 G1C RLF DATA_OUT ; 1
BCF PORTA,DAT
BTFSC STATUS,C
BSF PORTA,DAT
G6AG56G2AG1DG2B BSF PORTA,CLK ; CLK
G68G80G31 CALL SHORT_DELAY ;
G6AG56G2CG1DG2B BCF PORTA,CLK ; CLK
CALL SHORT_DELAY
GA5G5FGE0GE6 G1CGEBG99G43G52G8D DECFSZ BIT_COUNT ; 8
G90G99G43G52 G99G43G3CG75G1C GOTO SEND_LOOP ;
BCF PORTA,DAT
G99G43G52G8D G1BG1C RETLW 0 ;;*******************************************
G3B G23G65G75GA3G48G49 G2AG1CGA2GCE; HD7279;*******************************************
RECEIVE MOVLW D'8'
G6AGE4G1CG8CG12G02 MOVWF BIT_COUNT ; =8
G6A G22G56G28G29G57G58 MOVLW B'11111100' ; RA2(DATA)
TRIS PORTA
G72G80G31 CALL LONG_DELAY ;
G6BG56G2AG1DG2BRECEIVE_LOOP BSF PORTA,CLK ; CLK
G68G80G31 CALL SHORT_DELAY ;
G01G02G02G03G04G05G05G06G06G06G07G08G09G02G0AG0BG0CG0DG07G0AG0BG0EG07G0AG0FG01 G01 G01G01G01G01G01G01G01G01G01G01G01G01G02G09G01 G01 G01G01G01G01
G01G02G03G04G05G06G07G08G09G0AG0BG0CG0DG0EG0FG10G03
BSF STATUS,C
BTFSS PORTA,DAT
BCF STATUS,C
G4EG9BG75G1CG12G4C RLF DATA_IN ;
G6BG56G2CG1DG2B BCF PORTA,CLK ; CLK
CALL SHORT_DELAY
GE0GE6G8EG23G65 G1CG12G4C DECFSZ BIT_COUNT ; 8
GOTO RECEIVE_LOOP
GFFG01G6A G22G56G28G39G58 MOVLW B'11111000' ; RA2(DATA)
TRIS PORTA
RETLW 0;*******************************************
G88G89G8A;;*******************************************
G22G88G89G8ASTART MOVLW B'11111000' ;I/O
TRIS PORTA
MOVLW B'11111001'
MOVWF PORTA
G80G31G69 MOVLW 0X19 ; 25MS
MOVWF TIMER
START_DELAY MOVLW 0XFF
MOVWF TIMER1
START_DELAY1 DECFSZ TIMER1
GOTO START_DELAY1
DECFSZ TIMER
GOTO START_DELAY
G99G61G1CG62G63G44G45 MOVLW B'10100100' ; ( )
CALL SEND
G33G61G56G2AG1DG2B BSF PORTA,CS ; CS;*******************************************
G85G24G35;;*******************************************
GA5G13GE0GE6G60G2EG2DG3CMAIN BTFSC PORTA,KEY ;
GOTO MAIN
G60G2EG2DG3C G99G43G4EG2EG4FG44G45 MOVLW B'00010101' ;
G99G43G4EG2EG4FG44G45 CALL SEND ;
G3BG4EG2EG4FG17GC9 CALL RECEIVE ; HD7279A
G6AG56G2AG1DG2B BSF PORTA,CS ; CS;*******************************************
G01G02G02G03G04G05G05G06G06G06G07G08G09G02G0AG0BG0CG0DG07G0AG0BG0EG07G0AG0FG01 G01 G01G01G01G01G01G01G01G01G01G01G01G01G02G0AG01 G01 G01G01G01G01
G01G02G03G04G05G06G07G08G09G0AG0BG0CG0DG0EG0FG10G03
GDBG07 GC9G55G23; 16 BCD;*******************************************
CLRF TEN
GET_DEC MOVLW D'10'
SUBWF DATA_IN,W
SKPC
GOTO OVER
MOVWF DATA_IN
INCF TEN
GOTO GET_DEC;*******************************************
G99G43G2DG2EG59 GC9G66; BCD HD7279;*******************************************
G99 G02GAAGABG44G45 G80G64GCEG0AG0BGC0GC1GAAGAB;2
GFEG39G92G1CG5AG0AG0BG01G12G4C;
GAAGABG44G45OVER MOVLW B'10100001' ;
G99G43G44G45G66 CALL SEND ; HD7279A
GAAGABG44G45 MOVLW B'10100001' ;
G99G43G44G45G66 CALL SEND ; HD7279A
G3CGC5G12G4CGC6GC8GC9G44G45 GAE G1C MOVLW B'10000001' ; ( 2 )
G99G43G44G45G66 CALL SEND ; HD7279A
MOVFW TEN
G99G43GDCG1CG12G48G66 CALL SEND ; HD7279A
G3CGC5G12G4CGC6GC8GC9G44G45 GAE G1C MOVLW B'10000000' ; ( 1 )
G99G43G44G45G66 CALL SEND ; HD7279A
MOVFW DATA_IN
G99G43GA3G1CG12G48G66 CALL SEND ; HD7279A
BSF PORTA,CS
G70G34G2DG2EG8BGE7WAIT BTFSS PORTA,KEY ;
GOTO WAIT
GOTO MAIN
END
G01G02G02G03G04G05G05G06G06G06G07G08G09G02G0AG0BG0CG0DG07G0AG0BG0EG07G0AG0FG01 G01 G01G01G01G01G01G01G01G01G01G01G01G01G02G0BG01 G01 G01G01G01G01
G01G02G03G04G05G06G07G08G09G0AG0BG0CG0DG0EG0FG10G03
G91G92G75G87G84 G59G93G94GB5G8FG24G35,MCS51 C
GF4GE0G87G84 G95G96G0DG59 G24G35 G80G87 G93G94GD4G24G59G87G97G97GD8G11G98HD7279A C51,C
#include <reg51.h>
G99G12GE4GE5//*** ***
G72G80G31void long_delay(void); //
G68G9AG80G31void short_delay(void); //
G80G31void delay10ms(unsigned char); // 10MS
GF9G29G66void write7279(unsigned char,unsigned char);// HD7279
G3BG4EG39unsigned char read7279(unsigned char);// HD7279
G99G43G75GA3G48G49void send_byte(unsigned char); //
G23G65G75GA3G48G49unsigned char receive_byte(void); //
GA4G65G9A G22GE4GE5//*** I/O ***
unsigned char digit[5];
unsigned char key_number,j,k;
unsigned int tmr;
unsigned long wait_cnter;
sbit cs=P1^4; // cs at P1.4
G8EG23G84sbit clk=P1^5; // clk P1.5
G8EG23G84sbit dat=P1^2; // dat P1.2
G8EG23G84sbit key=P1^3; // key P1.3
G44G45//****** HD7279A ******
#define CMD_RESET 0xa4
#define CMD_TEST 0xbf
#define DECODE0 0x80
#define DECODE1 0xc8
#define CMD_READ 0x15
#define UNDECODE 0x90
#define RTL_CYCLE 0xa3
#define RTR_CYCLE 0xa2
#define RTL_UNCYL 0xa1
#define RTR_UNCYL 0xa0
#define ACTCTL 0x98
#define SEGON 0xe0
#define SEGOFF 0xc0
#define BLINKCTL 0x88
G85G24G35//*** ***
main()
G01G02G02G03G04G05G05G06G06G06G07G08G09G02G0AG0BG0CG0DG07G0AG0BG0EG07G0AG0FG01 G01 G01G01G01G01G01G01G01G01G01G01G01G01G04G0CG01 G01 G01G01G01G01
G01G02G03G04G05G06G07G08G09G0AG0BG0CG0DG0EG0FG10G03
{
while (1)
{
G7EG1DG80G31 for (tmr=0;tmr<0x2000;tmr++); //
G61G1C send_byte(CMD_RESET); // HD7279A
//******************************************
G13G14G44G45G9BG0B//
//******************************************
G13G14G44G45 send_byte(CMD_TEST); //
G80G31G69G9C for (j=0;j<3;j++) // 3
{
delay10ms(100);
}
G62G63G0AG0B send_byte(CMD_RESET); //
//**********************************************
G6EG6FG44G45G9AG2EG4FG23G22G13G14//
G68G87G97G2DG2EG59G2EGC9G0AG0BG39G03 GB6G29G9CGC0G8DG2DG2E//,10
G08G2DG2EG1DGDBG29G3CG75G9DG9BG0B// S0
//**********************************************
wait_cnter=0;
key_number=0xff;
GAE G9DG1CG6AG56G6EG6FG0AG0B write7279(BLINKCTL,0xfc); // 1 2
GA2GAE G1CG0AG0BG3CG9EG3D write7279(UNDECODE,0X08); // 1 '_'
GA2GAE G1CG0AG0BG3CG9EG3D write7279(UNDECODE+1,0x08);// 2 '_'
do
{
GB6G29G60G2EG2DG3C if (!key) //
{
key_number=read7279(CMD_READ);
G4EG39G2EGC9 //
write7279(DECODE1+1,key_number/16);
GA2GAE G1CG0AG0BG2EGC9G2A G1C // 2 8
write7279(DECODE1,key_number&0x0f);
GA2GAE G1CG0AG0BG2EGC9G2C G1C // 1 8
G70G34G2DG2EG8BGE7 while (!key); //
wait_cnter=0;
}
wait_cnter++;
} while (key_number!=0 && wait_cnter<0x30000);
GB6G29G2DG2EG56 G5EG4DG31GDAGDBG29G3CG75G9DG9BG0B // 0
G01G02G02G03G04G05G05G06G06G06G07G08G09G02G0AG0BG0CG0DG07G0AG0BG0EG07G0AG0FG01 G01 G01G01G01G01G01G01G01G01G01G01G01G01G04G02G01 G01 G01G01G01G01
G01G02G03G04G05G06G07G08G09G0AG0BG0CG0DG0EG0FG10G03
G62G63G6EG6FG6AG6B write7279(BLINKCTL,0xff); //
//******************************************
G9FGA0GA1G12G9BG0B//
//******************************************
GA1G12G88G89GFBG56 for (j=0;j<5;j++) // 00000
{
digit[j]=0;
write7279(DECODE0+j,digit[j]);
}
GB6G29GA1G12GA2G66 GA3GA4GA5 while (digit[4]<2) // 20000
{
digit[0]++;
if (digit[0]>9)
{
digit[0]=0;
digit[1]++;
if (digit[1]>9)
{
digit[1]=0;
digit[2]++;
if (digit[2]>9)
{
digit[2]=0;
digit[3]++;
if (digit[3]>9)
{
digit[3]=0;
digit[4]++;
if (digit[4]>9)
{
digit[4]=0;
}
}
}
}
}
write7279(DECODE0,digit[0]);
if (digit[0]==0)
{
write7279(DECODE0+1,digit[1]);
G01G02G02G03G04G05G05G06G06G06G07G08G09G02G0AG0BG0CG0DG07G0AG0BG0EG07G0AG0FG01 G01 G01G01G01G01G01G01G01G01G01G01G01G01G04G04G01 G01 G01G01G01G01
G01G02G03G04G05G06G07G08G09G0AG0BG0CG0DG0EG0FG10G03
if (digit[1]==0)
{
write7279(DECODE0+2,digit[2]);
if (digit[2]==0)
{
write7279(DECODE0+3,digit[3]);
if (digit[3]==0)
{
write7279(DECODE0+4,digit[4]);
}
}
}
}
}
delay10ms(150);
G62G63G0AG0B send_byte(CMD_RESET); //
//*************************************************
G3CGC5G12G4CGB1G22GC8GC9G44G45G13G14//
//*************************************************
write7279(UNDECODE+7,0x49);
GA2GAE G1CG2DG22GC8GC9GC2GC7G0AG0BG75G48G0F G32 // 8 ' '
delay10ms(80);
//*************************************************
GBDGBEGAA GADGABG13G14// /
G32 G48G98GADGA6G36 G02GA7G98GAAGA6G36 G02// " " 3,3
//*************************************************
for (j=0;j<23;j++)
{
GBDGBEGADGAB G02 send_byte(RTR_CYCLE); // 23
delay10ms(12);
}
for (j=0;j<23;j++)
{
GBDGBEGAAGAB G02 send_byte(RTL_CYCLE); // 23
delay10ms(12);
}
//*********************************************
GC8GC9GC2GC7 G9AGAAGABG44G45G13G14// 0
G01G02G02G03G04G05G05G06G06G06G07G08G09G02G0AG0BG0CG0DG07G0AG0BG0EG07G0AG0FG01 G01 G01G01G01G01G01G01G01G01G01G01G01G01G04G05G01 G01 G01G01G01G01
G01G02G03G04G05G06G07G08G09G0AG0BG0CG0DG0EG0FG10G03
//*********************************************
for (j=0;j<16;j++)
{
G22GBDGBEGAAGABG44G45 send_byte(RTL_UNCYL); //
write7279(DECODE0,j);
GC8GC9GC2GC7 G44G45 G0AG0BGA2GAE G1C // 0 1
delay10ms(50);
}
delay10ms(150);
send_byte(CMD_RESET);
//*********************************************
GC8GC9GC2GC7 G9AGADGABG44G45G13G14// 1
//*********************************************
for (j=0;j<16;j++)
{
G22GBDGBEGAAGABG44G45 send_byte(RTR_UNCYL); //
write7279(DECODE1+7,j);
GC8GC9GC2GC7 G44G45 G0AG0BGA2GAE G1C // 0 8
delay10ms(50);
}
delay10ms(150);
//*********************************************
G6CG6DG44G45G13G14//
//*********************************************
k=0xff;
for (j=0;j<6;j++)
{
k=k/2;
GA8G4DG75G9CG9EGA9GAAG75GA3G6CG6DG1C write7279(ACTCTL,k);//
delay10ms(100);
}
G33G61G1CG0AG0B write7279(ACTCTL,0xff); // 8
delay10ms(100);
G62G63G0AG0B send_byte(CMD_RESET); //
//**********************************************
GA6G82G25G44G45G5EGA6G10G11G44G45//
//**********************************************
for (j=0;j<64;j++)
G01G02G02G03G04G05G05G06G06G06G07G08G09G02G0AG0BG0CG0DG07G0AG0BG0EG07G0AG0FG01 G01 G01G01G01G01G01G01G01G01G01G01G01G01G04G06G01 G01 G01G01G01G01
G01G02G03G04G05G06G07G08G09G0AG0BG0CG0DG0EG0FG10G03
{
G68GA3G0AG0BGA6GABGA3G82G25 write7279(SEGON,j); // 64
G9CG31G68GCEG75GA3G0AG0BGA6G10G11 write7279(SEGOFF,j-1); //
delay10ms(20);
}
}
}
void write7279(unsigned char cmd,unsigned char dta)
{
send_byte (cmd);
send_byte (dta);
}
unsigned char read7279(unsigned char command)
{
send_byte(command);
return(receive_byte());
}
void send_byte( unsigned char out_byte)
{
unsigned char i;
cs=0;
long_delay();
for (i=0;i<8;i++)
{
if (out_byte&0x80)
{
dat=1;
}
else
{
dat=0;
}
clk=1;
short_delay();
clk=0;
short_delay();
out_byte=out_byte*2;
}
G01G02G02G03G04G05G05G06G06G06G07G08G09G02G0AG0BG0CG0DG07G0AG0BG0EG07G0AG0FG01 G01 G01G01G01G01G01G01G01G01G01G01G01G01G04G07G01 G01 G01G01G01G01
G01G02G03G04G05G06G07G08G09G0AG0BG0CG0DG0EG0FG10G03
dat=0;
}
unsigned char receive_byte(void)
{
unsigned char i,in_byte;
G6AG56G28G29G57G58 dat=1; //
long_delay();
for (i=0;i<8;i++)
{
clk=1;
short_delay();
in_byte=in_byte*2;
if (dat)
{
in_byte=in_byte|0x01;
}
clk=0;
short_delay();
}
dat=0;
return (in_byte);
}
void long_delay(void)
{
unsigned char i;
for (i=0;i<0x30;i++);
}
void short_delay(void)
{
unsigned char i;
for (i=0;i<8;i++);
}
G80G31// ********************* n*10ms **********************
void delay10ms(unsigned char time)
{
unsigned char i;
unsigned int j;
G01G02G02G03G04G05G05G06G06G06G07G08G09G02G0AG0BG0CG0DG07G0AG0BG0EG07G0AG0FG01 G01 G01G01G01G01G01G01G01G01G01G01G01G01G04G08G01 G01 G01G01G01G01
G01G02G03G04G05G06G07G08G09G0AG0BG0CG0DG0EG0FG10G03
for (i=0;i<time;i++)
{
for(j=0;j<0x390;j++)
{
if (!key)
{
key_int();
}
}
}
}
G01G02G02G03G04G05G05G06G06G06G07G08G09G02G0AG0BG0CG0DG07G0AG0BG0EG07G0AG0FG01 G01 G01G01G01G01G01G01G01G01G01G01G01G01G04G09G01 G01 G01G01G01G01
G01G02G03G04G05G06G07G08G09G0AG0BG0CG0DG0EG0FG10G03
G91G92G5B
G01G02G03G04G03G05G06评估板
GACG56G95G96 G59G72G3EG5EGADGAEG84G14G87G97G1DGD7 G24G35G1AG6AGA1 G1DG97G98GAFG24G0CG9BG0BG01G02G03G04G03G05G08G06G0D
G59GB3GB0G7AG3E G9CG31G73GE0GAFGA2G80G87 GF2G24G4AG84G14G1DGD7G9AG24G35G59G3AG4AGAEG01G02G03G04G03G05G08G06G0D G01G02G03G04G03G05G08G06G0D
GB1 G85G86GB2G82GAFGB0
G5FG60GB3G81G1DGD7G9AG9BG0BG24G35 G2CG1DG1DG97G24G0CG9BG0BG59GB3GB0G7AG3EG16 G01G02G03G04G03G05G06
G5FG60G59G81G23G22 G97GB4G0DG7EG59G1DGD7G84G14G87G97G24G35 G73G97G87G0DG7EG59G24G35G13G14G87G97G1DGD7G16G0FG13G2F
GACG5F G2EG2EG4FG0DG7EGB5GB6GB7 G38G2DG2EG16G09G0A G08 G10G09 G0D
G2BG87G87G97G97GB8G31G6FGB9G9BG0BG24G35G16G0FG13G2F G06G21G07G05G0FG04G1BG19G10G1C
G91G5FGBAG4F GC0G33GBBGF5G9BG0BG24G35G1EG24G35G9AGD4GC8GBAG15G16
G97G2BG87 G08G9DGF5G1DG1EG16 G19G17 G05G17G08G06G0FG11G02G0FG0D
G95G96G0DGB3G81GD3G6BGB6G3C
G38G01G02G03G04G03G05G06G16 G16G16 G10
G38G06G21G07G05G0FG04G1BG19G10G16 G16G16 G10
G12GC9GE3 G38G16G16G16G16G16G07
G2DG2E G38G16G16G16G16G16G10G09
GB8G18GADGAEG1DGD7
GBAG4F GBCG22G1AG19 G16 G16G16 G10
G80G87G8AG8BGBDGBEG16G16G16G16G16G16G10
G95G96G0DG1DGD7G0E
G09