CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 10 matches
CCS Forum Index
Author Message
  Topic: lcd_symbols function doesn't take 16-bit in PIC16F1946!!
juinhooley

Replies: 4
Views: 7217

PostForum: General CCS C Discussion   Posted: Tue Sep 06, 2011 12:04 am   Subject: LCD problems with PIC16F1946
There was a similar problem in the past. This thread has a work-around
for it by using 8-bit data tables instead of 16-bit. You have to do two calls
to lcd_symbol() for each lcd digit:
http://www ...
  Topic: lcd_symbols function doesn't take 16-bit in PIC16F1946!!
juinhooley

Replies: 4
Views: 7217

PostForum: General CCS C Discussion   Posted: Mon Sep 05, 2011 12:57 am   Subject: lcd_symbols function doesn't take 16-bit in PIC16F1946!!
Thanks. That's great!

I found another problem.
In the PIC16f1946.h file the constants for the commons are
COM0 0
COM1 24
COM2 48
COM3 72

Since this micrcontroller has 46segments, shouldn't ...
  Topic: lcd_symbols function doesn't take 16-bit in PIC16F1946!!
juinhooley

Replies: 4
Views: 7217

PostForum: General CCS C Discussion   Posted: Sun Sep 04, 2011 11:44 pm   Subject: lcd_symbols function doesn't take 16-bit in PIC16F1946!!
Hi,

In the help file, it says that the lcd_symbols function take 8-bit or 16-bit symbol.
My code didn't work when I had:

int16 const Digit_Map[10] =
// 0 1 2 3 ...
  Topic: Enable LCD pins for PIC16F1946
juinhooley

Replies: 2
Views: 5039

PostForum: General CCS C Discussion   Posted: Tue Aug 23, 2011 5:12 pm   Subject: Enable LCD pins for PIC16F1946
If you own the compiler, email CCS and ask them to fix the bug. Show them the example code that fails and explain that it won't accept more than 4 bytes. If you don't want to email them, then let m ...
  Topic: Enable LCD pins for PIC16F1946
juinhooley

Replies: 2
Views: 5039

PostForum: General CCS C Discussion   Posted: Mon Aug 22, 2011 11:23 pm   Subject: Enable LCD pins for PIC16F1946
Hi,

The above microcontroller has 46 segments for LCD control. Hence there are six LCDSEn registers.

I use this line for lcd setup:
setup_lcd( LCD_TYPE_B | LCD_MUX13 | LCD_BIAS13 | LCD_REF_ENA ...
  Topic: Confused pin on PIC16F1946
juinhooley

Replies: 4
Views: 8709

PostForum: General CCS C Discussion   Posted: Sun Aug 21, 2011 5:59 pm   Subject: Confused pin on PIC16F1946
Good point! I copied that line from my old code and didn't think of checking that.

It works now, with the LCD segments configured correctly.

Many thanks.
  Topic: Confused pin on PIC16F1946
juinhooley

Replies: 4
Views: 8709

PostForum: General CCS C Discussion   Posted: Sun Aug 21, 2011 5:18 pm   Subject: Confused pin on PIC16F1946

#device ICD = TRUE

#FUSES WDT //Watch Dog Timer
#FUSES LP
#FUSES WDT_NOSL //Watch Dog Timer, disabled during SLEEP
#FUSES WRT ...
  Topic: Confused pin on PIC16F1946
juinhooley

Replies: 4
Views: 8709

PostForum: General CCS C Discussion   Posted: Thu Aug 18, 2011 1:29 am   Subject: Confused pin on PIC16F1946
Hi,

I'm using the above micro, the 64pin tqfp package.
Pin 45 is connected to a switch button.
I'm going to have an LCD display but it is not connected at the moment. I'm trying to write the prog ...
  Topic: LCD code using PIC16F193x
juinhooley

Replies: 12
Views: 19659

PostForum: General CCS C Discussion   Posted: Wed Aug 03, 2011 6:48 pm   Subject: LCD code using PIC16F193x
I didn't have any INTRC fuse at all. These segments now work after setting the fuse to INTRC_IO.

Good hint. Thanks!
  Topic: LCD code using PIC16F193x
juinhooley

Replies: 12
Views: 19659

PostForum: General CCS C Discussion   Posted: Tue Aug 02, 2011 1:17 am   Subject: LCD code using PIC16F193x
Hi,

I compiled this code with version 4.124 and downloaded onto the F1 Evaluation Platform.

Segment a, d, e and f of digit 3 always stay off.

I know that the LCD display is good. It works wi ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group