Modification EZ-Kit lite

by Michael Keller

(DL6IAK)

 

This modification enables the direct acces to the seriell interface of the EZ-Kit from the user program. Normally the 16550 seriel interface causes IRQ2, which branches into the hostmode program in the EPROM. Communication is therefore only possible using the protocol specified in the docs. The proposed modification links the IRQ2 also to the IRQ1 line, so both interrupts exist. The user has to disable the interrupt IRQ2 via the

 

interrupt( SIG_IRQ2, SIG_IGN);

 

statement. Now the hostmode program has lost the controll over the seriell interface.

After initializing the 16550 (here to 9600/8N, further information how to initialize the 16550,

look to the datasheet )

 

(* (int *) 0x00402003) = 0xff; //set DLAB

(* (int *) 0x00402000) = 120; //DIVISOR LSB 9600 Baud

(* (int *) 0x00402001) = 0; //DIVISOR MSB

(* (int *) 0x00402003) = 0x03; //1StOP 8 Daten NoParity

 

the user program gets controll via the statement

 

interrupt( SIG_IRQ1 ,rs232_empf);

 

rs232_empf is an user written interruptroutine, which handles the incomming datastream.

 

If you reset the board, normal operation is guarantied, so downloading with the diag21k is no problem. There are some error messages possible after starting the program with PS, because, now diag21k has nomore controll over the board, because the hostmode is now ‘deaf’ and doesn’t answer. You can handle this, by waiting to disable the IRQ0 until the flag button S1 is pressed, so i did. You can exit normally and after that, you can start the program by pressing S1 on the board.

 

Now the small hardware modification:

Just connect PIN2 of IC U6 to the right upper lead of the S2 switch. Thats all, the board works like before, the only difference is IRQ1 is also called by the seriell Interface.