Draw_VLc

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
void cDraw_VLc(signed char *vList)
{
	register int count = *(vList++);// count in list
	do 
	{
		VIA_port_a = *(vList++);	// first y coordinate to dac
		VIA_port_b = 0;				// mux enable, dac to -> integrator y (and x)
		VIA_port_b++;				// mux disable, dac only to x
		VIA_port_a = *(vList++);	// dac -> x
		VIA_shift_reg =  (int)0xff; // full "unblank" output
		VIA_t1_cnt_hi = 0;			// start timer
		while ((VIA_int_flags & 0x40) == 0); // wait till timer finishes
		VIA_shift_reg = 0;			// output full blank
	} while (--count >=0);			// loop thru all vectors
}