 
					
				
		
#include <hcs12dp256.h>#define RDRF 0x20   // Receive Data Register Full Bit#define TDRE 0x80   // Transmit Data Register Empty Bitvoid init_SCI1(void){  SCI1BDH = 0;  SCI1BDL = 156; // baud rate to 9600  SCI1CR1 = 0x20; // 8-N-1  SCI1CR2 = 0x0C;}void init_PB(void) // Setup LEDs for data verification{   DDRB=0xFF;    // Output - Port B (Specifies Direction)  PORTB=0x01;   // Enable Port B0  DDRH|=0x00;   // Input - Port H - Direction of Switches  DDRJ|=0x02;   // Output - PJ1 - Sets an output on Pin 2  PTJ&=0xFD;    // LED Enable - Forces 0 to Pin 2}main(void){  init_PB();  PTJ &= 0xFE;  init_SCI1();      while(1)      {   while((RDRF & SCI1SR1)== 0){}; // RDRF never goes high ???        PORTB = SCI1SR1;  // Trying to display the output on LEDs      }} 
					
				
		
 
					
				
		
 
					
				
		
