View previous topic :: View next topic |
Author |
Message |
Breuil Guest
|
ICD & LCD |
Posted: Mon Jul 07, 2003 6:03 am |
|
|
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
|
Re: ICD & LCD |
Posted: Mon Jul 07, 2003 8:08 am |
|
|
:=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 |
Posted: Mon Jul 07, 2003 9:05 am |
|
|
:=
:=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
|
Re: ICD & LCD |
Posted: Mon Jul 07, 2003 9:36 am |
|
|
:=:=
:=:=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 |
Posted: Wed Jul 09, 2003 7:36 am |
|
|
:=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 |
|
|
|