Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

DOT MATRIX WITH PIC16F877A ,CD4017 and ULN2803

Status
Not open for further replies.
.... changing the font of the matrix.
.... adjust the codes for 12MHZ of Quartz.

Extract and open my original project in the "MikroC PRO for PIC" IDE with a double click on the mccpi file.
Note the free demo (2k) version is also enough ...

Comment out the line 10 in the source, so:
//#define BOLD //if defined, my bold characters are used

Modify the msg in the line 47 as you want (trailing spaces work as separator while scrolling):
const char MsgArray[] = "Welcome from Hungary ............... ";
If your msg is a one line str (as above), do not forget to comment out the other str lines (line 48 to 56).

Go to the "Project Settings" window in IDE (see help) then modify the Frequency to 12.000000 MHz (now 16 M)

Recompile the project, if success then you can re-burn the PIC with the new hex file (the config word is the same)

When you want to try it also in Proteus, open the DSN then modify the PIC property to 12 MHz clock.

Thats all.

zuisti
PS:
Otherwise, it works well? What was the problem?
A golden rule: have to apply a ceramic 100 nF on each IC gnd-vcc pins
 

why when commenting those lines 49 to 56 ,the compiler says that there is an error and commenting this is impossible (when commenting you get errors).

Thanks.
 

when commenting those lines 49 to 56 ,the compiler says that there is an error

lines 48 to 56 have to comment out (2 to 10 below) as I wrote.

code snippet from line 47 to 56 (here 1 to 10):

Code PHP - [expand]
1
2
3
4
5
6
7
8
9
10
const char MsgArray[] = "what you want to be displayed (almost unlimited lenght :-)   ";
//                          "abcdefghijklmnopqrstuvwxyz $'\"+!%/=\\<>@&#_ " //this is the line 48
//                          "* Welcome from Hungary *"
//                          //"00000000000000000000000000000000000000000000 "
//                          //"11111111111111111111111111111111111111111111 "
//                          //"22222222222222222222222222222222222222222222 "
//                          //"33333333333333333333333333333333333333333333 "
//                          //"44444444444444444444444444444444444444444444 "
//                          //"55555555555555555555555555555555555555555555 "
//                          " end/begin: "; //to separate while scrolling (:-)


Remember the extra semicolon at end of the string, now in line 47 (here: line 1).
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top