aLec18_LCD_fixedpoint - Introduction to Embedded...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Introduction to Embedded Microcomputer Systems Lecture 18.1 Jonathan W. Valvano Recap I/O synchronization LCD interface Implementing local variables with a stack frame Parameter passing Overview LCD programming Fixed-point numbers LCD programming
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Introduction to Embedded Microcomputer Systems Lecture 18.2 Jonathan W. Valvano
Background image of page 2
Introduction to Embedded Microcomputer Systems Lecture 18.3 Jonathan W. Valvano Clear display ; 1) outCsr($01) causes Clear ; 2) blind cycle 1.64ms wait ; 3) outCsr($02) sends the Cursor to home ; 4) blind cycle 1.64ms wait Move cursor to ; 1) outCsr(DDaddr+$80) first row (left-most 8) DDaddr is 0 to 7 second row (right-most 8) DDaddr is $40 to $47 Define up to 8 new fonts // font is the font number 0 to 7 // n0-n7 is the 5 by 8 pixel map CGaddr=((font&0x07)<<3)+0x40; outCsr(CGaddr); // set CG RAM address LCD_OutChar(n0); LCD_OutChar(n1); LCD_OutChar(n2); LCD_OutChar(n3); LCD_OutChar(n4); LCD_OutChar(n5); LCD_OutChar(n6); LCD_OutChar(n7); outCsr(0x80); // revert back to DD RAM
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

aLec18_LCD_fixedpoint - Introduction to Embedded...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online