Author |
Message |
Topic: A numeric expression must appear here |
peaps
Replies: 14
Views: 41587
|
Forum: General CCS C Discussion Posted: Fri Oct 10, 2008 2:43 pm Subject: A numeric expression must appear here |
It might be '\n' characters that get printed to the LCD. I had this same problem. |
Topic: Flexible LCD driver |
peaps
Replies: 102
Views: 1071659
|
Forum: Code Library Posted: Sat Oct 04, 2008 10:40 am Subject: Flexible LCD driver |
I have found out what the problem is, and frankly, I am surprised that no one else has come across this before. This problem also exists with the CCS lcd.c driver that ships with the compiler.
The ... |
Topic: lcd_putc() functionality |
peaps
Replies: 6
Views: 14585
|
Forum: General CCS C Discussion Posted: Sat Oct 04, 2008 9:13 am Subject: lcd_putc() functionality |
I see. Thanks both for the input.
Not sure if this is a good thing or not really. Doesn't make porting to a different compiler/architecture any easier.
Andy |
Topic: lcd_putc() functionality |
peaps
Replies: 6
Views: 14585
|
Forum: General CCS C Discussion Posted: Sat Oct 04, 2008 3:34 am Subject: lcd_putc() functionality |
The general valid syntax is printf(putc,string).
I don't understand this. How does that work? How are you meant to be able to write code when there is some compiler magic going on in the background ... |
Topic: lcd_putc() functionality |
peaps
Replies: 6
Views: 14585
|
Forum: General CCS C Discussion Posted: Fri Oct 03, 2008 7:07 am Subject: lcd_putc() functionality |
I am bemused as to how this function is able to print strings. The definition of the function clearly accepts a char, not a char pointer and there is no looping within the function to parse an array o ... |
Topic: Flexible LCD driver |
peaps
Replies: 102
Views: 1071659
|
Forum: Code Library Posted: Mon Sep 29, 2008 1:25 pm Subject: Flexible LCD driver |
Just tried the CCS driver lcd.c, but still getting weird char at a \n.
Similar code still...
#include <16f819.h>
#use delay(clock=1000000)
#include <lcd.c>
#fuses INTRC_IO, ... |
Topic: BYTE and BOOLEAN variables |
peaps
Replies: 4
Views: 12510
|
Forum: General CCS C Discussion Posted: Mon Sep 29, 2008 1:15 pm Subject: BYTE and BOOLEAN variables |
Hmm. I have just added the line:
#define use_portb_lcd TRUE
And now it compiles. Is it falling over on the line that says:
#locate lcd = getenv("sfr:PORTD")
because P ... |
Topic: BYTE and BOOLEAN variables |
peaps
Replies: 4
Views: 12510
|
Forum: General CCS C Discussion Posted: Mon Sep 29, 2008 1:03 pm Subject: BYTE and BOOLEAN variables |
Thanks for the quick replies..
The code I am using (attempting to get lcd.c to work) is:
#include <16f819.h>
#use delay(clock=1000000)
#include <lcd.c>
#fuses INTRC_IO, N ... |
Topic: Flexible LCD driver |
peaps
Replies: 102
Views: 1071659
|
Forum: Code Library Posted: Tue Sep 16, 2008 4:02 pm Subject: Flexible LCD driver |
Hi, thanks for the reply.
I have tried connecting the R/W pin to the LCD module, increasing the delay from 60us to 500us and reducing the clock speed of the PIC to 1Mhz, but unfortunately I still g ... |
Topic: Flexible LCD driver |
peaps
Replies: 102
Views: 1071659
|
Forum: Code Library Posted: Mon Sep 15, 2008 3:58 pm Subject: Flexible LCD driver |
1. Display is made by: Orient Display Co. Ltd., part no. OD-DM1602F.
2. Compiler version: 4.013
3. LCD pin defines:
#define LCD_DB4 PIN_B3
#define LCD_DB5 PIN_B2
#define LCD_DB6 PIN_B1
... |
Topic: Flexible LCD driver |
peaps
Replies: 102
Views: 1071659
|
Forum: Code Library Posted: Mon Sep 15, 2008 3:26 pm Subject: Flexible LCD driver |
Hi,
I would like to mention a potential problem with this library, or maybe I'm doing something wrong..
When I use the \n newline I get a garbage character output to the LCD. I have tried using ... |
|