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.
I have not used that LCD but usually there is simply a command to set the line such as 0x80 for the first and 0xC0 for the second. make sure that when you are writing that you arent accidently calling the home command which would put it back to the first line
16F877A with 7segment
When you run any of these programs what does the display do? Does anything turn on? can you turn on and off the segments just by detaching them from the microcontroller and applying power to them?
There should be plenty of schematics on the web , what you are trying to do isnt that complex. You will need a FET drives 4 FETs, 4 diodes, an inductor and other parts. Do you understand how an H bridge works? do need part choices?
I am also a EE student I did a couple of projects with 8051 in Assembly. I was looking for other alternatives and I found there to me alot more printed material on the PICs than the 8051 (maybe it was just where was looking). So I bought various dev boards and started building a robot. 8bit...
Re: 16F877A with 7segment
Could you be a little more specific. What are you able to do so far? Why are you concerned with PORTA are you able to get it working on PORTB?
After you make the changes betwixt suggested , check that you have the WDT,BOREN both turned off. Maybe even make sure that SSPCON1 is set to zero to disable the SPI port, although it should start up with it disabled.
Have you checked the Vss and Vdd pins at the uC with a multimeter or oscope...
Add a 10uF and a 0.1uF cap , place them betweeen Vdd and Vss. Place it physically close to the PIC. You can tie the 2 pwrs and 2 grounds together.
You might want to increase the xTal caps from 10pf to the standard 22pf. Make sure it is very close to the PIC and that the wires/traces are as...
It is best to show those pins, if you choose not to show Vss and Vdd on the part you should at least show the capacitors that you have between pwr and gnd close to the part so that people know you have them. If you dont have those capacitors you need to add them. Also did you add the while()...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.