Code:
http://www.piclist.com/techref/microchip/language/c/S628.htmInterrupt driven routines, using PIC hardware USART, with CTS flow control. Source code for CC5X C compiler with ample comments, easily adaptable to other PICs than the sample 16F628.
See also:
Archive:
Questions:
Hi, Can someone please tell me what changes i need to make to .h files in C 18 C compiler library in order to initialize the external hitachi controlled 16x2 LCD on port D. Thanks, Ricky
I made some modifications in the xlcd.h but the microcontroller don´t refletc the changes. I know I have to recompile the xlcd lib but I don´t know how to do it. Could someone explain me step-by-step? Thanks in advance!
George Inacio
replies: there are batch files to do that. one of them is called makeonep.bat if i remember correctly. This is all explained in the microchip library reference documents which you can download from the microchip site. i'm sure you read those already, didn't you?+
Hello, after attempting several peoples code for driving a Hitachi HD44780 based LCD I am confused. I happen to be using a Optrex DMC16106A, which is a 16x1 display. I have this connected via PortB (data) and PortD (ctrl) on a 18F452 Microchip processor. The processor works fine as I can write simple routines to blink LEDs and everything works fine. When I attempt to initialize the LCD and write a few characters, the display lights every pixel in every character position. I know I can doing something, because without the code the display remains totally dark. I have tried assembly routines as well as C routines all with no luck. I am using the C18 C compiler and MPLAB 6.0 with no luck. I have even tried using their XLCD libraries to start from scratch again nothing. Does anyone have any routines that work with the 18FXXX? I would love some recommendations. Thanks Russ Larson
replies: LCD = all black means not initialised. The Microchip xlcd libs definately work. You need to recompile the libraries once you've edited the .h files to reflect the port/pin you;ve connected your LCD. Did you do that? If not it's probably a timing issue. With the xlcd functions, you need to provide your own timing functions - make these wait a lot longer - maybe 10 or 20 times as long. Then if it works, slowly tighten up the timings. Additionally, make sure you're waiting at least 100ms or so after power on before you initialise the LCD- they take some time to settle down. If you're still stuck, please join and post to the mailing list.+
Interested:
Comments:
C code for 7 segment displays. +
| file: /techref/microchip/language/C/ios.htm, 8KB, , updated: 2007/10/24 13:58, local time: 2009/1/9 15:45,
owner: slippyr4-gmail-,
38.103.63.57:LOG IN
|
| ©2009 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? Please DO link to this page! Digg it! <A HREF="http://massmind.org/techref/microchip/language/C/ios.htm"> PIC Micro Controller C Routine Input / Output Library</A> |
| Did you find what you needed? |
Welcome to massmind.org! |
|
.