Keil board MCBSTR9

Reply

Join Date: Mar 2008
Posts: 30
Reputation: kiwihaha is an unknown quantity at this point 
Solved Threads: 0
kiwihaha kiwihaha is offline Offline
Light Poster

Keil board MCBSTR9

 
0
  #1
Nov 11th, 2008
erm... anyone know what is this declaration mean?

  1. #define LCD_DATA GPIO8->DR[0xFF<<2] /* Data bits D0 = P8.0 .. DB7 = P8.7 */
  2. #define LCD_E GPIO9->DR[0x01<<2] /* Enable control */
  3. #define LCD_RW GPIO9->DR[0x02<<2] /* Read/Write control */
  4. #define LCD_RS GPIO9->DR[0x04<<2] /* Data/Instruction control */
  5. #define LCD_CTRL GPIO9->DR[0x07<<2] /* All 3 control lines (E/RW/RS) */
  6.  
  7. #define E_ENA 0x01
  8. #define E_DIS 0x00
  9. #define RW_READ 0x02
  10. #define RW_WRITE 0x00
  11. #define RS_DATA 0x04
  12. #define RS_INST 0x00
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC