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 support@ccsinfo.com

ICD & LCD

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Breuil
Guest







ICD & LCD
PostPosted: Mon Jul 07, 2003 6:03 am     Reply with quote

I have problems when I want to use CCS LCD display routines (lcd.c).
I use too ICD2 (and soon ICD-U).
Is it possible to use together a LCD display (which uses B6 and B7 ports) and ICD (which uses too B6 and B7)?
Or do I have to change ports and so to modify CCS sources? (I hope no...)
Thank you.
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515767
Neutone



Joined: 08 Sep 2003
Posts: 839
Location: Houston

View user's profile Send private message

Re: ICD & LCD
PostPosted: Mon Jul 07, 2003 8:08 am     Reply with quote

:=I have problems when I want to use CCS LCD display routines (lcd.c).
:=I use too ICD2 (and soon ICD-U).
:=Is it possible to use together a LCD display (which uses B6 and B7 ports) and ICD (which uses too B6 and B7)?
:=Or do I have to change ports and so to modify CCS sources? (I hope no...)
:=Thank you.

This is a small part of the LCD driver

#if defined use_portb_lcd
#byte lcd = 6 // on to port B (at address 6)
#else
#byte lcd = 8 // on to port D (at address 8)
#endif

It is designed to be flexable with just a few defines.
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515771
Breuil
Guest







Re: ICD & LCD
PostPosted: Mon Jul 07, 2003 9:05 am     Reply with quote

:=
:=This is a small part of the LCD driver
:=
:=#if defined use_portb_lcd
:= #byte lcd = 6 // on to port B (at address 6)
:=#else
:= #byte lcd = 8 // on to port D (at address 8)
:=#endif
:=
:=It is designed to be flexable with just a few defines.


Sorry, but I forgot to tell that I must use a 28 pins PIC, without portD, and I effectively used:

#define use_portb_lcd

So, can anyone tell me if it is possible to use together a LCD with portB AND an ICD (ICD2 or ICD-U)?
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515773
Neutone



Joined: 08 Sep 2003
Posts: 839
Location: Houston

View user's profile Send private message

Re: ICD & LCD
PostPosted: Mon Jul 07, 2003 9:36 am     Reply with quote

:=:=
:=:=This is a small part of the LCD driver
:=:=
:=:=#if defined use_portb_lcd
:=:= #byte lcd = 6 // on to port B (at address 6)
:=:=#else
:=:= #byte lcd = 8 // on to port D (at address 8)
:=:=#endif
:=:=
:=:=It is designed to be flexable with just a few defines.
:=
:=
:=Sorry, but I forgot to tell that I must use a 28 pins PIC, without portD, and I effectively used:
:=
:=#define use_portb_lcd
:=
:=So, can anyone tell me if it is possible to use together a LCD with portB AND an ICD (ICD2 or ICD-U)?

You can not use B6 and B7 for both ICD and LCD.
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515774
Breuil
Guest







Re: ICD & LCD
PostPosted: Wed Jul 09, 2003 7:36 am     Reply with quote

:=I have problems when I want to use CCS LCD display routines (lcd.c).
:=I use too ICD2 (and soon ICD-U).
:=Is it possible to use together a LCD display (which uses B6 and B7 ports) and ICD (which uses too B6 and B7)?
:=Or do I have to change ports and so to modify CCS sources? (I hope no...)
:=Thank you.

Finally I wrote modification on CCS's LCD.C, my LCD runs with B0 -B4 and C0, C1, and ICD on a 18F256.
If you need it: pbreuil@emse.fr
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515817
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group