HOW TWO CONNECT LCD WITH BORTB

HI
I HAVE THIS PROBLEM ,THIS IS MY DEFINE
#define lcd PORTB
#define rs PD5
#define rw PD6
#define en PD7

My first question when I knew port PORTB for lcd Software what Sweet simulations on this picture1 is working ,how connected in arduino unio ,the pin BP0 to BP5 where is PB6 and BP7 in picture2 ??
i hope u r understand me

... where is PB6 and BP7 in picture2

All of the I/O ports on the ATmega328 chip have dual functions. The other function for PB6 and PB7 is for the 16MHz crystal. The circuit in your first drawing must be using the 8 MHz internal oscillator in the chip, thus freeing up those two I/O port pins.

Don

ok thanks ,
but know how connected the lcd with bortb?
lcd pin D0= arduino pin BP0
lcd pin D1= arduino pin BP1
lcd pin D2= arduino pin BP2
lcd pin D3= arduino pin BP3
lcd pin D4= arduino pin BP4
lcd pin D5= arduino pin BP5
lcd pin D6= arduino pin BP???
lcd pin D7= arduino pin BP??
OR HOW..?? PLZ HELP ME ,TWO DAYS I CANT SLEEP,

Can't you use the LCD in four bit mode?

(Please don't SHOUT - some of us are trying to sleep too)

It would help if we knew ALL of the restrictions and requirements of your assignment project.

If you must use the 8-bit mode for some reason then you should you should consider using port D for the eight data lines as it will make the programming easier. If you plan to use the bootloader to load your code you may have to disconnect your LCD while doing so and reconnect it afterwards.

Don

ok thanks ,i will using portd but the interrupt can i using both ? or change the pin ?