Discussion Forum

Register

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Ales Moskon
Posted
17-Jul-2007 06:49 GMT
Toolset
C51
New! Register

I have uVision3 and i program
microkontroler LPC936 and i dont
know how to set register for pins.
How my microkontroler recognize pins
to connect LCD.
Please can you help me.
I think that set P1... is OK.

Thanks
Ales

Read-Only
Author
Per Westermark
Posted
17-Jul-2007 08:08 GMT
Toolset
C51
New! RE: Register

Have you looked through the example applications that came with uVision3? From them you can not only see how to set up your I/O pins, but you will also find the solution to a number of other problems you are likely to run into.

Read-Only
Author
Ales Moskon
Posted
17-Jul-2007 13:56 GMT
Toolset
C51
New! RE: Register

In program I include <reg936.h> file
if is thats ok and then
sbit LCD_AD4 = P0^0;
sbit LCD_AD5 = P0^1;
sbit LCD_AD6 = P0^2;
sbit LCD_AD7 = P0^3;
sbit LCD_RS = P0^4;
sbit LCD_EN = P0^5;
sbit LCD_RW = P0^6;

Thanks
Ales

Next Thread | Thread List | Previous Thread Start a Thread | Settings