// File LCD14543.C Jonathan W. Valvano // LCD interface using MC14543 from Chapter 8 #include unsigned int umin(unsigned int x, unsigned int y){ if(x>1){ // look at bits 7,6,5,4,3,2,1,0 if((*pt)&mask) PORTH=1; else PORTH=0; // Serial data of the MC145000 PORTH|=2; // toggle the serial clock first high PORTH&=0xFD;} // then low pt++; }} void main(void){ DDRH = 0xFF; // Outputs }