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

2x16 LCD on 16F876 PortB.

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



Joined: 14 Jul 2004
Posts: 6

View user's profile Send private message

2x16 LCD on 16F876 PortB.
PostPosted: Wed Jul 14, 2004 4:06 am     Reply with quote

I want to display characters on my 2X16 LCD display using portB, my pic is 16f876a , anyone have the code that I could use?

As lcd.c library can be changed to use with pic16f876?

Thanks
carlosma



Joined: 24 Mar 2004
Posts: 53
Location: Portugal

View user's profile Send private message Send e-mail MSN Messenger

PostPosted: Wed Jul 14, 2004 4:27 am     Reply with quote

Hello
use LCD on PORT_B
and see the example EX_LCDKB.C

Carlos
Jum



Joined: 14 Jul 2004
Posts: 6

View user's profile Send private message

Answer for Carlos.
PostPosted: Wed Jul 14, 2004 5:14 am     Reply with quote

Answer for Carlos.

A ver Carlos, te escribo en castellano por que creo que me entenderas y mi ingles es peor que pesimo.

Ya antes de haber puesto esta consulta he mirado ese ejemplo y el otro que trae el pic c. El problema es que si le cambio el 877 por el 876 todo son problemas y como estoy empezando en c me cuesta.

Yo lo que quiero es usar el bus de 4 bits del lcd y usar el mismo puerto b para las seņales de control para ahorras lineas del pic. Todo eso en el pic16f876.

Gracias
carlosma



Joined: 24 Mar 2004
Posts: 53
Location: Portugal

View user's profile Send private message Send e-mail MSN Messenger

PostPosted: Wed Jul 14, 2004 5:24 am     Reply with quote

No tiene que ser problema,

deixa teu e-mail que posso enviar esquema

Carlos
Jum



Joined: 14 Jul 2004
Posts: 6

View user's profile Send private message

PostPosted: Wed Jul 14, 2004 5:31 am     Reply with quote

El problema no es el conexionado, es que cuando le dices a la libreria que usas el 16f876, la libreria que usa el pic c, no acepta este micro.

De todas formas puedes enviarme todo lo ue consideres oportuno a mi correo que es jum_spain@hotmail.com

Gracias.
carlosma



Joined: 24 Mar 2004
Posts: 53
Location: Portugal

View user's profile Send private message Send e-mail MSN Messenger

PostPosted: Wed Jul 14, 2004 6:43 am     Reply with quote

O problema que pode existir es la utilizacion de lo PORT_D.
Tienes de alterar lo LCD.C na linea:
Code:

// Un-comment the following define to use port B
#define use_portb_lcd TRUE

Eu tenho a funcionar desta forma
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