Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

PIC16F84 Clock Character table

Status
Not open for further replies.

Pappee

New Member
Hi All!

I found a schematic and a source code here:**broken link removed**.It is a propeller clock. It includes a asm, and the author had defined the following character table:
Code:
ignore high bit. set=LED off, clear=LED on, bit0=bottom LED, bit6=top LED

Char_tbl
		addwf	PCL,f
		dt	0xC1,0xBE,0xBE,0xBE,0xC1	;"O"
		dt	0xFF,0xDE,0x80,0xFE,0xFF	;"1"
		dt	0xDE,0xBC,0xBA,0xB6,0xCE	;"2"
		dt	0xBD,0xBE,0xAE,0x96,0xB9	;"3"
		dt	0xF3,0xEB,0xDB,0x80,0xFB	;"4"
		dt	0x8D,0xAE,0xAE,0xAE,0xB1	;"5"
		dt	0xE1,0xD6,0xB6,0xB6,0xF9	;"6"
		dt	0xBF,0xB8,0xB7,0xAF,0x9F	;"7"
		dt	0xC9,0xB6,0xB6,0xB6,0xC9	;"8"
		dt	0xCF,0xB6,0xB6,0xB5,0xC3	;"9"
		dt	0xFF,0xC9,0xC9,0xFF,0xFF	;":"
I would like to write a sort word : "GABOR",and the defined numbers doesn't fit me. Could someone tell me how "makes" for example: 0xC1,0xBE,0xBE,0xBE,0xC1 = 0 ?? And so one?And how can I define a,b,c....?

Thanx a lot:
 
Presumably it's the binary bit patterns used to display each number, you would need to design the binary bit patterns for any characters you wanted. Looking at the example for the ':' it seems obvious that the table is inverted, each '0' in the bit pattern signifies a lit LED.
 
If you convert the hex numbers in the table into binary you end up with a bit pattern.

I.E. For character 5
Code:
dt   0x8D,0xAE,0xAE,0xAE,0xB1   ;"5"

0x8D = 10001101
0xAE = 10101110
0xAE = 10101110
0xAE = 10101110
0xB1 = 10110001

If you look at the zeroes then you will see that it is a 5 on it’s side backward. You now just need to work out the bit pattern for the alphabet :lol: . Actually, if you look around you should find a 7*5 character set somewhere on the web.

Mike.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top