Thread starter loup-garou Start date May 22, Status Not open for further replies. Last edited: May 22, Click to expand Last edited: May 23, Hi, Don't use c18 library, just use my code. I wrote this code for 8 bit mood Code:. Last edited by a moderator: Feb 12, Stavros New Member. Hello I had take kasunths code and i try to used it. I make some changes to work fine with my LCD and i send numbers to first line and characters to the Second line.
The numbers display properly with no problem put i have problem with characters-strings. Only the first character display to LCD. Can you help me to make the code to send all the characters to LCD?
Here are the changes that i had made in code: Code:. Last edited: Dec 28, Wond3rboy Member. Hi, its fairly easy to work with the LCD library. Heres a program and a ISIS file showing the simulation. Read through library documentation to understand it better. We have compiled a list of the best LCD tutorials and threads. Hello Thanks Wond3rboy for your help.
I am working with your code but i have some difficulties to make the appropriate changes to the code to work with my LCD because it has assembly and C code i don't know assembly well. I wiil try to find it and i will tell you. Also i will download new version of Proteus because i have Proteus 7 and can't open the file that you send me.
Thanks 3v0 i will read the pages that you have send me. Hi, pleaes no PMs stavros. Did you add all the files that i have put in the zip folder? Also did you replace the original xlcd. Pin definitions are given in the xlcd. You will require to go through the library documentation to understand how this is being done. Here is the hex file that i generated from the project. I did a quick review of your code. Do I need to specify which one is being used, and if so how do I do this?
Thank you again! Thanks Ant, I wrote this quite some time ago now. It just ensures the correct I2C sequence appears on a given interface, which I checked with my scope. I then ported this to an Arduino library which I've been using ever since. Best Regards SteveQ. Thank you Steve! I just got it working with dsPIC30F Used XC16 v1. Lots of issues to resolve but working through them. It is mandatory to download and install the peripheral libraries and then add the paths inside the complier preferences.
Still unable to fully compile it without a few errors and warnings. Also it would be good if we could get a very streamlined version of this which I am willing to work on , providing I can get this to compile and work.
First: Congrats man, this is an unit of accomplishment! Can i configurate this code for PIC18F26k22? Is it even possible? Please I try port the code and use it on pic18f25k83 but it isn't working Reply 3 years ago. It's been a while since I did any PIC work. You may need to play around with the row and columns though. Sorry, its can never running! I tested from Version 2. By SteveQuinn Follow. More by the author:. Free from Microchip Microchip compiler XC8 v1. Free from Microchip I2C to convertor board.
Free from Microchip. Happy experimenting. Attachments LCDDriver. Did you make this project? Share it with us! He was even kind enough to give me the source code for his microchip. Well, I had never really made a circuit before, and I had definitely never programmed a microchip before, so I wanted to have a go at re-doing his work to better suit my needs and wants.
So I completely re-designed his circuit and re-coded the entire project. I definitely used his code and circuit as a starting point, but I reworked every part of it to be my own. The program is written in C It uses separate bootloader and firmware programs. The bootloader loads first and in particular situations enters "update mode" allowing a new firmware to be easily installed onto the chip. The firmware does most of the work. Bootloader: hex 5.
Firmware: hex Note: The bootloader is optional. The firmware can be applied directly with a PIC programmer. If you do not have the bootloader, any firmware updates will need to be applied with a PIC programmer as well.
A tutorial is available from ObdDiag. You need to make sure to set the programmer configuration as in this image. Especially important is the USB voltage regulator setting. I may have actually compiled these into the bootloader hex file above, but I am not sure.
0コメント