Saturday, September 19, 2009

PIC16F84A Clock

Description:


This is a simple clock that uses PIC16F84A ucontroller,4050 CMOS, seven segment (common anode), and few other components.
Short the same pins of 7-segment (a with a, b with b and so on) and connect them with appropriate 4050 pin. Also make sure to invert D3 & D4 like this:


7-Segment CA pin out:

Schematic:




Top:


Bottom:

Components:

  • IC3 PIC61F84A
  • IC1 & IC2 Cmos 4050
  • Resistors, R1 - R3 10K ohm 0.25W
  • S1 - S2, Push Switches
  • Ceramic Capacitors,C1-C2 30pF
  • Q1 4 MHz Crystal
  • D1-D4 seven segment CA
Hex code:

:100000002A28FF3FFF3FFF3F8C00030E83018D0036
:100010000A088E008A0104088F000E28960803192A
:100020009503960B20289508031D20280130950084
:10003000E8309600483097070318960A0130980078
:100040000B110F0884000E088A000D0E83008C0E21
:100050000C0E0900FF309100FF30920001309C210E
:100060000030C9210030CB211116C821051E61289E
:10007000C030C600F930C700A430C800B030C90095
:100080009930CA009230CB008230CC00D830CD00FD
:100090008030CE009030CF00C030BC00CF30BD00EB
:1000A000A430BE008630BF008B30C0009230C1004B
:1000B0009030C200C330C3008030C4008230C5001D
:1000C00089283F30C6000630C7005B30C8004F307B
:1000D000C9006630CA006D30CB007D30CC002730BF
:1000E000CD007F30CE006F30CF003F30BC003030CD
:1000F000BD005B30BE007930BF007430C0006D3091
:10010000C1006F30C2003C30C3007F30C4007D307E
:10011000C500051EA4280130BE210030BC210130DD
:1001200095210230BE210030BC21013095210430E0
:10013000BE210030BC21013095210830BE210030A5
:10014000BC2101309521BC28FE30BE21FF30BC21EE
:1001500001309521FD30BE21FF30BC2101309521B9
:10016000FB30BE21FF30BC2101309521F730BE218C
:10017000FF30BC210130952101309500E830960018
:100180004830970098019A019B019C010C309D001A
:10019000D7218230D3218B178B16D9211808013C27
:1001A000031DE7289B0A98019A011B083C3C031D8C
:1001B000E7289B019C0A1C083C3C031DE7289C0186
:1001C0009D0A1D080D3C031DE72801309D001430D9
:1001D0001A02031C9A0A051EF0280130BE21F228DB
:1001E000FE30BE211D08093C0318F9284708BC2130
:1001F0000029051EFE28FF30BC2100290030BC214B
:100200000130A3211D08A1000A30A200DB21230830
:100210009E001E0899001908463E840000089900B7
:100220000F301A0203181C29051E1A2980301902E2
:1002300099001C2980309907051E21290230BE2112
:100240002329FD30BE211908BC210130A3211C083F
:10025000A1000A30A200E92123089F001F0899008D
:1002600019083C3E8400000899000F301A02031858
:100270004129051E3F29803019029900412980300B
:100280009907051E46290430BE214829FB30BE21AE
:100290001908BC210130A3211C08A1000A30A200CA
:1002A000DB212308A0002008990019083C3E8400A7
:1002B00000089900051E5F290830BE216129F7302A
:1002C000BE211908BC210130A321051E6A29FF3077
:1002D000BC216C290030BC21051E71290030BE21D3
:1002E0007329FF30BE211214C7219214C621061CA7
:1002F0008229061C7D29000079299C0A1C083B3CA8
:10030000031C9C01861C8F29861C882900008429D7
:100310009D0A1D080C3C03188F2901309D00921086
:10032000C6211210C721CE28942995001508A200D5
:100330006430A3003230AA2995001508A200643069
:10034000A3000A30AA29A1002108A2000A30A300B4
:100350000130AA29A400FF30A5002308A700220825
:10036000A600173025070318B229A60BB129A70B41
:10037000AF29A40BAD2908009400C0299300C3291C
:10038000140886000800130885000800CD29CD292F
:10039000D0299200CD299100D029120866000800CA
:1003A0001108650008009E001E0862000800831600
:1003B000080083120800A2080319E6292208210276
:1003C000031CE62922082102A100DE292108A3003E
:1003D0000800A401A2080319F62922082102031C1F
:1003E000F62922082102A100A40AED292408A3006D
:1003F0000800FF3FFF3FFF3FFF3FFF3FFF3FFF3F43
:10040000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FFC
:10041000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FEC
:10042000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FDC
:10043000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FCC
:10044000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FBC
:10045000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FAC
:10046000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F9C
:10047000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F8C
:10048000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F7C
:10049000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F6C
:1004A000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F5C
:1004B000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F4C
:1004C000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F3C
:1004D000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F2C
:1004E000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F1C
:1004F000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F0C
:10050000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FFB
:10051000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FEB
:10052000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FDB
:10053000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FCB
:10054000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FBB
:10055000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FAB
:10056000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F9B
:10057000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F8B
:10058000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F7B
:10059000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F6B
:1005A000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F5B
:1005B000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F4B
:1005C000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F3B
:1005D000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F2B
:1005E000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F1B
:1005F000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F0B
:10060000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FFA
:10061000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FEA
:10062000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FDA
:10063000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FCA
:10064000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FBA
:10065000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FAA
:10066000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F9A
:10067000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F8A
:10068000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F7A
:10069000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F6A
:1006A000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F5A
:1006B000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F4A
:1006C000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F3A
:1006D000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F2A
:1006E000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F1A
:1006F000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F0A
:10070000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FF9
:10071000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FE9
:10072000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FD9
:10073000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FC9
:10074000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FB9
:10075000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FA9
:10076000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F99
:10077000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F89
:10078000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F79
:10079000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F69
:1007A000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F59
:1007B000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F49
:1007C000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F39
:1007D000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F29
:1007E000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F19
:1007F000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F09
:084000000F000F000F000F007C
:02400E00F13F80
:104200007700770077002E006A006F00730065006A
:10421000700069006E006F002E0063006F002000C8
:104220002D0020004A0050003800340031002D00DD
:1042300034002E0068006500780020002A002A0063
:104240002A00200054004F00520020002A002A00BB
:104250002A0020004A0075006E0020003100330063
:104260002000320030003000350020002D002000FA
:104270004C0061007300740020007600650072003D
:00000001FF




3 comments:

  1. I lost it. Just the hex code is available.

    ReplyDelete
  2. He Just does not want to give it to you...but that is his right!

    ReplyDelete