05.09.2013 Views

2.3 Relaxatie-oscillator

2.3 Relaxatie-oscillator

2.3 Relaxatie-oscillator

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Shift_Q:<br />

MOV A,OP_3<br />

RLC A<br />

MOV OP_3,A<br />

MOV A,OP_2<br />

RLC A<br />

MOV OP_2,A<br />

MOV A,OP_1<br />

RLC A<br />

MOV OP_1,A<br />

MOV A,OP_0<br />

RLC A<br />

MOV OP_0,A<br />

RET<br />

;shift the quotient one bit to the left and shift the C into LSB<br />

MOV A,TMP_3<br />

RLC A<br />

MOV TMP_3,A<br />

MOV A,TMP_2<br />

RLC A<br />

MOV TMP_2,A<br />

MOV A,TMP_1<br />

RLC A<br />

MOV TMP_1,A<br />

MOV A,TMP_0<br />

RLC A<br />

MOV TMP_0,A<br />

RET<br />

;*****************************************************************************<br />

;* linearization table *<br />

;* array of 256 elements *<br />

;* converting to linear output *<br />

;*****************************************************************************<br />

lintbl: DB 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000<br />

DB 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000<br />

DB 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000<br />

DB 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000<br />

DB 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000<br />

DB 000,000,000,000,000,000,001,001,001,001,002,002,002,003,003,003<br />

DB 003,004,004,004,005,005,005,006,006,006,006,007,007,007,008,008<br />

DB 008,009,009,009,010,010,010,011,011,011,012,012,012,013,013,014<br />

DB 014,014,015,015,015,016,016,017,017,017,018,018,018,019,019,020<br />

DB 020,020,021,021,022,022,023,023,023,024,024,025,025,026,026,027<br />

DB 027,028,028,029,029,029,030,030,031,031,032,032,033,034,034,035<br />

DB 035,036,036,037,037,038,039,039,040,040,041,042,042,043,043,044<br />

DB 045,045,046,047,047,048,049,050,050,051,052,053,053,054,055,056<br />

DB 056,057,058,059,060,061,062,063,064,064,065,066,067,068,069,071<br />

DB 072,073,074,075,076,077,079,080,081,083,084,085,087,088,090,091<br />

DB 093,095,097,098,100,102,104,106,108,111,113,116,118,121,124,127<br />

END<br />

63

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!